Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Atmel UC3 - how to get the serial number?

Each Atmel UC3 apparently has a unique serial number. Does anyone know how I retrieve it in software?

like image 592
Mawg says reinstate Monica Avatar asked Oct 08 '22 18:10

Mawg says reinstate Monica


1 Answers

http://www.avrfreaks.net/index.php?name=PNphpBB2&file=viewtopic&p=922774&sid=8ce72b4a3a0697eaafed1ec7413c3bd3#922774

Even better: I wrote to Atmel tech support (which I should have done in the first place?) and got this reply:

The serial number is defined by a 120-bit data located at address 0x80800204-0x80800212 for UC3A. For each chip, the serial number is unique.

Here is an example:

volatile unsigned int* id_data = 0x80800204;
unsigned int ID_get[4];
for(int i=0;i<4;i++)
   ID_get[i] = *id_data++;
like image 125
Mawg says reinstate Monica Avatar answered Oct 12 '22 10:10

Mawg says reinstate Monica