Skip to content

Commit

Permalink
Move logic to setup function
Browse files Browse the repository at this point in the history
  • Loading branch information
sebromero committed Sep 22, 2020
1 parent 944ad9f commit cef4249
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
uint8_t* bootloader_data = (uint8_t*)(0x801F000);

void setup() {
// put your setup code here, to run once:
void setup() {
Serial.begin(115200);
while (!Serial) {}
}

void loop() {
// put your main code here, to run repeatedly:

Serial.println("Validation: " + String(bootloader_data[0], HEX));
Serial.println("BL version: " + String(bootloader_data[1]));
Serial.println("Clock source: " + String(bootloader_data[2]));
Expand All @@ -18,5 +14,8 @@ void loop() {
Serial.println("QSPI size: " + String(bootloader_data[7]));
Serial.println("Video: " + String(bootloader_data[8]));
Serial.println("Crypto: " + String(bootloader_data[9]));
}

void loop() {
delay(1000);
}

0 comments on commit cef4249

Please sign in to comment.