AnsweredAssumed Answered

read unique id from code

Question asked by Pares on May 26, 2016
Latest reply on May 26, 2016 by FTITI.Walid
STM32F051

I get a Hard fault when I try to read the uinque Id "Unique device ID register (96 bits)
The 96-bit unique device identifier... provides a reference number which is unique for any device and in any context. These bits cannot be altered by the user.
Base address: 0x1FFF F7AC
Address offset: 0x00
Read only = 0xXXXXXXXX where X is factory-programmed"
code i found

If I try to read another location I read it fine. Is the address actually out of range and the manual is wrong? or do I have to  do some operation before I try to read it ?

I also tried reading with st-link


13:36:03 : Connected via SWD.
13:36:03 : Connection mode : Normal.
13:36:03 : Debug in Low Power mode enabled.
13:36:03 : Device ID:0x440
13:36:03 : Device flash Size : 64KBytes
13:36:03 : Device family :STM32F051x4/F051x6/F051x8/F030x8
13:36:03 : Can not read memory!


Thank you very much

Outcomes