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

Building MCUBoot in Segger IDE

Hi Nordic experts, 

I am trying to use Segger IDE to build the mcuboot boot-loader for NRF52x development kit. 
I am using NRF connect SDK 1.3.0
While I can build it successfully using command line,no luck so far with the IDE. 

I went through teh mcuboot and zephyr documentation and couldn't locate a right approach to use IDE so far.  

Please can you point me to a right user guide to build a zypher application and mcuboot in IDE and get 2 separate Images for programming ? 


Thanks 

Parents
  • I managed to program both the MCUboot and the application using SEGGER Embedded Studio (SES) Nordic Edition v4.52 (64-bit).

    I added CONFIG_BOOTLOADER_MCUBOOT=y to ncs\zephyr\samples\basic\blinky\prj.conf and built it using SES: Build→Build zephyr/merged.hex. This will build both the mcuboot (ncs\zephyr\samples\basic\blinky\build_nrf52840dk_nrf52840\mcuboot\zephyr\zephyr.hex) and the blinky application (ncs\zephyr\samples\basic\blinky\build_nrf52840dk_nrf52840\zephyr\zephyr.hex)  and merge the hex files into the file ncs\zephyr\samples\basic\blinky\build_nrf52840dk_nrf52840\zephyr\merged.hex.

    If you've built the application as explained above, mcuboot and the application can be flashed in some different ways. Here are some options:

    • You can program the application and mcuboot separately by adding the files ncs\zephyr\samples\basic\blinky\build_nrf52840dk_nrf52840\zephyr\app_signed.hex and ncs\zephyr\samples\basic\blinky\build_nrf52840dk_nrf52840\mcuboot\zephyr\zephyr.hex to the nRF Connect for Desktop Programmer app and flashing it all to the chip
    • Flash merged.hex using the Programmer app
    • Flash merged.hex using SES
      • In SES, click on Target→Download zephyr/merged.hex

    Best regards,

    Simon

Reply
  • I managed to program both the MCUboot and the application using SEGGER Embedded Studio (SES) Nordic Edition v4.52 (64-bit).

    I added CONFIG_BOOTLOADER_MCUBOOT=y to ncs\zephyr\samples\basic\blinky\prj.conf and built it using SES: Build→Build zephyr/merged.hex. This will build both the mcuboot (ncs\zephyr\samples\basic\blinky\build_nrf52840dk_nrf52840\mcuboot\zephyr\zephyr.hex) and the blinky application (ncs\zephyr\samples\basic\blinky\build_nrf52840dk_nrf52840\zephyr\zephyr.hex)  and merge the hex files into the file ncs\zephyr\samples\basic\blinky\build_nrf52840dk_nrf52840\zephyr\merged.hex.

    If you've built the application as explained above, mcuboot and the application can be flashed in some different ways. Here are some options:

    • You can program the application and mcuboot separately by adding the files ncs\zephyr\samples\basic\blinky\build_nrf52840dk_nrf52840\zephyr\app_signed.hex and ncs\zephyr\samples\basic\blinky\build_nrf52840dk_nrf52840\mcuboot\zephyr\zephyr.hex to the nRF Connect for Desktop Programmer app and flashing it all to the chip
    • Flash merged.hex using the Programmer app
    • Flash merged.hex using SES
      • In SES, click on Target→Download zephyr/merged.hex

    Best regards,

    Simon

Children
No Data
Related