cancel
Showing results for 
Search instead for 
Did you mean: 

STM32WB55MMG SHCI_C2_FUS_LoadUsrKey(0) not working

XaviF
Visitor

Hi all,

 

I am working on a project based on the STM32WB55MMG, where I want to use the AES module to encrypt data using a previsouly programmed key in the FUS.

I have downloaded the corresponding key with the command STM32_Programmer_CLI.exe -c port=JTAG -wusrkey XXX_key.bin keytype=1 but it would seem that the key has been written in index 1, not 0 as I was expecting. If I try to load the key using SHCI_C2_FUS_LoadUsrKey(0) it returns SHCI_FUS_CMD_NOT_SUPPORTED but if I try with index 1 instead it returns SHCI_SUCCESS.

I cannot confirm the written index as the command line did not return the actual index where the key was written. In fact, I think this is a known issue when downloading a key using SWD.

My question is if index 0 is reserved for another purpose and actually the first slot that can effectively be written with a general user key is 1.

 

Thanks in advance.

0 REPLIES 0