I am using startkit in building a prototype.
I need to store the readings of some sensors to be made available between restarts/ power ons
Could someone please help me in understanding the possible ways to achieve this?
Is it possible to store data (store sensor readings) on star Topic is solved
-
- Junior Member
- Posts: 5
- Joined: Thu Jan 02, 2014 4:07 pm
-
- XCore Expert
- Posts: 754
- Joined: Thu Dec 10, 2009 6:56 pm
Hi,
The startKIT has a SPI flash to store the firmware but it can also be used to store data besides the firmware (it is large enough).
Keep in mind though that flash devices have a limited amount of write/erase cycles.
See:
https://www.xmos.com/libflash-api?secure=1
https://github.com/xcore/sw_flashlib_examples
If i recall correctly you will first need to create a data partition using xflash. See the xflash documentation in the xTIMEComposer userguide.
The startKIT has a SPI flash to store the firmware but it can also be used to store data besides the firmware (it is large enough).
Keep in mind though that flash devices have a limited amount of write/erase cycles.
See:
https://www.xmos.com/libflash-api?secure=1
https://github.com/xcore/sw_flashlib_examples
If i recall correctly you will first need to create a data partition using xflash. See the xflash documentation in the xTIMEComposer userguide.