I want to get the MAC address of my custom device, is it possible to get the mac address of the nrf52832? and if it s possible , in which register?Thank you
There are some subtle differences in the API's between SDK's but basically you can get the public bluetooth address (ie, mac id) via below:
ble_addr needs to be a struct of type ble_gap_addr_t
There is another way too if you are not using the SD. Above is for soft device.
If you are not using the SD, then the same info can be read from the
NRF_FICR->DEVICEADDRIt is discussed on page 46, 47 of the nRF spec.This is of course the random static address Nordic assigns. If you want your own ID, then you have to buy the block of ID's and code it yourself.
A more in-depth discussion on the ble address can be found here: https://devzone.nordicsemi.com/f/nordic-q-a/2112/how-to-get-6-byte-mac-address-at-nrf51822