Skip to content

Commit 451d57d

Browse files
authored
Merge pull request #310 from pennam/portenta_m4_no_ota
PORTENTA_H7_M4: Remove M4 core from supported build options
2 parents 45d5672 + c31c2da commit 451d57d

File tree

6 files changed

+8
-10
lines changed

6 files changed

+8
-10
lines changed

Diff for: .github/workflows/compile-examples.yml

-2
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@ jobs:
5050
type: gsm
5151
- fqbn: arduino:samd:mkrnb1500
5252
type: nb
53-
- fqbn: arduino:mbed:envie_m4
54-
type: mbed
5553
- fqbn: arduino:mbed:envie_m7
5654
type: mbed
5755
- fqbn: esp8266:esp8266:huzzah

Diff for: src/AIoTC_Config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@
116116

117117
#if defined(ARDUINO_SAMD_MKRGSM1400) || defined(ARDUINO_SAMD_MKR1000) || \
118118
defined(ARDUINO_SAMD_MKRNB1500) || defined(ARDUINO_PORTENTA_H7_M7) || \
119-
defined(ARDUINO_PORTENTA_H7_M4) || defined (ARDUINO_NANO_RP2040_CONNECT)
119+
defined (ARDUINO_NANO_RP2040_CONNECT)
120120
#define BOARD_HAS_ECCX08
121121
#define HAS_TCP
122122
#endif

Diff for: src/ArduinoIoTCloudTCP.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
#include "tls/utility/CryptoUtil.h"
3939
#endif
4040

41-
#if defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_PORTENTA_H7_M4) || defined(ARDUINO_NICLA_VISION)
41+
#if defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_NICLA_VISION)
4242
# include "tls/utility/SHA256.h"
4343
# include <stm32h7xx_hal_rtc_ex.h>
4444
# include <WiFi.h>
@@ -826,7 +826,7 @@ void ArduinoIoTCloudTCP::onOTARequest()
826826
_ota_error = rp2040_connect_onOTARequest(_ota_url.c_str());
827827
#endif
828828

829-
#if defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_PORTENTA_H7_M4) || defined(ARDUINO_NICLA_VISION)
829+
#if defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_NICLA_VISION)
830830
_ota_error = portenta_h7_onOTARequest(_ota_url.c_str());
831831
#endif
832832
}

Diff for: src/utility/ota/OTA-portenta-h7.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
a commercial license, send an email to [email protected].
1616
*/
1717

18-
#if defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_PORTENTA_H7_M4) || defined(ARDUINO_NICLA_VISION)
18+
#if defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_NICLA_VISION)
1919

2020
/******************************************************************************
2121
* INCLUDE
@@ -87,4 +87,4 @@ int portenta_h7_onOTARequest(char const * ota_url)
8787
NVIC_SystemReset();
8888
}
8989

90-
#endif /* defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_PORTENTA_H7_M4) || defined(ARDUINO_NICLA_VISION) */
90+
#endif /* defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_NICLA_VISION) */

Diff for: src/utility/ota/OTA.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ int samd_onOTARequest(char const * ota_url);
6262
int rp2040_connect_onOTARequest(char const * ota_url);
6363
#endif
6464

65-
#if defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_PORTENTA_H7_M4) || defined(ARDUINO_NICLA_VISION)
65+
#if defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_NICLA_VISION)
6666
int portenta_h7_onOTARequest(char const * ota_url);
6767
#endif
6868

Diff for: src/utility/watchdog/Watchdog.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ void mkr_nb_feed_watchdog()
9090
static void mbed_watchdog_enable()
9191
{
9292
watchdog_config_t cfg;
93-
#if defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_PORTENTA_H7_M4) || defined(ARDUINO_NICLA_VISION)
93+
#if defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_NICLA_VISION)
9494
cfg.timeout_ms = PORTENTA_H7_WATCHDOG_MAX_TIMEOUT_ms;
9595
#elif defined(ARDUINO_NANO_RP2040_CONNECT)
9696
cfg.timeout_ms = NANO_RP2040_WATCHDOG_MAX_TIMEOUT_ms;
@@ -116,7 +116,7 @@ static void mbed_watchdog_reset()
116116
void mbed_watchdog_trigger_reset()
117117
{
118118
watchdog_config_t cfg;
119-
#if defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_PORTENTA_H7_M4) || defined(ARDUINO_NICLA_VISION)
119+
#if defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_NICLA_VISION)
120120
cfg.timeout_ms = 1;
121121
#elif defined(ARDUINO_NANO_RP2040_CONNECT)
122122
cfg.timeout_ms = 1;

0 commit comments

Comments
 (0)