8000 Make System examples compile for M4 · arduino/ArduinoCore-mbed@96a3416 · GitHub
[go: up one dir, main page]

Skip to content

Commit 96a3416

Browse files
committed
Make System examples compile for M4
1 parent 3573539 commit 96a3416

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

libraries/Portenta_System/examples/PortentaH7_getBootloaderInfo/PortentaH7_getBootloaderInfo.ino

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
#ifdef CORE_CM4
2+
#define Serial Serial1
3+
#endif
4+
15
uint8_t* bootloader_data = (uint8_t*)(0x801F000);
26

37
void setup() {

libraries/Portenta_System/examples/PortentaH7_updateBootloader/PortentaH7_updateBootloader.ino

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
#include "FlashIAP.h"
22
#include "bootloader.h"
33

4+
#ifdef CORE_CM4
5+
#define Serial Serial1
6+
#endif
7+
48
#define BOOTLOADER_ADDR (0x8000000)
59
mbed::FlashIAP flash;
610

0 commit comments

Comments
 (0)
0