SparkFun Forums 

Where electronics enthusiasts find answers.

Topics pertaining to the Arduino Core & software used with the Artemis module and Artemis development boards.
#228643
Is there a unique ID (UUID or similar) available with the Apollo3 chip that is accessible through the Arduino Core?

It appears that there is a chipid0 and a chipid1 in Flash according to the Apollo datasheet https://cdn.sparkfun.com/assets/d/e/8/b ... Z9Akgo.pdf that might be useful but I am not sure if it is possible to access them via the Arduino Core.
User avatar
By robin_hodgson
#228676
Yes there is. See the HAL routine:
Code: Select all
device_info_get(am_hal_mcuctrl_device_t *psDevice)
.

Or you can just read the relevant CPU registers directly:
Code: Select all
uint32_t id0 = MCUCTRL->CHIPID0;
uint32_t id1 = MCUCTRL->CHIPID1;
I just checked the board on my bench and it returned 0x27883808 for CHIPID0 and 0x6b2abc82 for CHIPID1. They look like random numbers to me.
 Topic permissions

You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum