Writing Device ID to SFLASH

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

cross mob
Anonymous
Not applicable

Hi,

   

I have successfully written code to write the Device ID to row 0 of SFLASH.  Questions:

   

Is row0 the designated spot for the Device ID?  Just the first six bytes?

   

Is the SFLASH preserved during programming?  We would want to be able to update firmware while preserving the Device ID.

   

Right now I program the Device ID before BLE initialization, we will normally program it after.  What is the proper way to get the device in the state for SFLASH programming?  It does not work after our initialization (Including BLE init).

   

cybl10563-56lqxi

   

Thanks

   

 

   

Rich

0 Likes
1 Solution
Anonymous
Not applicable

Yes,

   

First 6 bytes of Row 0 are used for storing Device Address. It is recommended that if you want to store custom data - you write it to other rows of SLFAH. SFLASH data is retained across programming. For, writing to SFLASH in Firmware, you can make use of: CySysSFlashWriteUserRow. Please check System Reference Guide for more details.

View solution in original post

0 Likes
2 Replies
Anonymous
Not applicable

Yes,

   

First 6 bytes of Row 0 are used for storing Device Address. It is recommended that if you want to store custom data - you write it to other rows of SLFAH. SFLASH data is retained across programming. For, writing to SFLASH in Firmware, you can make use of: CySysSFlashWriteUserRow. Please check System Reference Guide for more details.

0 Likes
Anonymous
Not applicable

Thanks for the help.

   

 

   

Rich

0 Likes