femtoduino / ArduinoCore-atsamd21e18a

Arduino Core and Bootloader for the ATMEL SAM D21/R21 (E Variant) chips.
https://femto.io
29 stars 15 forks source link

PLEASE DON'T MERGE BEFORE TESTING > Support serial number on USB #31

Closed garnould closed 5 years ago

garnould commented 5 years ago

Please test on Windows and Linux computer. Tested on OSX.


Adding serial number support ('Each device has a unique 128-bit serial number which is a concatenation of four 32-bit words')

Based on chapter 8.8.3 of https://www.mouser.com/ds/2/268/Atmel-42223-SAM-R21_Datasheet-1065540.pdf

Computing an XOR'ed 32-bit value of ((uint32_t )(0x0080A00C)) ^ ((uint32_t )(0x0080A040)) ^ ((uint32_t )(0x0080A044)) ^ ((uint32_t )(0x0080A048))