|
11 | 11 | * A) ./lzss.py --encode SKETCH.bin SKETCH.lzss
|
12 | 12 | * B) ./bin2ota.py PORTENTA_H7_M7 SKETCH.lzss SKETCH.ota
|
13 | 13 | * 4) Upload the OTA file to a network reachable location, e.g. OTA_Usage_Portenta.ino.PORTENTA_H7_M7.ota
|
14 |
| - * has been uploaded to: http://www.107-systems.org/ota/OTA_Usage_Portenta.ino.PORTENTA_H7_M7.ota |
| 14 | + * has been uploaded to: http://downloads.arduino.cc/ota/OTA_Usage_Portenta.ino.PORTENTA_H7_M7.ota |
15 | 15 | * 5) Perform an OTA update via steps outlined below.
|
16 | 16 | */
|
17 | 17 |
|
|
33 | 33 | static char const SSID[] = SECRET_SSID; /* your network SSID (name) */
|
34 | 34 | static char const PASS[] = SECRET_PASS; /* your network password (use for WPA, or use as key for WEP) */
|
35 | 35 |
|
36 |
| -static char const OTA_FILE_LOCATION[] = "http://www.107-systems.org/ota/OTA_Usage_Portenta.ino.PORTENTA_H7_M7.ota"; |
| 36 | +static char const OTA_FILE_LOCATION[] = "http://downloads.arduino.cc/ota/OTA_Usage_Portenta.ino.PORTENTA_H7_M7.ota"; |
37 | 37 |
|
38 | 38 | /******************************************************************************
|
39 | 39 | * SETUP/LOOP
|
@@ -84,7 +84,7 @@ void setup()
|
84 | 84 |
|
85 | 85 |
|
86 | 86 | Serial.println("Starting download to QSPI ...");
|
87 |
| - int const ota_download = ota.download(OTA_FILE_LOCATION); |
| 87 | + int const ota_download = ota.download(OTA_FILE_LOCATION, false /* is_https */); |
88 | 88 | if (ota_download <= 0)
|
89 | 89 | {
|
90 | 90 | Serial.print ("Arduino_Portenta_OTA_QSPI::download failed with error code ");
|
@@ -117,6 +117,7 @@ void setup()
|
117 | 117 |
|
118 | 118 | Serial.println("Performing a reset after which the bootloader will update the firmware.");
|
119 | 119 | Serial.println("Hint: Portenta H7 LED will blink Red-Blue-Green.");
|
| 120 | + delay(1000); /* Make sure the serial message gets out before the reset. */ |
120 | 121 | ota.reset();
|
121 | 122 | }
|
122 | 123 |
|
|
0 commit comments