Hello,
I am trying to change the MAC address of my device nRF52, by using NRF_FICR->DEVICEADDR[0], NRF_FICR->DEVICEADDR[1], I am able to see the device address.
But when I try to change it by using below code it doesn't change, it shows the same address,
p_addr.addr_type = BLE_GAP_ADDR_TYPE_RANDOM_PRIVATE_NON_RESOLVABLE;
for(uint8_t i = 0; i<6; i++)
{
p_addr.addr[i] = 0xAAAAAAAA;
}
I am calling this in main function. After executing this code when I try to read NRF_FICR->DEVICEADDR[0], NRF_FICR->DEVICEADDR[1], i still see the same previous address.
what would be the problem ?