2009-08-05 05:28 AM
Unique Device Id Register
2011-05-17 04:11 AM
How can I read the unique device Id of my microcontroller? I didn't find any function in the firmware guide. Any suggestion?
Thanks.2011-05-17 04:11 AM
There isn't one to read.
Chris.2011-05-17 04:11 AM
e.g. as follows:
#define U_ID_0 (*(vu32*) 0x1FFFF7E8) #define U_ID_1 (*(vu32*) 0x1FFFF7EC) #define U_ID_2 (*(vu32*) 0x1FFFF7F0) printf (''Unique ID2011-05-17 04:11 AM
I stand corrected! I'm sure there was a thread a while ago about this, and there wasn't one. I must be imagining things.
Chris.2011-05-17 04:11 AM
Thanks, it works!:-]
Quote:
On 06-05-2009 at 11:34, Anonymous wrote: e.g. as follows: #define U_ID_0 (*(vu32*) 0x1FFFF7E8) #define U_ID_1 (*(vu32*) 0x1FFFF7EC) #define U_ID_2 (*(vu32*) 0x1FFFF7F0) printf (''Unique ID2011-05-17 04:11 AM
When I use this code I get
Unique ID 0xffffffff 0xffffffff 0xffffffff Why dont I get a unique ID ? The processor is STM32F101C6T6A and datecode is 832 (2008 week 32) T [ This message was edited by: tr on 05-08-2009 18:00 ] [ This message was edited by: tr on 05-08-2009 18:00 ] [ This message was edited by: tr on 05-08-2009 18:09 ]