How to store data over reset

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
user_2881686
Level 1
Level 1

Hi,

I work with the CY8KIT-062-BLE and want to store data that will not be lost when the device resets or gets powerred off. I tried using CY_BLE_StoreAppData() as well as the Cy_Flash_WriteRow() and Cy_Flash_StartWrite(). My problem is, that none of these seemto work in my case. Both Flash commands only work when I'm debugging the project, but do seemingly do nothing when the program runs by itself. Seems to me there is a timing issue, or a watchdog that interferes with them. I can't get the CY_BLE_StoreAppData() to work at all. Do you maybe have an example for that? I only found one for the PSoC 4, but the function now works different. I also can't find the snippet mentioned in th cy_ble_gap.c.

Thanks in advance for your help!

0 Likes
1 Solution
Yugandhar
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 5 likes given

Hello,

There is a user row in SFLASH  that is available for the user to store the information.

You can also store the data using the Emulated EEPROM area for this purpose. Please see CE195313 for details.

Thanks,

P Yugandhar.

View solution in original post

0 Likes
2 Replies
Yugandhar
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 5 likes given

Hello,

There is a user row in SFLASH  that is available for the user to store the information.

You can also store the data using the Emulated EEPROM area for this purpose. Please see CE195313 for details.

Thanks,

P Yugandhar.

0 Likes

Thanks a lot!

The emulated EEPROM works like a charm.

0 Likes