cancel
Showing results for 
Search instead for 
Did you mean: 

How to sign image for STM32WB55 with correct load address and entry point

NWang.2
Associate II

I have STM32WB55 nucleo pack.

The installation of STM32CubeProgrammer brought two tools STM32MP_KeyGen_CLI.exe

STM32MP_SigningTool_CLI.exe.

Following instruction https://wiki.st.com/stm32mpu/wiki/Signing_tool, a sample of signing command:

./STM32MP_SigningTool_CLI -bin /home/User/BinaryFile.bin –pubk /home/user/publicKey.pem –prvk /home/user/privateKey.pem –iv 5 –pwd azerty –la 0x20000000 –ep 0x08000000

What the load address and entry point for my STM32WB55 nucleo board?

1 ACCEPTED SOLUTION

Accepted Solutions
ChahinezC
Lead

Hello @NWang.2​,

Actually the STM32MP_SigningTool_CLI.exe. and STM32MP_KeyGen_CLI.exe are made for STM32MPU only.

If this solves your problem, please mark my answer as "Best Answer" by clicking on the "Select as Best" button, this can be very helpful for Community users to find this solution faster.

Thank you.

Chahinez.

View solution in original post

4 REPLIES 4
ChahinezC
Lead

Hello @NWang.2​,

Actually the STM32MP_SigningTool_CLI.exe. and STM32MP_KeyGen_CLI.exe are made for STM32MPU only.

If this solves your problem, please mark my answer as "Best Answer" by clicking on the "Select as Best" button, this can be very helpful for Community users to find this solution faster.

Thank you.

Chahinez.

NWang.2
Associate II

Hi @ChahinezC​ ,

Thank you for answering my question! If STM32MP_SigningTool_CLI.exe. and STM32MP_KeyGen_CLI.exe are not for STM32WB55, would you advise what the tool to create keys for STM32WB55 and what the tool to sign firmware for STM32WB55?

Thank you very much for help!

Nancy

ChahinezC
Lead

Hi @NWang.2​,

For STM32Programmer_CLI WB specific commands, I recommend you checking the 3.2.22 STM32WB specific commands section of the UM2237.

Thanks.

Chahinez.

NWang.2
Associate II

Hi @ChahinezC​ ,

Sorry coming back to you for the issue. I have not found out image signing process for STM32WB5x image. 

I have read through UM2237 as you suggested which leaded me to UM2238. It is quite exhausting without a clue. Here is another signing tool STM32TrustedPackageCreator_CLI.exe from UM2238. In the section STM32WB firmware signing, with following an instruction to create a private key with openssl, I signed a file with command recommand in the section:

##################################

>STM32TrustedPackageCreator_CLI.exe -sign -bin nucleo_p2pServer.bin -prvk openssl\prvkey.pem -v 2 -o testtpc.bin

I got error message

  -------------------------------------------------------------------

      STM32 Trusted Package Creator v2.10.0

  -------------------------------------------------------------------

Input image is of type : Unknown ST image

#####################################

nucleo_p2pServer.bin is downloaded from ST.com. It is a sample binary from  

Euro_2019_WB_V1\HandsOns\HandsOn_1_RF_Stack_Update_USB\CM4_examples_binaries_1.0

Here is the link to the sample binary file https://www.st.com/content/st_com/en/support/learning/stm32-education/stm32-moocs/STM32WB_FUOTA_MOOC.html

Please help

Thank you very much

Nancy