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

nRF51822 Mac Address

Do the nRF51822 has valid Mac address on it, or we have to write our own Mac address into the chip?

Parents
  • Hi Fiske,

    we program a random MAC address to the FICR registerers( specifically DEVICEADDRTYPE, DEVICEADDR[0], DEVICEADDR[1]) of the nRF51822 during production.

    The SoftDevice will read out the address and use it as the MAC address. You can retrieve and set the sd_ble_gap_address_get() and sd_ble_gap_address_set() APIs. However, you should not that sd_ble_gap_address_set() will not alter the FICR registers, it must therefore be called every time you initialize the SoftDevice.

    Best regards

    Bjørn

Reply
  • Hi Fiske,

    we program a random MAC address to the FICR registerers( specifically DEVICEADDRTYPE, DEVICEADDR[0], DEVICEADDR[1]) of the nRF51822 during production.

    The SoftDevice will read out the address and use it as the MAC address. You can retrieve and set the sd_ble_gap_address_get() and sd_ble_gap_address_set() APIs. However, you should not that sd_ble_gap_address_set() will not alter the FICR registers, it must therefore be called every time you initialize the SoftDevice.

    Best regards

    Bjørn

Children
Related