how to save data in flash memory in CYBT-213043-MESH

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

cross mob
cera_4813796
Level 1
Level 1
5 questions asked 5 sign-ins First reply posted

I am using CYBT-213043-MESH

hello, how can I save an array uint8_t data [6] = {'d', 'a', 't', 'a', 's', 'a', 'v', 'e'}; in flash memory?, and how can I read this data every time I need it?

0 Likes
1 Solution
DheerajPK_41
Moderator
Moderator
Moderator
750 replies posted 500 likes received 500 replies posted

Hi,

You can use nvram APIs listed in wiced_hal_nvram.h. Below example shows how to use it. Please have a look.

CypressAcademy_WBT101_Files/Projects/ch02/key_ch02_ex09_nvram at master · cypresssemiconductorco/Cyp...

Please note, the NVRAM IDs which are already used by Mesh Core and Model libraries can be seen in mesh_setup_nvram_ids () defined in mesh_application.c. Please avoid using the same IDs for the array.

Thanks,

-Dheeraj

View solution in original post

0 Likes
1 Reply