cancel
Showing results for 
Search instead for 
Did you mean: 

ST-LINK_CLI Board Serial Number

ptsamouris
Associate II
Posted on March 17, 2015 at 18:40

Hi,

I have multiple STM32F4 discovery boards connected to the same pc.

I use the ST-LINK_CLI utility to burn my user applications and reset them.

Is there any way I can have access to the SN field that the ST-LINK_CLI reports in a user space application?

I am not referring to the Unique ID that can be exposed via reading from 0x1FFF7A10 etc, I mean the SN reported by ST-LINK_CLI.

Thanks
6 REPLIES 6
Posted on March 17, 2015 at 18:49

In the registry?

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
ptsamouris
Associate II
Posted on March 17, 2015 at 19:04

Hi Clive,

I'm sorry I did not quite catch that. Can you explain please.

ptsamouris
Associate II
Posted on March 17, 2015 at 19:32

To explain what I need a bit more, the output for one of the boards I am using currently is:

Unique Id:

             0x3731343833334712002A002x

ST-LINK_CLI

    SN:   0x55FF7306507549543831208x

    FW: V2J23S0

Is the 24byte string 0x55FF7306507549543831208x  somehow derived from UniqueID?

I can (correctly) get the UniqueID from the registers, but I need to be able to extract the SN so I can say reset the board.

Posted on March 17, 2015 at 19:47

If I were looking for USB device specific serial numbers, on windows, I'd start by looking in ''The Registry'' for them.

It's most likely the Unique ID of the ST-LINK's STM32, not the Target's

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
ptsamouris
Associate II
Posted on March 17, 2015 at 20:02

Right, thanks for the tip, however I can't seem to find anything relevant in the registry.

Yes I have managed to track down a number of STM32 related keys, however it would

appear the Serial Number is not kept in the registry, or if it is, it is not in a form I can

use to work with.

I was kind of hoping the board Serial Number could somehow be exposed to the app

running on the board, so that the user could have access to it as a variable.

Nickname306_O
Senior
Posted on April 16, 2015 at 16:15

Hi Pete_T,

There is no relation between SN and the Unique ID.

you can connect to one of them, using the ST-LINK_CLI like follow -c swd ID=3 -Rst ( in case you have 4 STM32 connected to your PC or more ).

Best Regards,

Nouha