Zigbee: how to have both router and end device firmware images in flash and select which one to use at boot time.

...On a NRF5340, using NRF Connect 2.6.1 SDK and tool chain.

In our application, we need to select if NRF5340 device boots in ZIGBEE ROUTER role or ZIGBEE END DEVICE role dynamically at boot time.

We understand that for each role, we have to build two distinct binary images, they are not linking same ZBOSS lib.

So, we need to have the two images present in flash (internal or external) and make MCUBOOT select which one to boot according to dynamic parameter(s)

Can someone provide some guidance on how to do that, I'm sure I'm not the only one out there that needs this.

Thanks.

Related