Problem for Linking config_bootloader_mcuboot=y to normal zephyr application

Hi Mate,

I have very small issue that is when i am trying to link config_bootloader_mcuboot=y in zephyr application the program is not flashed. I need to run zephyr application in mcuboot for the reason in prj.conf i added config_bootloader_mcuboot=y . i need to flash the code i missed anything in prj.conf please help that and amk using bl653_dvk board and am using west command promt

Parents
  • I added CONFIG_BOOTLOADER_MCUBOOT=y to the sample zephyr/samples/hello_world in NCS v2.0.0 and built it with bl653_dvk without any errors. Since I don't have a bl653_dvk board I could not test it. However I built the exact same sample for the nrf52840dk_nrf52840 and flashed it to the 52840 DK and got the following log ouput in a serial terminal:

    *** Booting Zephyr OS build v3.0.99-ncs1  ***
    I: Starting bootloader
    I: Primary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
    I: Secondary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
    I: Boot source: none
    I: Swap type: none
    I: Bootloader chainload address offset: 0xc000
    *** Booting Zephyr OS build v3.0.99-ncs1  ***
    Hello World! nrf52840dk_nrf52840

    Down below I have uploaded the hex file generated for the bl653_dvk (merged.hex). Could you program it to your board using nrfjprog --program merged.hex --sectorerase. Then open a serial terminal and see if you get a similar output as shown above.

    4722.merged.hex

    Here is the sample if you need that:

    2678.hello_world_mcuboot.zip

    Best regards,

    Simon

Reply
  • I added CONFIG_BOOTLOADER_MCUBOOT=y to the sample zephyr/samples/hello_world in NCS v2.0.0 and built it with bl653_dvk without any errors. Since I don't have a bl653_dvk board I could not test it. However I built the exact same sample for the nrf52840dk_nrf52840 and flashed it to the 52840 DK and got the following log ouput in a serial terminal:

    *** Booting Zephyr OS build v3.0.99-ncs1  ***
    I: Starting bootloader
    I: Primary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
    I: Secondary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
    I: Boot source: none
    I: Swap type: none
    I: Bootloader chainload address offset: 0xc000
    *** Booting Zephyr OS build v3.0.99-ncs1  ***
    Hello World! nrf52840dk_nrf52840

    Down below I have uploaded the hex file generated for the bl653_dvk (merged.hex). Could you program it to your board using nrfjprog --program merged.hex --sectorerase. Then open a serial terminal and see if you get a similar output as shown above.

    4722.merged.hex

    Here is the sample if you need that:

    2678.hello_world_mcuboot.zip

    Best regards,

    Simon

Children
No Data
Related