Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save matthijskooijman/89e3fd69aaf714466524eb93f7197260 to your computer and use it in GitHub Desktop.
Save matthijskooijman/89e3fd69aaf714466524eb93f7197260 to your computer and use it in GitHub Desktop.
Read AVR / Atmega2560 signature byte area; signature is at addresses 0, 2, 4, calibration byte is at address 1
#include <avr/boot.h>
void setup() {
Serial.begin(115200);
// put your setup code here, to run once:
for (uint8_t i = 0; i < 16; ++i) {
Serial.print(i);
Serial.print(": ");
Serial.println(boot_signature_byte_get(i), HEX);
}
}
void loop() {
// put your main code here, to run repeatedly:
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment