Skip to content

Commit e9b9bc9

Browse files
authored
Merge pull request #71 from arduino/bl-wifi-update-message
Nudge user to use the M7 for bootloader and WiFi updates
2 parents d5d9301 + 859a463 commit e9b9bc9

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

.github/workflows/compile-examples.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ jobs:
4242
additional-sketch-paths: '"libraries/PDM" "libraries/ThreadDebug"'
4343
- board:
4444
fqbn: arduino:mbed:envie_m4
45-
additional-sketch-paths: '"libraries/doom" "libraries/KernelDebug" "libraries/Portenta_SDCARD" "libraries/Portenta_System" "libraries/Portenta_Video" '
45+
additional-sketch-paths: '"libraries/doom" "libraries/KernelDebug" "libraries/Portenta_SDCARD" "libraries/Portenta_Video"'
4646
- board:
4747
fqbn: arduino:mbed:envie_m7
48-
additional-sketch-paths: '"libraries/doom" "libraries/KernelDebug" "libraries/Portenta_SDCARD" "libraries/Portenta_System" "libraries/Portenta_Video" "libraries/ThreadDebug" "libraries/USBHOST"'
48+
additional-sketch-paths: '"libraries/doom" "libraries/KernelDebug" "libraries/Portenta_SDCARD" "libraries/Portenta_System" "libraries/Portenta_Video" "libraries/ThreadDebug" "libraries/USBHOST" "libraries/WiFi"'
4949

5050
steps:
5151
- name: Checkout repository

libraries/Portenta_System/examples/PortentaH7_updateBootloader/PortentaH7_updateBootloader.ino

+4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
#include "FlashIAP.h"
22
#include "bootloader.h"
33

4+
#ifndef CORE_CM7
5+
#error Update the bootloader by uploading the sketch to the M7 core instead of the M4 core.
6+
#endif
7+
48
#define BOOTLOADER_ADDR (0x8000000)
59
mbed::FlashIAP flash;
610

libraries/WiFi/examples/PortentaWiFiFirmwareUpdater/PortentaWiFiFirmwareUpdater.ino

+5-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
#include "wiced_resource.h"
55
#include "certificates.h"
66

7+
#ifndef CORE_CM7
8+
#error Update the WiFi firmware by uploading the sketch to the M7 core instead of the M4 core.
9+
#endif
10+
711
QSPIFBlockDevice root(PD_11, PD_12, PF_7, PD_13, PF_10, PG_6, QSPIF_POLARITY_MODE_1, 40000000);
812
mbed::MBRBlockDevice wifi_data(&root, 1);
913
mbed::FATFileSystem wifi_data_fs("wlan");
@@ -87,4 +91,4 @@ void setup() {
8791

8892
void loop() {
8993

90-
}
94+
}

0 commit comments

Comments
 (0)