Add source code to mcuboot with sysbuild

NCS 2.6.0, sysbuild with mcuboot

nrf52840

I'm trying to add  LED indication during mcuboot image transfer.  Currently it takes 20-30 seconds for the image copy and the end-user is concerned the DFU has failed.   

I have modified my mcuboot setup to include the necessary drivers, but I need to add some code to do the following:

* during system startup set an initial state for the LEDS

* as progress is made in the image copy, alter the LED to indicate progress.

Ideally I want a way I can add a SYS_INIT in source code outside of mcuboot repository itself so I can avoid forking mcuboot code.  I was initially thinking to add code in the app/src folder or in app/sysbuild/mcuboot/src...

Related