cancel
Showing results for 
Search instead for 
Did you mean: 

Zephyr MCUboot for Stm32

A Maq
Senior

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?

1 ACCEPTED SOLUTION

Accepted Solutions
Sarra.S
ST Employee

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.

 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

View solution in original post

2 REPLIES 2
Sarra.S
ST Employee

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.

 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

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.