Unable to start an application with mcuboot using nucleo_h745zi_q board #62802
-
Hello community ! I wonder how to create and start an application using mcuboot as a bootloader with the nucleo_h745zi_q board. I succeeded with no trouble with an other Nucleo board before but this is blocking for this one. In order to show the issues I'm using the hello-world sample provided with mcuboot into https://github.com/mcu-tools/mcuboot/tree/main/samples/zephyr/hello-world From this application, I have added the following overlays in the boards directory, to perform the configuration of the flash partition layout. just for information, the flash is separated with 2 banks (flash0 and flash1, flash1 that I would like to use later for the M4 core) and each bank has eight 128KB sectors: nucleo_h745zi_q_m7_mcuboot.overlay:
nucleo_h745zi_q_m7.overlay
Then building mcuboot with the following command:
Building and signing manually the hello-world application with the following:
And flashing the target:
mcuboot is starting but it seems the application is not, here are all the logs I get on the terminal:
Well and even worse, before that but I don't remember what I have changed, mcuboot was complaining about the validity of the application slot.... I haven't recorded the logs. Is anybody getting the same issue ? Is there any settings related to the hardware, sector size, ... whatever, I should take care and I have not ? Thanks! Joel PS : Zephyr is v3.4.0. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
That sample in the mcuboot repository should not be used, it is for internal CI testing only. I would suggest getting
At this point, you will have both your bootloader and signed application hex files, and can then flash them to the board and see if it boots and works. |
Beta Was this translation helpful? Give feedback.
Hello @joelguittet
Sure you can use west. In this case, I have copied the
hello_world
sample at~/zephyrproject/
and added the following in theprj.conf
.The only commands needed now:
west build -p -b nucleo_h745zi_q_m7 -s ~/zephyrproject/bootloader/mcuboot/boot/zephyr -- -DCONFIG_BOOT_SWAP_USING_MOVE=y -DCONFIG_BOOT_MAX_IMG_SECTORS=8
west flash --hex-file ~/zephyrproject/bootloader/mcuboot/boot/zephyr/build/zephyr/zephyr.hex
west build -p -b nucleo_h745zi_q_m7 -s ~/zephyrproje…