Skip to content

Unable to start an application with mcuboot using nucleo_h745zi_q board #62802

Closed Answered by mariopaja
joelguittet asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @joelguittet

Sure you can use west. In this case, I have copied the hello_world sample at ~/zephyrproject/ and added the following in the prj.conf.

# Print a banner on the UART on startup.
CONFIG_BOOT_BANNER=y

# Enable console and printk()
CONFIG_PRINTK=y
CONFIG_STDOUT_CONSOLE=y

# Enable Zephyr application to be booted by MCUboot
CONFIG_BOOTLOADER_MCUBOOT=y

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…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@joelguittet
Comment options

@mariopaja
Comment options

Answer selected by joelguittet
@joelguittet
Comment options

@mariopaja
Comment options

@joelguittet
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants