File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
libraries/STM32H747_System/examples/STM32H747_getBootloaderInfo Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 11uint8_t * bootloader_data = (uint8_t *)(0x801F000 );
2+ uint8_t * bootloader_identification = (uint8_t *)(0x80002F0 );
23
34void setup () {
45 Serial.begin (115200 );
56 while (!Serial) {}
6-
7+
8+ uint8_t currentBootloaderVersion = bootloader_data[1 ];
9+ String currentBootloaderIdentifier = String (bootloader_identification, 15 );
10+
11+ if (!currentBootloaderIdentifier.equals (" MCUboot Arduino" )) {
12+ currentBootloaderIdentifier = " Arduino loader" ;
13+ }
14+
15+ Serial.println (currentBootloaderIdentifier);
716 Serial.println (" Magic Number (validation): " + String (bootloader_data[0 ], HEX));
817 Serial.println (" Bootloader version: " + String (bootloader_data[1 ]));
918 Serial.println (" Clock source: " + getClockSource (bootloader_data[2 ]));
You can’t perform that action at this time.
0 commit comments