Skip to main content
Visitor II
August 10, 2021
Solved

Read 96 bit UDID through serial bootloader or SWD

  • August 10, 2021
  • 3 replies
  • 2590 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

    3 replies

    Super User
    August 10, 2021

    The Read Memory command in the bootloader can read this.

    TDKAnswer
    Super User
    August 10, 2021

    SWD can also do it easily.

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

    Visitor II
    November 25, 2023

    Hello,

    in which document is this address actually described/noted?

    machinistAuthor
    Visitor II
    August 10, 2021

    Perfect, thank you!