How about calling blecm_set_static_random_bd_addr() in create function?
1 of 2 people found this helpful
Thank you dmiya
I added blecm_set_static_random_bd_addr() to my function.
( APP_PATCHES_AND_LIBS += bd_addr_control.a)
And I did Make Target with parameter "BT_DEVICE_ADDRESS=FFFFFFFFFFFF" and
build and chipload hex , because blecm_set_static_random_bd_addr() is only valid when
NVRAM bd_addr equal to FF:FF:FF:FF:FF:FF.
At first power on, random static address has generated and set
(ex. DE:DD:E2:BF:DC:DD) and perhaps stored in NVRAM(EEPROM).
And advertised with AdvA and TxAdd=1.
But unfortunately , after second power on AdvA has changed to "00:00:00:00:00:00" again.
Dumped emConInfo_devInfo.addr is keeping DE:DD:E2:BF:DC:DD.
Maybe I have to add some function call , but I can't find API.