Page 1 of 1

File I/O in XMOS microcontrollers

Posted: Tue Jun 07, 2016 10:19 am
by dsdanielko
I have been using the startKIT to develop my software but I have been using _open and _close file I/O to pass parameters to the startKIT. Eventually though, I will have to create my own PCB since the startKIT has many pins already tied up in switches and LEDs. If I create my own PCB using the XS1 - L line of microcontrollers will I be able to still use File I/O?

Thanks

Re: File I/O in XMOS microcontrollers

Posted: Tue Jun 07, 2016 10:45 am
by Bianco
The file I/O uses the JTAG interface, as long as you include the JTAG interface you should be good

Re: File I/O in XMOS microcontrollers

Posted: Tue Jun 07, 2016 10:52 am
by dsdanielko
Thanks. Would using the JTAG interface be the easiest way to provide two way communication between the computer and the microcontroller (sending parameters, writing to console etc)? There also seems to be the serial option but I am very unfamiliar with communication protocols that are not i2c.

Re: File I/O in XMOS microcontrollers

Posted: Wed Jun 08, 2016 9:17 am
by infiniteimprobability
If you use file IO, make sure you do all of your loads before anything real-time happens and do stores after real-time stuff has finished (use RAM in the mean time to buffer). Anything over JTAG breaks real time!