1 of 1 people found this helpful
SFlash in PSoC 4 BLE devices contains 4 user configurable rows that the application can use for storing Bluetooth device address, application specific data or manufacturing specific information (device serial number, application sensor calibration data etc.).
The first 6 bytes of Row0 will be used for the BLE device address. If you write anything in Row0 then it will take that as the device address and ignores the value that is set in BLE component. So, the MAC address will be read from SFLASH Row 0 if the SFLASH Row 0 has non Zero value.
Thanks a lot!
Another quick question, when does the device take the MAC address from the Sflash instead from its standard location? I mean, if we change the Sflash row zero to something else other than zeros then immediately after that the MAC address is changed or only later after reset etc.?
After few calls of CyBle_ProcessEvents(), MAC address will be updated.