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

How to change MAC address when device enters DFU mode?

I was able to change the MAC address in the ble_app_buttonless_dfu example with "sd_ble_gap_addr_set( )".

But, when I enter the DFU mode, the MAC address changes to the default in the FICR. How can I change the MAC address again? Should I change the bootloader code?

Thanks in advance for any help,

Gabriel 

Parents
  • Hi Gabriel, 

    When switching to DFU mode the softdevice need to be reinitialize and the address will be set to default one by the botloader. 
    If you want to change to a fixed one, you can change that in the bootloader.

    Note that in our bootloader it's automatically change to the default address + 1 to avoid bonding issue. Please have a look at gap_address_change() function. 

Reply
  • Hi Gabriel, 

    When switching to DFU mode the softdevice need to be reinitialize and the address will be set to default one by the botloader. 
    If you want to change to a fixed one, you can change that in the bootloader.

    Note that in our bootloader it's automatically change to the default address + 1 to avoid bonding issue. Please have a look at gap_address_change() function. 

Children
Related