circuitpython/ports/esp32s2/common-hal/microcontroller
Jeff Epler a2919a6fb2 esp32s2: Use the device's EUI-48 address as unique ID
On my hardware, esptool reports
    MAC: 7c:df:a1:02:6c:b8
after this change, the USB descriptor says SerialNumber: 7CDFA1026CB8
and microcontroller.cpu.id has
    >>> "".join("%02x" % byte for byte in microcontroller.cpu.uid)
    'c7fd1a20c68b'

Note that the nibble-swapping between USB and cpu.uid is typical.
For instance, an stm32 board has USB SerialNumber
24002500F005D42445632302 but hex-converted microcontroller.cpu.id
420052000f504d4254363220.
2020-07-15 11:45:13 -05:00
..
__init__.c First try at critical section support 2020-05-19 17:49:17 -07:00
Pin.c Switch SPI to polling DMA and enable displayio 2020-06-24 13:10:08 -07:00
Pin.h Switch SPI to polling DMA and enable displayio 2020-06-24 13:10:08 -07:00
Processor.c esp32s2: Use the device's EUI-48 address as unique ID 2020-07-15 11:45:13 -05:00
Processor.h esp32s2: Use the device's EUI-48 address as unique ID 2020-07-15 11:45:13 -05:00