Hi Ti,
I want to get the secondary BLE MAC addr in my project.
I know that I need to read CCFG area to get the BLE MAC addr, but I am confused to the CCFG's addr.
In smart flash programmer 2, I see the addr is 0x00057FD0( I can get the correct result form this addr by NVS_read() ):
But when I get the BLE MAC by the hw_ccfg.h, I can see the define:
// in hw_ccfg.h #define CCFG_BASE 0x50003000 // CCFG // IEEE BLE Address 0 #define CCFG_O_IEEE_BLE_0 0x00001FD0 // in main.c memcpy(MAC_addr, (uint8_t *)(CCFG_BASE + CCFG_O_IEEE_BLE_0), 6);
That's mean the addr of BLE MAC is 0x50004FD0(I can get correct result form this addr by memcpy() ), yes?
Actually, I can get the correct result form the 2 different addr, I don't know why, Could you help me?
Thanks very much, have a good day!