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

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.xmece.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
2 posts / 0 new
Last post
jlabuac
Offline
Last seen:1 year 8 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:3 months 6 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