2024-09-13 06:41 AM
Using following Setup:
IDE : VS Code (NRF connect plug-in)
Programmer : Stm32Cube programmer
St-link Debugger
OS: Zephyr 3.6
MCU: Stm32u5 series
Bootloader: mcuboot
When I try to apply delta_update using delta update library interfaces as provided in the link: https://github.com/saralinnealindh/delta-updates-for-embedded-systems
I followed steps in repo and it worked with image path generated and applied successfully when I applied to (nucleo_l476rg) board. But when I change target to another board that is Stm32u575 it’s not working and giving the error as shown in below screenshots “invalid image”.
Any suggestion will be appreciated on this interface boot_request_upgrade and how to check that signing process of the image is right ?
Here is the last piece of code before booting :
LOG:
Prj.conf :
### Print a banner on the UART on startup.
CONFIG_BOOT_BANNER=y
### MCUBOOT
CONFIG_BOOTLOADER_MCUBOOT=y
CONFIG_IMG_MANAGER=y
CONFIG_MCUBOOT_IMG_MANAGER=y
CONFIG_IMG_ERASE_PROGRESSIVELY=y
CONFIG_REBOOT=y
CONFIG_MCUBOOT_SIGNATURE_KEY_FILE="D:/dev/zephyrproject/bootloader/mcuboot/root-rsa-2048.pem"
CONFIG_MCUBOOT_IMGTOOL_SIGN_VERSION="0.0.1+0"
CONFIG_MCUBOOT_BOOTLOADER_MODE_SWAP_SCRATCH=y
CONFIG_MCUBOOT_EXTRA_IMGTOOL_ARGS="--pad"
# Enable console and printk()
CONFIG_PRINTK=y
# CONFIG_STDOUT_CONSOLE=y
CONFIG_GPIO=y
# CONFIG_UPDATEABLE_IMAGE_NUMBER=
# Logging
CONFIG_LOG=y
CONFIG_LOG_MODE_IMMEDIATE=y
CONFIG_LOG_PRINTK=y
CONFIG_LOG_DEFAULT_LEVEL=4
CONFIG_SERIAL=y
# Flash
CONFIG_SETTINGS=y
CONFIG_FLASH=y
CONFIG_FLASH_PAGE_LAYOUT=y
CONFIG_STREAM_FLASH=y
CONFIG_STREAM_FLASH_ERASE=y
CONFIG_FLASH_MAP=y
CONFIG_MPU_ALLOW_FLASH_WRITE=y
CONFIG_IMG_BLOCK_BUF_SIZE=2048
CONFIG_HEAP_MEM_POOL_SIZE=6096
CONFIG_MAIN_STACK_SIZE=10240