File I/O in XMOS microcontrollers Topic is solved

Technical discussions around xCORE processors (e.g. xcore-200 & xcore.ai).
Post Reply
dsdanielko
Active Member
Posts: 33
Joined: Sat Mar 12, 2016 3:12 pm

File I/O in XMOS microcontrollers

Post 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


View Solution
User avatar
Bianco
XCore Expert
Posts: 754
Joined: Thu Dec 10, 2009 6:56 pm
Contact:

Post by Bianco »

The file I/O uses the JTAG interface, as long as you include the JTAG interface you should be good
dsdanielko
Active Member
Posts: 33
Joined: Sat Mar 12, 2016 3:12 pm

Post 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.
User avatar
infiniteimprobability
XCore Legend
Posts: 1126
Joined: Thu May 27, 2010 10:08 am
Contact:

Post 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!
Post Reply