Dialog,
I would like to store the bd address on the external device and then overwrite the one that is defined in da1458x_config_advanced.h. Is that possible? I looked for a function in the nvds driver similar to the one that was mentioned in the link below but it seemed deprecated.
https://support.dialog-semiconductor.com/how-generate-productheaderh
Regards,
Device:
Hi jlabuac,
The post that you mention is for the 583 and for the 583 which similar with the 586. For the 586 there is no such functionallity from the SDK, but you can try and implement something similar just like the 583. The position in the code that reads and populates the bd address is the read_otp_header() function, the variable that the fw sets the devices address is dev_bdaddr if you set a bd address (for example right after the read_otp_header() function, read the flash and populate the variable indicated above) when the SDK will invoke the stack function ble_init() it will see that bd address is allready populated and will use the value allready in the variable instead of using the NVDS value.
Thanks MT_dialog