Cannot boot LVGL apps from external QSPI Flash with MCUBoot #84395
Labels
area: LVGL
Light and Versatile Graphics Library Support
area: MCUBoot
bug
The issue is a bug, or the PR is fixing a bug
Describe the bug
Cannot boot an app, that uses LVGL, with MCUBoot from external flash on STM32H750B-DK, but I suspect it is not specific to this board (Although I have not yet tested with another one)
I tested with many other apps that do not use LVGL, and everything works as expected, even apps that use the display.
I tested with all available LVGL samples and tests & had the same problem.
Also, I tested with different MCUBoot modes,
SB_CONFIG_MCUBOOT_MODE_DIRECT_XIP
,DSB_CONFIG_MCUBOOT_MODE_SINGLE_APP
..., and with different memory layouts without success.To Reproduce
Steps to reproduce the behavior:
boot/zephyr/boards/stm32h750b_dk.conf
,boot/zephyr/boards/stm32h750b_dk.overlay
, andboot/zephyr/flash_map_extended.c
), with the addition ofCONFIG_BOOT_MAX_IMG_SECTORS_AUTO=n CONFIG_BOOT_MAX_IMG_SECTORS=256
instm32h750b_dk.conf
west build -p always -b stm32h750b_dk samples/hello_world --sysbuild -- -DSB_CONFIG_BOOTLOADER_MCUBOOT=y -DSB_CONFIG_MCUBOOT_MODE_SINGLE_APP=y -DCONFIG_FLASH_BASE_ADDRESS=0x90000000
CONFIG_FLASH=y CONFIG_STM32_MEMMAP=y
to your app'sprj.conf
or instm32h750b_dk.conf
Alternatively to step 4, you can use STM32CubeProg GUI, select the MT25TL01G_STM32H750B-DISCO external loader (in
External loaders
at the bottom of left side menu) , and then flash MCUBoot's zephyr.hex and app's zephyr.signed.hexExpected behavior
Boot the app successfully
Impact
Blocking
Logs and console output
Environment (please complete the following information):
Additional context
N/A
The text was updated successfully, but these errors were encountered: