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

nRF91: questions related to merged image (App , smp & mcuboot)

Hi,

Sorry for putting so many questions in to single thread :)

----

I am looking for information on what all images been integrated to zephyr/merged.hex, can you point to the scripts which does this?

Whenever i choose board = nrf9160_pca10090ns, automatically the smp is been built and merged to zephyr/merged.hex, is there anything else been merged to  the final image?

Can I flash the app and spm separately using jlink?

----

Coming to the sample “http_application_update” there are three images clubbed to merged.hex i.e App + spm + mcuboot, Can you please point to the documentation/scrips which dictates where a particular image needs to be placed?

regards

KK

 

Parents Reply
  • You can change the memory allocation of SPM, mcuboot; and application by using the partition manager. You will find the documentation here.

    I gone through the documentation pointed above but it dint explains anything about the memory map of any sample projects, but i learnt something about mcuboot+spm+app for the dts file "~\ncs\zephyr\boards\arm\nrf9160_pca10090\nrf9160_pca10090_common.dts" and other threads

    https://devzone.nordicsemi.com/f/nordic-q-a/52329/what-address-to-manually-flash-zephyr-and-application/216304#216304

    https://devzone.nordicsemi.com/f/nordic-q-a/46787/application-won-t-run---erroneous-flash-address-range

    Do you have any more information other than "The board dint boots up"? Like output log and error messages.

    I have enabled the CONFIG_BOOTLOADER_MCUBOOT=y in my project and then flashing the following three file using JLINK

    1. MCUboot zephyr image     \build_nrf9160_pca10090ns\mcuboot\zephyr\zephyr.hex
    2. SPM zephyr image            \build_nrf9160_pca10090ns\spm\zephyr\zephyr.hex
    3. user app zephyr image     \build_nrf9160_pca10090ns\zephyr\zephyr.hex

    After reset i see the below error message

    *** Booting Zephyr OS build v2.1.99-ncs1-2-g30f47eace36c  ***
    [00:00:00.006,134] [0m<inf> mcuboot: Starting bootloader[0m
    [00:00:00.014,282] [0m<inf> mcuboot: Primary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3[0m
    [00:00:00.027,557] [0m<inf> mcuboot: Boot source: none[0m
    [00:00:00.034,667] [1;33m<wrn> mcuboot: Failed reading image headers; Image=0[0m
    [00:00:00.044,433] [1;31m<err> mcuboot: Unable to find bootable image[0m

Children
Related