Skip to main content
Visitor II
October 29, 2024
Solved

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

  • October 29, 2024
  • 1 reply
  • 870 views

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!

Best answer by Amine_Jridi

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.

1 reply

Amine_Jridi
Amine_JridiBest answer
Technical Moderator
November 14, 2024

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.