File I/O in XMOS microcontrollers Topic is solved

Technical discussions around xCORE processors (e.g. General Purpose (L/G), xCORE-USB, xCORE-Analog, xCORE-XA).
dsdanielko
Active Member
Posts: 33
Joined: Sat Mar 12, 2016 3:12 pm

File I/O in XMOS microcontrollers

Postby dsdanielko » Tue Jun 07, 2016 10:19 am

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

Postby Bianco » Tue Jun 07, 2016 10:45 am

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

Postby dsdanielko » Tue Jun 07, 2016 10:52 am

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: 1124
Joined: Thu May 27, 2010 10:08 am

Postby infiniteimprobability » Wed Jun 08, 2016 9:17 am

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!

Who is online

Users browsing this forum: No registered users and 4 guests