Page 1 of 1

Non volatile data storing

Posted: Mon Feb 06, 2017 7:40 am
by darshan2210
Hello i am new to xmos.
I am using Xmos startkit.
In datasheet they said it gave 64 kb sram .
So,i need to store some variable to non volatile internal memory.
So is there any application notes? or any source code?
i need to store hardly 10 variable not a block of data.

Re: Non volatile data storing

Posted: Mon Feb 06, 2017 3:47 pm
by Bianco
You can use flashlib to read and write data to the same external SPI flash chip that contains your firmware:
https://github.com/xcore/sw_flashlib_examples

Re: Non volatile data storing

Posted: Mon Feb 06, 2017 4:40 pm
by darshan2210
Thanks. Bianco
But what about the internal SRAM can we use it?

Re: Non volatile data storing

Posted: Mon Feb 06, 2017 6:31 pm
by mon2
SRAM is volatile so you will lose the contents with the absence of power. But yes, you may certainly save your values to SRAM. Or do you plan to use battery power to keep the SRAM active ?

FLASH memory is non-volatile and will also retain the contents without power. XMOS devices do not feature internal EEprom which is another option for non-volatile storage. However, varying with your project requirements, you could slap on an external low cost I2C or SPI EEprom.