Hello, I want to modify ncs\v2.2.0\bootloader\mcuboot\boot\zephyr main.c code of BLE OTA bootloader, but I need to move its code inside my application firmware repository folder except mcuboot, ncs and third party stuff. Then I want to link this bootloader to my application through prj.conf of the application. How to do it in proper way? Thanks.
Target board: nRF5340-DK 400432
The reason I need to modify the original bootloader code is that I want to add "Enter to boot mode by button pressing at startup" feature. If I press the button upon turn on, the bootloader should not run the main firmware but should wait in "boot mode" for BLE connections.
After providing path for nrf sdk boot directory, I got the same error as in this question.
Thanks.