2025-09-01 10:09 AM
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.
Solved! Go to Solution.
2025-09-02 5:14 AM
Hello,
As you suspected, Index 0 is reserved to the Master Key.
You may refer to AN5185 for more details.
Regards.
2025-09-02 5:14 AM
Hello,
As you suspected, Index 0 is reserved to the Master Key.
You may refer to AN5185 for more details.
Regards.
2025-09-02 6:52 AM
Thank you for your response.
Regards