2024-10-29 11:44 AM
When using STM32CubeProgrammer v2.17.0 to write a user key via STM32_Programmer_CLI for a WB55, if we are connected via usb1 (DFU) we see the selected key index of the written key. However, if we run this over SWD, no key index is returned. In an environment where DFU is not available and we need to write user keys, how can we view the index the key was written to? We can confirm that the key is being written as when we toggle back and forth with the nucleo board between SWD and usb1, the usb1 output shows an incremented key index.
Example with -c port=usb1
./STM32_Programmer_CLI -c port=usb1 -wusrkey some_key.bin keytype=1
Example with -c port=SWD
./STM32_Programmer_CLI -c port=SWD -wusrkey some_key.bin keytype=1
Thanks!