覆盖默认BD地址的一个from external device.

Learn MoreFAQsTutorials

2 posts / 0 new
Last post
jlabuac
Offline
Last seen:1 year 4 months ago
加入:2017-04-20 06:06
覆盖默认BD地址的一个from external device.

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:
MT_dialog
Offline
Last seen:2 weeks 3 days ago
Staff
加入:2015-06-08 11:34
Hi jlabuac,

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