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 1
1
uint8_t * bootloader_data = (uint8_t *)(0x801F000 );
2
+ uint8_t * bootloader_identification = (uint8_t *)(0x80002F0 );
2
3
3
4
void setup () {
4
5
Serial.begin (115200 );
5
6
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);
7
16
Serial.println (" Magic Number (validation): " + String (bootloader_data[0 ], HEX));
8
17
Serial.println (" Bootloader version: " + String (bootloader_data[1 ]));
9
18
Serial.println (" Clock source: " + getClockSource (bootloader_data[2 ]));
You can’t perform that action at this time.
0 commit comments