Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Custom MAC Addresses and the Bootloader

On our products, we assign a custom sequential mac address to each unit (we use this number in other places in our system).  I believe this is an issue due to the bootloader, which increments the mac address by 1, therefore causing 2 devices in the same vicinity to have the same mac.  How have others dealt with this issue?  We would like to maintain the bootloader functionality with the stock Nordic apps for now.

  • Hi,

    For "standard" DFU and buttonless DFU without bonding the bootloader bumps the address by 1 for running in DFU mode (mainly for avoiding trouble with cached GATT table.)

    In order to stay compliant with our apps you can either use only every other address (e.g. odd numbers only) or you can use buttonless DFU with bonding. For the latter option, you must use buttonless DFU and configure both the bootloader and the buttonless DFU service for the application to use/require bonds. With bonded buttonless DFU the same address is used both in application and in bootloader (otherwise the bond would not work) and also the service changed characteristic is required.

    Regards,
    Terje

Related