cancel
Showing results for 
Search instead for 
Did you mean: 

viewing selected key index when using -wusrkey with -c port=SWD

js2985542
Associate

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

js2985542_1-1730227202059.png

 

Example with -c port=SWD

./STM32_Programmer_CLI -c port=SWD -wusrkey some_key.bin keytype=1

js2985542_0-1730227165838.png

 

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
Amine_Jridi
ST Employee

Hello @js2985542,

I have submitted a ticket to our team requesting to add the key index return when using SWD.

Internal ticket number: 196289 (This is an internal tracking number and is not accessible or usable by customers).

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.

View solution in original post

1 REPLY 1
Amine_Jridi
ST Employee

Hello @js2985542,

I have submitted a ticket to our team requesting to add the key index return when using SWD.

Internal ticket number: 196289 (This is an internal tracking number and is not accessible or usable by customers).

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.