hi Dialog
if my code stored in QSPI flash, but I writed a BD address in OTP ROM by PLT, how to make ble stack use BD address in OTP ROM instead of the one in NVMS or defaultBLE_STATIC_ADDRESS? Moreover, how to read the BD address from OTP ROM? Is there any example code anout this case?
thanks
Nigel
Hi nigelyang,
Yes, you should read the BD Address with the same way. If you change the clock to PLL are you able to access the OPT Header from the toolbox and read the contains? If you found the previous answers useful please mark one of them as “accepted”.
Thanks, PM_Dialog
Is this still the best method for loading the BD Address from OTP? Has this been worked on at all since this post? It's interesting the OTP has a memory location dedicated to the BD Address, and that the PLT has a built in option for writing the BD Address to OTP, but the SDK (1.0.14) has no functions for reading in and using the BD Address from OTP.
Update: As of right now, there is no method in the most recent SDK (1.0.14) for reading the BD Address from OTP and using it.
You have to add a function yourself that does the operations as noted above.
Just an update: Doing the Secureboot initial flash procedure BREAKS this OTP read functionality as described above.
Update: This was probably associated with the other FLASH and partition table issues. Direct pointer access to OTP worked even with the broken partition table.