This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Re-program MAC ID

Hi guys, Is there any way that I can re program the MAC ID of the nRF51822 devices through the SWD interface? I was able to do this using the UART interface with the BL600 (Laird) module which is based on the nRF51822 SOC so I am thinking there has to be a way to do this. Any ideas if this is possible? Thanks!

  • You can't change the address in FICR, but what you can do is to write a custom address somewhere else in flash, then read it out in your program and tell the stack to use it by calling sd_ble_gap_address_set().

    This is the kind of data that is well suited to be written in the customer part of UICR, since it should never need to change while running. Take a look at chapter 7 of the nRF51 Reference Manual for which addresses can be used. You can write to UICR either with nrfjprog or as part of your application. Take a look at uicr_config_example for the latter.

Related