Skip to content

Commit db20615

Browse files
committed
PortentaH7: expose board info from bootloader
1 parent c7d18a6 commit db20615

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
lines changed
18.2 KB
Binary file not shown.
29.8 KB
Binary file not shown.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
uint8_t* bootloader_data = (uint8_t*)(0x801F000);
2+
3+
void setup() {
4+
// put your setup code here, to run once:
5+
Serial.begin(115200);
6+
while (!Serial) {}
7+
}
8+
9+
void loop() {
10+
// put your main code here, to run repeatedly:
11+
Serial.println("Validation: " + String(bootloader_data[0], HEX));
12+
Serial.println("BL version: " + String(bootloader_data[1]));
13+
Serial.println("Clock source: " + String(bootloader_data[2]));
14+
Serial.println("USB Speed: " + String(bootloader_data[3]));
15+
Serial.println("Ethernet: " + String(bootloader_data[4]));
16+
Serial.println("Wifi: " + String(bootloader_data[5]));
17+
Serial.println("RAM size: " + String(bootloader_data[6]));
18+
Serial.println("QSPI size: " + String(bootloader_data[7]));
19+
Serial.println("Video: " + String(bootloader_data[8]));
20+
Serial.println("Crypto: " + String(bootloader_data[9]));
21+
delay(1000);
22+
}

0 commit comments

Comments
 (0)