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
File I/O in XMOS microcontrollers Topic is solved
-
- Active Member
- Posts: 33
- Joined: Sat Mar 12, 2016 3:12 pm
-
- XCore Expert
- Posts: 754
- Joined: Thu Dec 10, 2009 6:56 pm
The file I/O uses the JTAG interface, as long as you include the JTAG interface you should be good
-
- Active Member
- Posts: 33
- Joined: Sat Mar 12, 2016 3:12 pm
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.
-
- XCore Legend
- Posts: 1126
- Joined: Thu May 27, 2010 10:08 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!