You are here

Writing Device ID to SFLASH | Cypress Semiconductor

Writing Device ID to SFLASH

Summary: 2 Replies, Latest post by rich.soennichsen_1592346 on 18 Nov 2016 08:52 AM PST
Verified Answers: 1
Last post
Log in to post new comments.
rich.soennichsen_1592346's picture
User
17 posts

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

BMAH's picture
Cypress Employee
196 posts

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.

rich.soennichsen_1592346's picture
User
17 posts

Thanks for the help.

 

Rich

 

Log in to post new comments.