Skip to main content
machinist
Associate III
August 10, 2021
Solved

Read 96 bit UDID through serial bootloader or SWD

  • August 10, 2021
  • 6 replies
  • 2653 views

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.
Best answer by TDK

SWD can also do it easily.

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

6 replies

TDK
August 10, 2021

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
August 10, 2021

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
November 25, 2023

Hello,

in which document is this address actually described/noted?

Tesla DeLorean
Guru
November 25, 2023
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
August 10, 2021

Perfect, thank you!