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 nigelyang,

    param [in]   otp_cell_offset :The offset of the OTP cell. The formula to calculate the physical memory address is (0x7F80000 + (otp_cell_offset << 3)). E.g. the offset 0x1D4B corresponds to 0x7F8EA58 physical address (location of the BD address)

    param [in]   bd_address : The cell's contents in chunks of 1 byte

    param [in]   phy_otp_address : The physical address of the OTP memory cell (for verification purposes)

    param [out] : True if the read request has been successfully performed, false otherwise

    As I mentioned in my precious answer, the BD Address in placed in specific address (0x07F8EA58) in the OPT header. Did you read the OPT Header with the OTP tool from the SmartSnippets toolbox. Is the BD Address located into 0x07F8EA58? Otherwise, in which OTP address is located?

    Thanks, PM_Dialog

Reply
  • Hi nigelyang,

    param [in]   otp_cell_offset :The offset of the OTP cell. The formula to calculate the physical memory address is (0x7F80000 + (otp_cell_offset << 3)). E.g. the offset 0x1D4B corresponds to 0x7F8EA58 physical address (location of the BD address)

    param [in]   bd_address : The cell's contents in chunks of 1 byte

    param [in]   phy_otp_address : The physical address of the OTP memory cell (for verification purposes)

    param [out] : True if the read request has been successfully performed, false otherwise

    As I mentioned in my precious answer, the BD Address in placed in specific address (0x07F8EA58) in the OPT header. Did you read the OPT Header with the OTP tool from the SmartSnippets toolbox. Is the BD Address located into 0x07F8EA58? Otherwise, in which OTP address is located?

    Thanks, PM_Dialog

Children
No Data