Skip to main content
Explorer II
June 11, 2024
Solved

Zephyr MCUboot for Stm32

  • June 11, 2024
  • 1 reply
  • 2805 views

Using following settings:

IDE : VS Code 

Programmer : Stm32Cube programmer

Stlink Debugger 

OS: Zephyr 

MCU: Stm32u5 series 

 

I'm trying to use following link in order to sign application image: 

https://docs.zephyrproject.org/2.7.5/guides/west/sign.html

It keeps reporting invalid image after flashing the image. As shown in the screenshot shared below.

Image is signed.

 

Also tried unsigned but same issue.

Can anyone please suggest what can be potential issue or are there any specific changes required in MCUboot from zephyr to make it work with STM32?

    This topic has been closed for replies.
    Best answer by Sarra.S

    Hello @A Maq

    Please try removing the --erase option in the boards.cmake file (in the Zephyr boards directory for the specific board) 

    There is an issue opened in Zephyr tracking this.  See https://github.com/zephyrproject-rtos/zephyr/issues/69582 for more details.

     

    1 reply

    Sarra.SAnswer
    ST Employee
    June 12, 2024

    Hello @A Maq

    Please try removing the --erase option in the boards.cmake file (in the Zephyr boards directory for the specific board) 

    There is an issue opened in Zephyr tracking this.  See https://github.com/zephyrproject-rtos/zephyr/issues/69582 for more details.

     

    A MaqAuthor
    Explorer II
    June 12, 2024

    Thanks @Sarra.S that helped with not removing the bootloader. There were also some configurations which I was doing wrong by adding ECDSA and the path was pointing to the RSA keys.