cancel
Showing results for 
Search instead for 
Did you mean: 

Unique Device Id Register

vinicius_acvasconcelos
Associate II
Posted on August 05, 2009 at 14:28

Unique Device Id Register

6 REPLIES 6
vinicius_acvasconcelos
Associate II
Posted on May 17, 2011 at 13:11

How can I read the unique device Id of my microcontroller? I didn't find any function in the firmware guide. Any suggestion?

Thanks.

ccowdery9
Associate III
Posted on May 17, 2011 at 13:11

There isn't one to read.

Chris.

kilian2
Associate II
Posted on May 17, 2011 at 13:11

e.g. as follows:

#define U_ID_0 (*(vu32*) 0x1FFFF7E8)

#define U_ID_1 (*(vu32*) 0x1FFFF7EC)

#define U_ID_2 (*(vu32*) 0x1FFFF7F0)

printf (''Unique ID
ccowdery9
Associate III
Posted on May 17, 2011 at 13:11

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.

vinicius_acvasconcelos
Associate II
Posted on May 17, 2011 at 13:11

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 ID
tr
Associate
Posted on May 17, 2011 at 13:11

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 ]