How to get BD address from OTP ROM

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  

Parents
  • hi Dialog,

       My test based on your function seems not work for DA14681.  Can you tell me why "cell_offset" is 0x1D4B ? and what is the relation with 0x07F8EA58 (BD address in OTP) ?   I am curious that "physical_otp_address = hw_otpc_cell_to_mem(otp_cell_offset)", however, physical_otp_address = 0x7F80000 + (cell_offset << 3) in hw_otpc_cell_to_mem( ).  It will not be 0x07F8EA58. 

     thanks

       Nigel

     

Reply
  • hi Dialog,

       My test based on your function seems not work for DA14681.  Can you tell me why "cell_offset" is 0x1D4B ? and what is the relation with 0x07F8EA58 (BD address in OTP) ?   I am curious that "physical_otp_address = hw_otpc_cell_to_mem(otp_cell_offset)", however, physical_otp_address = 0x7F80000 + (cell_offset << 3) in hw_otpc_cell_to_mem( ).  It will not be 0x07F8EA58. 

     thanks

       Nigel

     

Children
No Data