cancel
Showing results for 
Search instead for 
Did you mean: 

Bluetooth SDK

cera_4813796
New Contributor

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

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
DheerajPK_41
Moderator
Moderator

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