Reading MCU's Unique Device ID Register

Posted on
  • First, does the MCU of classic and Pico Espruino board have a Unique Device ID? ...and if so: Second, how would I get a hold of the Unique Device ID in Javascript?

  • Yes, they do - process.env.SERIAL and also getSerial() contain the unique ID.

    If there are other chip-specific things you want it's actually pretty easy to find the address from the datasheet and use peek to pull the data out...

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

Reading MCU's Unique Device ID Register

Posted by Avatar for allObjects @allObjects

Actions