44#include " LittleFileSystem.h"
55#include " FATFileSystem.h"
66#if defined(ARDUINO_PORTENTA_H7_M7)
7+ #include " portenta_info.h"
78#include " portenta_bootloader.h"
89#include " portenta_lite_bootloader.h"
910#include " portenta_lite_connected_bootloader.h"
@@ -42,6 +43,8 @@ uint8_t* bootloader_identification = (uint8_t*)(BOOTLOADER_ADDR + bootloader_ide
4243const unsigned char * bootloader_ptr = &bootloader_mbed_bin[0 ];
4344long bootloader_len = bootloader_mbed_bin_len;
4445
46+ uint8_t * boardInfo ();
47+
4548void setup () {
4649 Serial.begin (115200 );
4750 while (!Serial) {}
@@ -65,6 +68,18 @@ void setup() {
6568 Serial.println (" Has Video output: " + String (bootloader_data[8 ] == 1 ? " Yes" : " No" ));
6669 Serial.println (" Has Crypto chip: " + String (bootloader_data[9 ] == 1 ? " Yes" : " No" ));
6770
71+ auto info = *((PortentaBoardInfo*)boardInfo ());
72+ if (info.magic == 0xB5 ) {
73+ Serial.println (" Secure info version: " + String (info.version ));
74+ Serial.println (" Secure board revision: " + String (info.revision >> 8 ) + " ." + String (info.revision & 0xFF ));
75+ Serial.println (" Secure carrier identification: " + String (info.carrier >> 8 ) + " ." + String (info.revision & 0xFF ));
76+ Serial.println (" Secure vid: 0x" + String (info.vid , HEX));
77+ Serial.println (" Secure pid: 0x" + String (info.pid , HEX));
78+ Serial.println (" Secure mac: " + String (info.mac_address [0 ], HEX) + " :" + String (info.mac_address [1 ], HEX) + " :" +
79+ String (info.mac_address [2 ], HEX) + " :" + String (info.mac_address [3 ], HEX) + " :" +
80+ String (info.mac_address [4 ], HEX) + " :" + String (info.mac_address [5 ], HEX));
81+ }
82+
6883 video_available = bootloader_data[8 ];
6984 wifi_available = bootloader_data[5 ];
7085
0 commit comments