cancel
Showing results for 
Search instead for 
Did you mean: 

ST-LINK/V2 showing wrong serial number in STM32CubeProgrammer

yogesh30
Associate

Hi,

    I am using ST-LINK/V2 to flash my boards. My issue is that when I tried to flash the boards using OpenOCD, I am getting the error "No device matches the serial string". So I checked ST-Link/V2 serial number using STM32CubeProgrammer, it showed me a 12 byte value. If I used that serial number I am getting the same error.

 

OpenOCD version: Open On-Chip Debugger 0.10.0

STM32CubeProgrammer Version: 2.14.0

ST-LINK/V2 Firmware: V2J42S7

 

I also found a work around for this issue by replacing the serial number byte1, byte5 and byte11 with 3F values. I tried with multiple ST-Links and this work around is working.

 

Serial Number from STM32CubeProgrammer
byte 0byte 1byte 2byte 3byte 4byte 5byte 6byte 7byte 8byte 9byte 10byte 11
49FF6866684565731361387

The Red Highlighted bytes need to be changed to 3F

Fixed Serial Number
byte 0byte 1byte 2byte 3byte 4byte 5byte 6byte 7byte 8byte 9byte 10byte 11
493F686663F56573136133F
2 REPLIES 2
Amel NASRI
ST Employee

Hi @yogesh30,

Did you try a firmware upgrade for the st-link? 

-Amel

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.

Hi,

    Yes, I updated the firmware from V2J42S7 to V2J44S7, but that issue is still there. The work around I mentioned early is also working for the latest firmware.