Skip to main content
machinist
Associate III
Aug 10, 2021 2:04 PM UTC
Solved

Read 96 bit UDID through serial bootloader or SWD

Hello,

I am working on the STM32F103xx. I need to read out the 96 bit UDID (unique device ID) of the devices during production. Is there any way of reading this out from the serial bootloader on UART1 or through the SWD interface?

I searched the AN3155 and AN2606 but could not find any details.

I do not want to flash a temporary firmware just to read it out and then overwrite it again. Nontheless it no other solution is possible I guess its an ugly workaround. It needs to be automated. So using CubIDE is not possible.

Thanks

This topic has been closed for replies.
TDK
TDKBest answer
Aug 10, 2021 2:29 PM UTC

SWD can also do it easily.

STM32_Programmer_CLI.exe -c port=swd --upload 0x1FFFF7E8 12 uid.bin

"If you feel a post has answered your question, please click ""Accept as Solution""."

6 replies

TDK
Aug 10, 2021 2:16 PM UTC

The Read Memory command in the bootloader can read this.

"If you feel a post has answered your question, please click ""Accept as Solution""."
TDK
TDKBest answer
Aug 10, 2021 2:29 PM UTC

SWD can also do it easily.

STM32_Programmer_CLI.exe -c port=swd --upload 0x1FFFF7E8 12 uid.bin

"If you feel a post has answered your question, please click ""Accept as Solution""."
Nickelgrass
Senior
Nov 25, 2023 6:55 PM UTC

Hello,

in which document is this address actually described/noted?

Tesla DeLorean
Guru
Nov 25, 2023 8:04 PM UTC
Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
machinist
machinistAuthor
Associate III
Aug 10, 2021 2:31 PM UTC

Perfect, thank you!