Skip to main content
Senior
November 25, 2025
Solved

No padding align with padding in STM32_SigningTool_CLI 2.21

  • November 25, 2025
  • 2 replies
  • 138 views

So i was failing to properly flash my STM32N6 because in version STM32_SigningTool_CLI 2.21.  I think it's because it doesn't align the payload.  So when i flashed the board made with 2.21 it didn't recognize it and didn't load.

 

In version 2.20 this doesn't happen.  I don't know if this is a bug or a failed configuration.  But i used the same command for both of them and it worked in version 2.20.

 

Screenshot from 2025-11-25 07-37-05.png

Screenshot from 2025-11-25 07-36-49.png

Best answer by Amine_Jridi

Hello @Brenden_PLUS,

As highlighted in the warning message, with STM32CubeProgrammer v2.21, we have updated the header v2.3 preparation method because it is used for both MP21 (which doesn’t require alignment at offset 0x400) and STM32N6 (which does require alignment). A new CLI option has now been added to specify the intended platform.

 

To solve this please add the -align or --align option to the signing tool command:
> STM32_SigninTool_CLI -bin zephyr.bin -nk -of 0x80000000 -t fsbl -o GPIO_IOToggle_FSBL-trusted.bin -hv 2.3 -align -dump GPIO_IOToggle_FSBL-Trusted.bin

 

For more information about the new option, you can refer to the STM32 Signing tool User Manual.

 

Thanks,

Amine.

 

2 replies

Amine_Jridi
Amine_JridiBest answer
Technical Moderator
November 25, 2025

Hello @Brenden_PLUS,

As highlighted in the warning message, with STM32CubeProgrammer v2.21, we have updated the header v2.3 preparation method because it is used for both MP21 (which doesn’t require alignment at offset 0x400) and STM32N6 (which does require alignment). A new CLI option has now been added to specify the intended platform.

 

To solve this please add the -align or --align option to the signing tool command:
> STM32_SigninTool_CLI -bin zephyr.bin -nk -of 0x80000000 -t fsbl -o GPIO_IOToggle_FSBL-trusted.bin -hv 2.3 -align -dump GPIO_IOToggle_FSBL-Trusted.bin

 

For more information about the new option, you can refer to the STM32 Signing tool User Manual.

 

Thanks,

Amine.

 

In order 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.
Erwan Gouriou
ST Employee
November 28, 2025

Hi,

To further readers:

Since merge of https://github.com/zephyrproject-rtos/zephyr/pull/99721, `west build` will take care of that for you.

BR

Erwan