Other Parts Discussed in Thread: C2000WARE
Hello everyone,
I am trying to store a bit to flash and recall its value after a power cycle. Would anyone be able to provide an example code? I am using the F28379D.
Thank you!
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hello everyone,
I am trying to store a bit to flash and recall its value after a power cycle. Would anyone be able to provide an example code? I am using the F28379D.
Thank you!
Hi Matthew,
Please take a look at the flash programming example in C2000Ware at C:\ti\c2000\C2000Ware_4_01_00_00\device_support\f2837xd\examples\dual\flash_programming.
Also, please review below resources:
1. F2837xD Flash API (V1.54) reference guide link: http://www.ti.com/lit/pdf/spnu629
2. FAQ on Flash API usage for C2000 devices: https://e2e.ti.com/support/microcontrollers/c2000/f/171/t/951668
3. FAQ for Flash ECC usage in C2000 devices: https://e2e.ti.com/support/microcontrollers/c2000/f/171/t/951658
Thanks and regards,
Vamsi
Is there a simper way of storing data in non-volatile memory? Something like EEPROM on the Arduino boards?
Hi Matthew,
Do you program it at runtime?
Can you dedicate two sectors for it? Or only one location/one sector?
Thanks and regards,
Vamsi
Yes I would like to store the data at runtime.
And yes, I can dedicate one or two sectors.
Hi Matthew,
How many times do you think you need to update that variable ?
Thanks and regards,
Vamsi
Hi Matthew,
I meant to ask: How many times in the life time of the product?
Thanks and regards,
Vamsi
Matthew,
If that is the case, then you can simply go with one sector and erase/program the values as you need.
No need to allocate 2 sectors and also allocate more RAM for EEPROM driver.
Current datasheet is showing 20K max W/E cycling - but we are going to update the datasheet to reflect 100K for the entire flash (all sectors together).
Thanks and regards,
Vamsi