Question
read unique id from code
Posted on May 26, 2016 at 13:44
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''https://techoverflow.net/blog/2015/02/03/reading-the-stm32-unique-device-id-in-c/
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 #stm32-f051x