Similar to the Portenta C33, the ArduinoIoTCloud library does not run on the Portenta H7.
I’ve already added the new command I learned from yesterday (lib_ldf_mode = deep+
) to the .ini
, but it made no difference.
.ini
file:
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter, extra scripting
; Upload options: custom port, speed and extra flags
; Library options: dependencies, extra library storages
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
[env:portenta_h7_m7]
platform = ststm32
board = portenta_h7_m7
framework = arduino
; Build Options
build_flags =
-Wall
-Wextra
; -Wpedantic
; -D PIO_FRAMEWORK_ARDUINO_NANOLIB_FLOAT_PRINTF
; -D RELEASE
; -O3
-Og
lib_deps =
ArduinoIoTCloud
lib_ldf_mode = deep+
; Upload Options
upload_protocol = jlink
; Debug Options
debug_tool = jlink
debug_init_break = tbreak setup
Build Logs:
(truncated to meet forum requirements)
...
Compiling .pio/build/portenta_h7_m7/libec2/Ethernet/EthernetServer.cpp.o
/home/zak/.platformio/packages/framework-arduino-mbed/libraries/SocketWrapper/src/utility/http_parser/http_parser.c: In function 'http_parser_execute':
/home/zak/.platformio/packages/framework-arduino-mbed/libraries/SocketWrapper/src/utility/http_parser/http_parser.c:1817:31: warning: this statement may fall through [-Wimplicit-fallthrough=]
parser->upgrade = 1;
~~~~~~~~~~~~~~~~^~~
/home/zak/.platformio/packages/framework-arduino-mbed/libraries/SocketWrapper/src/utility/http_parser/http_parser.c:1819:13: note: here
case 1:
^~~~
/home/zak/.platformio/packages/framework-arduino-mbed/libraries/SocketWrapper/src/utility/http_parser/http_parser.c: In function 'http_parser_parse_url':
/home/zak/.platformio/packages/framework-arduino-mbed/libraries/SocketWrapper/src/utility/http_parser/http_parser.c:2376:18: warning: this statement may fall through [-Wimplicit-fallthrough=]
found_at = 1;
~~~~~~~~~^~~
/home/zak/.platformio/packages/framework-arduino-mbed/libraries/SocketWrapper/src/utility/http_parser/http_parser.c:2379:7: note: here
case s_req_server:
^~~~
In file included from /home/zak/Development/PlatformIO/ArduinoIoTCloud_Basic/src/ArduinoIoTCloud_Basic.ino:17:0:
src/arduino_secrets.h:22:0: warning: "SECRET_PASS" redefined
#define SECRET_PASS ""
src/arduino_secrets.h:9:0: note: this is the location of the previous definition
#define SECRET_PASS "!og0nNow"
.pio/libdeps/portenta_h7_m7/Arduino_DebugUtils/src/Arduino_DebugUtils.cpp: In member function 'void Arduino_DebugUtils::vPrint(const char*, va_list)':
.pio/libdeps/portenta_h7_m7/Arduino_DebugUtils/src/Arduino_DebugUtils.cpp:139:28: warning: variable length array 'msg_buf' is used [-Wvla]
char msg_buf[msg_buf_size];
^
Archiving .pio/build/portenta_h7_m7/libfe9/libArduino_DebugUtils.a
Indexing .pio/build/portenta_h7_m7/libfe9/libArduino_DebugUtils.a
Compiling .pio/build/portenta_h7_m7/libae6/MKRGSM/GPRS.cpp.o
Compiling .pio/build/portenta_h7_m7/libae6/MKRGSM/GSM.cpp.o
Compiling .pio/build/portenta_h7_m7/libae6/MKRGSM/GSMBand.cpp.o
Compiling .pio/build/portenta_h7_m7/libae6/MKRGSM/GSMClient.cpp.o
Archiving .pio/build/portenta_h7_m7/libba3/libSPI.a
Indexing .pio/build/portenta_h7_m7/libba3/libSPI.a
Compiling .pio/build/portenta_h7_m7/libae6/MKRGSM/GSMFileUtils.cpp.o
Compiling .pio/build/portenta_h7_m7/libae6/MKRGSM/GSMLocation.cpp.o
Compiling .pio/build/portenta_h7_m7/libae6/MKRGSM/GSMModem.cpp.o
.pio/libdeps/portenta_h7_m7/WiFiNINA/src/utility/spi_drv.cpp: In static member function 'static void SpiDrv::begin()':
Compiling .pio/build/portenta_h7_m7/libae6/MKRGSM/GSMPIN.cpp.o
.pio/libdeps/portenta_h7_m7/WiFiNINA/src/utility/spi_drv.cpp:103:15: error: 'NINA_GPIO0' was not declared in this scope
pinMode(NINA_GPIO0, OUTPUT);
^~~~~~~~~~
.pio/libdeps/portenta_h7_m7/WiFiNINA/src/utility/spi_drv.cpp:103:15: note: suggested alternative: 'NINA_GPIOIRQ'
pinMode(NINA_GPIO0, OUTPUT);
^~~~~~~~~~
NINA_GPIOIRQ
/home/zak/.platformio/packages/framework-arduino-mbed/libraries/SocketWrapper/src/MbedClient.cpp: In member function 'virtual size_t arduino::MbedClient::write(const uint8_t*, size_t)':
/home/zak/.platformio/packages/framework-arduino-mbed/libraries/SocketWrapper/src/MbedClient.cpp:214:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
} while ((ret != size && ret == NSAPI_ERROR_WOULD_BLOCK) && connected());
~~~~^~~~~~~
.pio/libdeps/portenta_h7_m7/WiFiNINA/src/utility/spi_drv.cpp: In static member function 'static int SpiDrv::available()':
.pio/libdeps/portenta_h7_m7/WiFiNINA/src/utility/spi_drv.cpp:66:25: error: 'NINA_GPIO0' was not declared in this scope
#define NINA_GPIOIRQ NINA_GPIO0
^
.pio/libdeps/portenta_h7_m7/WiFiNINA/src/utility/spi_drv.cpp:66:25: note: in definition of macro 'NINA_GPIOIRQ'
#define NINA_GPIOIRQ NINA_GPIO0
^~~~~~~~~~
.pio/libdeps/portenta_h7_m7/WiFiNINA/src/utility/spi_drv.cpp:66:25: note: suggested alternative: 'NINA_GPIOIRQ'
#define NINA_GPIOIRQ NINA_GPIO0
^
.pio/libdeps/portenta_h7_m7/WiFiNINA/src/utility/spi_drv.cpp:66:25: note: in definition of macro 'NINA_GPIOIRQ'
#define NINA_GPIOIRQ NINA_GPIO0
^~~~~~~~~~
In file included from .pio/libdeps/portenta_h7_m7/Arduino_ConnectionHandler/src/Arduino_ConnectionHandler.h:59:0,
from .pio/libdeps/portenta_h7_m7/ArduinoIoTCloud/src/ArduinoIoTCloud.h:27,
from src/arduino_secrets.h:1,
from /home/zak/Development/PlatformIO/ArduinoIoTCloud_Basic/src/ArduinoIoTCloud_Basic.ino:17:
.pio/libdeps/portenta_h7_m7/MKRGSM/src/GSM.h:25:29: error: redeclaration of 'ERROR'
enum GSM3_NetworkStatus_t { ERROR, IDLE, CONNECTING, GSM_READY, GPRS_READY, TRANSPARENT_CONNECTED, GSM_OFF};
^~~~~
In file included from /home/zak/.platformio/packages/framework-arduino-mbed/cores/arduino/mbed/targets/TARGET_STM/TARGET_STM32H7/cmsis.h:22:0,
from /home/zak/.platformio/packages/framework-arduino-mbed/cores/arduino/mbed/targets/TARGET_STM/PinNamesTypes.h:33,
from /home/zak/.platformio/packages/framework-arduino-mbed/variants/PORTENTA_H7_M7/pinmode_arduino.h:24,
from /home/zak/.platformio/packages/framework-arduino-mbed/cores/arduino/Arduino.h:26,
from /tmp/tmpvedgf3d5:1:
/home/zak/.platformio/packages/framework-arduino-mbed/cores/arduino/mbed/targets/TARGET_STM/TARGET_STM32H7/STM32Cube_FW/CMSIS/stm32h7xx.h:190:3: note: previous declaration 'ErrorStatus ERROR'
ERROR = !SUCCESS
^~~~~
In file included from .pio/libdeps/portenta_h7_m7/Arduino_ConnectionHandler/src/Arduino_ConnectionHandler.h:304:0,
from .pio/libdeps/portenta_h7_m7/ArduinoIoTCloud/src/ArduinoIoTCloud.h:27,
from src/arduino_secrets.h:1,
from /home/zak/Development/PlatformIO/ArduinoIoTCloud_Basic/src/ArduinoIoTCloud_Basic.ino:17:
.pio/libdeps/portenta_h7_m7/Arduino_ConnectionHandler/src/Arduino_CatM1ConnectionHandler.h:38:103: error: 'RadioAccessTechnologyType' has not been declared
CatM1ConnectionHandler(const char * pin, const char * apn, const char * login, const char * pass, RadioAccessTechnologyType rat = CATM1, uint32_t band = BAND_3 | BAND_20 | BAND_19, bool const keep_alive = true);
^~~~~~~~~~~~~~~~~~~~~~~~~
*** [.pio/build/portenta_h7_m7/libf7a/WiFiNINA/utility/spi_drv.cpp.o] Error 1
In file included from .pio/libdeps/portenta_h7_m7/Arduino_ConnectionHandler/src/Arduino_ConnectionHandler.h:304:0,
from .pio/libdeps/portenta_h7_m7/ArduinoIoTCloud/src/ArduinoIoTCloud.h:27,
from src/arduino_secrets.h:1,
from /home/zak/Development/PlatformIO/ArduinoIoTCloud_Basic/src/ArduinoIoTCloud_Basic.ino:17:
.pio/libdeps/portenta_h7_m7/Arduino_ConnectionHandler/src/Arduino_CatM1ConnectionHandler.h:62:5: error: 'RadioAccessTechnologyType' does not name a type
RadioAccessTechnologyType _rat;
^~~~~~~~~~~~~~~~~~~~~~~~~
.pio/libdeps/portenta_h7_m7/Arduino_ConnectionHandler/src/Arduino_CatM1ConnectionHandler.h:65:5: error: 'GSMUDP' does not name a type; did you mean 'GSM'?
GSMUDP _gsm_udp;
^~~~~~
GSM
.pio/libdeps/portenta_h7_m7/Arduino_ConnectionHandler/src/Arduino_CatM1ConnectionHandler.h:66:5: error: 'GSMClient' does not name a type; did you mean 'DNSClient'?
GSMClient _gsm_client;
^~~~~~~~~
DNSClient
.pio/libdeps/portenta_h7_m7/Arduino_ConnectionHandler/src/Arduino_CatM1ConnectionHandler.h:38:135: error: 'CATM1' was not declared in this scope
CatM1ConnectionHandler(const char * pin, const char * apn, const char * login, const char * pass, RadioAccessTechnologyType rat = CATM1, uint32_t band = BAND_3 | BAND_20 | BAND_19, bool const keep_alive = true);
^~~~~
.pio/libdeps/portenta_h7_m7/Arduino_ConnectionHandler/src/Arduino_CatM1ConnectionHandler.h:38:135: note: suggested alternative: 'CAN_1'
CatM1ConnectionHandler(const char * pin, const char * apn, const char * login, const char * pass, RadioAccessTechnologyType rat = CATM1, uint32_t band = BAND_3 | BAND_20 | BAND_19, bool const keep_alive = true);
^~~~~
CAN_1
.pio/libdeps/portenta_h7_m7/Arduino_ConnectionHandler/src/Arduino_CatM1ConnectionHandler.h:38:158: error: 'BAND_3' was not declared in this scope
CatM1ConnectionHandler(const char * pin, const char * apn, const char * login, const char * pass, RadioAccessTechnologyType rat = CATM1, uint32_t band = BAND_3 | BAND_20 | BAND_19, bool const keep_alive = true);
^~~~~~
.pio/libdeps/portenta_h7_m7/Arduino_ConnectionHandler/src/Arduino_CatM1ConnectionHandler.h:38:158: note: suggested alternative: 'CAN_2'
CatM1ConnectionHandler(const char * pin, const char * apn, const char * login, const char * pass, RadioAccessTechnologyType rat = CATM1, uint32_t band = BAND_3 | BAND_20 | BAND_19, bool const keep_alive = true);
^~~~~~
CAN_2
.pio/libdeps/portenta_h7_m7/Arduino_ConnectionHandler/src/Arduino_CatM1ConnectionHandler.h:38:167: error: 'BAND_20' was not declared in this scope
CatM1ConnectionHandler(const char * pin, const char * apn, const char * login, const char * pass, RadioAccessTechnologyType rat = CATM1, uint32_t band = BAND_3 | BAND_20 | BAND_19, bool const keep_alive = true);
^~~~~~~
.pio/libdeps/portenta_h7_m7/Arduino_ConnectionHandler/src/Arduino_CatM1ConnectionHandler.h:38:167: note: suggested alternative: 'CAN_2'
CatM1ConnectionHandler(const char * pin, const char * apn, const char * login, const char * pass, RadioAccessTechnologyType rat = CATM1, uint32_t band = BAND_3 | BAND_20 | BAND_19, bool const keep_alive = true);
^~~~~~~
CAN_2
.pio/libdeps/portenta_h7_m7/Arduino_ConnectionHandler/src/Arduino_CatM1ConnectionHandler.h:38:177: error: 'BAND_19' was not declared in this scope
CatM1ConnectionHandler(const char * pin, const char * apn, const char * login, const char * pass, RadioAccessTechnologyType rat = CATM1, uint32_t band = BAND_3 | BAND_20 | BAND_19, bool const keep_alive = true);
^~~~~~~
.pio/libdeps/portenta_h7_m7/Arduino_ConnectionHandler/src/Arduino_CatM1ConnectionHandler.h:38:177: note: suggested alternative: 'CAN_1'
CatM1ConnectionHandler(const char * pin, const char * apn, const char * login, const char * pass, RadioAccessTechnologyType rat = CATM1, uint32_t band = BAND_3 | BAND_20 | BAND_19, bool const keep_alive = true);
^~~~~~~
CAN_1
.pio/libdeps/portenta_h7_m7/Arduino_ConnectionHandler/src/Arduino_CatM1ConnectionHandler.h: In member function 'virtual arduino::Client& CatM1ConnectionHandler::getClient()':
.pio/libdeps/portenta_h7_m7/Arduino_ConnectionHandler/src/Arduino_CatM1ConnectionHandler.h:42:52: error: '_gsm_client' was not declared in this scope
virtual Client & getClient() override { return _gsm_client; };
^~~~~~~~~~~
.pio/libdeps/portenta_h7_m7/Arduino_ConnectionHandler/src/Arduino_CatM1ConnectionHandler.h:42:52: note: suggested alternative: 'getClient'
virtual Client & getClient() override { return _gsm_client; };
^~~~~~~~~~~
getClient
.pio/libdeps/portenta_h7_m7/Arduino_ConnectionHandler/src/Arduino_CatM1ConnectionHandler.h: In member function 'virtual arduino::UDP& CatM1ConnectionHandler::getUDP()':
.pio/libdeps/portenta_h7_m7/Arduino_ConnectionHandler/src/Arduino_CatM1ConnectionHandler.h:43:46: error: '_gsm_udp' was not declared in this scope
virtual UDP & getUDP() override { return _gsm_udp; };
^~~~~~~~
In file included from .pio/libdeps/portenta_h7_m7/ArduinoIoTCloud/src/cbor/../property/PropertyContainer.h:51:0,
from .pio/libdeps/portenta_h7_m7/ArduinoIoTCloud/src/cbor/CBORDecoder.h:31,
from .pio/libdeps/portenta_h7_m7/ArduinoIoTCloud/src/ArduinoIoTCloud.h:35,
from src/arduino_secrets.h:1,
from /home/zak/Development/PlatformIO/ArduinoIoTCloud_Basic/src/ArduinoIoTCloud_Basic.ino:17:
.pio/libdeps/portenta_h7_m7/ArduinoIoTCloud/src/cbor/../property/types/automation/CloudTelevision.h: In member function 'virtual void CloudTelevision::setAttributesFromCloud()':
.pio/libdeps/portenta_h7_m7/ArduinoIoTCloud/src/cbor/../property/types/automation/CloudTelevision.h:229:39: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
setAttribute((int&)_cloud_value.pbc, "pbc");
^~~
.pio/libdeps/portenta_h7_m7/ArduinoIoTCloud/src/cbor/../property/types/automation/CloudTelevision.h:230:39: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
setAttribute((int&)_cloud_value.inp, "inp");
^~~
/home/zak/.platformio/packages/framework-arduino-mbed/libraries/SocketWrapper/src/MbedUdp.cpp: In member function 'virtual int arduino::MbedUDP::endPacket()':
/home/zak/.platformio/packages/framework-arduino-mbed/libraries/SocketWrapper/src/MbedUdp.cpp:76:22: warning: variable length array 'buffer' is used [-Wvla]
uint8_t buffer[size];
^
/home/zak/.platformio/packages/framework-arduino-mbed/libraries/SocketWrapper/src/MbedUdp.cpp:77:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < size; i++) {
~~^~~~~~
/home/zak/.platformio/packages/framework-arduino-mbed/libraries/SocketWrapper/src/MbedUdp.cpp: In member function 'virtual size_t arduino::MbedUDP::write(const uint8_t*, size_t)':
/home/zak/.platformio/packages/framework-arduino-mbed/libraries/SocketWrapper/src/MbedUdp.cpp:97:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i<size; i++) {
~^~~~~
*** [.pio/build/portenta_h7_m7/src/ArduinoIoTCloud_Basic.ino.cpp.o] Error 1
In file included from .pio/libdeps/portenta_h7_m7/MKRGSM/src/GSM.cpp:23:0:
.pio/libdeps/portenta_h7_m7/MKRGSM/src/Modem.h:35:18: error: expected ')' before '&' token
ModemClass(Uart& uart, unsigned long baud, int resetPin, int dtrPin);
^
.pio/libdeps/portenta_h7_m7/MKRGSM/src/Modem.h:71:3: error: 'Uart' does not name a type; did you mean 'sqrt'?
Uart* _uart;
^~~~
sqrt
In file included from .pio/libdeps/portenta_h7_m7/MKRGSM/src/GSM.cpp:25:0:
.pio/libdeps/portenta_h7_m7/MKRGSM/src/GSM.h:25:29: error: redeclaration of 'ERROR'
enum GSM3_NetworkStatus_t { ERROR, IDLE, CONNECTING, GSM_READY, GPRS_READY, TRANSPARENT_CONNECTED, GSM_OFF};
^~~~~
In file included from /home/zak/.platformio/packages/framework-arduino-mbed/cores/arduino/mbed/targets/TARGET_STM/TARGET_STM32H7/cmsis.h:22:0,
from /home/zak/.platformio/packages/framework-arduino-mbed/cores/arduino/mbed/targets/TARGET_STM/PinNamesTypes.h:33,
from /home/zak/.platformio/packages/framework-arduino-mbed/variants/PORTENTA_H7_M7/pinmode_arduino.h:24,
from /home/zak/.platformio/packages/framework-arduino-mbed/cores/arduino/Arduino.h:26,
from .pio/libdeps/portenta_h7_m7/MKRGSM/src/Modem.h:26,
from .pio/libdeps/portenta_h7_m7/MKRGSM/src/GSM.cpp:23:
/home/zak/.platformio/packages/framework-arduino-mbed/cores/arduino/mbed/targets/TARGET_STM/TARGET_STM32H7/STM32Cube_FW/CMSIS/stm32h7xx.h:190:3: note: previous declaration 'ErrorStatus ERROR'
ERROR = !SUCCESS
^~~~~
.pio/libdeps/portenta_h7_m7/MKRGSM/src/GSM.cpp: In constructor 'GSM::GSM(bool)':
.pio/libdeps/portenta_h7_m7/MKRGSM/src/GSM.cpp:51:13: error: cannot convert 'ErrorStatus' to 'GSM3_NetworkStatus_t' in initialization
_timeout(0)
^
.pio/libdeps/portenta_h7_m7/MKRGSM/src/GSM.cpp: In member function 'GSM3_NetworkStatus_t GSM::begin(const char*, bool, bool)':
.pio/libdeps/portenta_h7_m7/MKRGSM/src/GSM.cpp:61:14: error: cannot convert 'ErrorStatus' to 'GSM3_NetworkStatus_t' in assignment
_state = ERROR;
^~~~~
.pio/libdeps/portenta_h7_m7/MKRGSM/src/GSM.cpp:72:20: error: cannot convert 'ErrorStatus' to 'GSM3_NetworkStatus_t' in assignment
_state = ERROR;
^~~~~
.pio/libdeps/portenta_h7_m7/MKRGSM/src/GSM.cpp: In member function 'int GSM::ready()':
.pio/libdeps/portenta_h7_m7/MKRGSM/src/GSM.cpp:122:17: warning: comparison between 'enum GSM3_NetworkStatus_t' and 'enum ErrorStatus' [-Wenum-compare]
if (_state == ERROR) {
^~~~~
.pio/libdeps/portenta_h7_m7/MKRGSM/src/GSM.cpp:154:20: error: cannot convert 'ErrorStatus' to 'GSM3_NetworkStatus_t' in assignment
_state = ERROR;
^~~~~
.pio/libdeps/portenta_h7_m7/MKRGSM/src/GSM.cpp:170:18: error: cannot convert 'ErrorStatus' to 'GSM3_NetworkStatus_t' in assignment
_state = ERROR;
^~~~~
.pio/libdeps/portenta_h7_m7/MKRGSM/src/GSM.cpp:178:18: error: cannot convert 'ErrorStatus' to 'GSM3_NetworkStatus_t' in assignment
_state = ERROR;
^~~~~
.pio/libdeps/portenta_h7_m7/MKRGSM/src/GSM.cpp:197:18: error: cannot convert 'ErrorStatus' to 'GSM3_NetworkStatus_t' in assignment
_state = ERROR;
^~~~~
.pio/libdeps/portenta_h7_m7/MKRGSM/src/GSM.cpp:216:18: error: cannot convert 'ErrorStatus' to 'GSM3_NetworkStatus_t' in assignment
_state = ERROR;
^~~~~
.pio/libdeps/portenta_h7_m7/MKRGSM/src/GSM.cpp:235:18: error: cannot convert 'ErrorStatus' to 'GSM3_NetworkStatus_t' in assignment
_state = ERROR;
^~~~~
.pio/libdeps/portenta_h7_m7/MKRGSM/src/GSM.cpp:254:18: error: cannot convert 'ErrorStatus' to 'GSM3_NetworkStatus_t' in assignment
_state = ERROR;
^~~~~
.pio/libdeps/portenta_h7_m7/MKRGSM/src/GSM.cpp:274:18: error: cannot convert 'ErrorStatus' to 'GSM3_NetworkStatus_t' in assignment
_state = ERROR;
^~~~~
.pio/libdeps/portenta_h7_m7/MKRGSM/src/GSM.cpp:291:20: error: cannot convert 'ErrorStatus' to 'GSM3_NetworkStatus_t' in assignment
_state = ERROR;
^~~~~
.pio/libdeps/portenta_h7_m7/MKRGSM/src/GSM.cpp:308:18: error: cannot convert 'ErrorStatus' to 'GSM3_NetworkStatus_t' in assignment
_state = ERROR;
^~~~~
*** [.pio/build/portenta_h7_m7/libae6/MKRGSM/GSM.cpp.o] Error 1
In file included from .pio/libdeps/portenta_h7_m7/MKRGSM/src/GSMFileUtils.cpp:1:0:
.pio/libdeps/portenta_h7_m7/MKRGSM/src/Modem.h:35:18: error: expected ')' before '&' token
ModemClass(Uart& uart, unsigned long baud, int resetPin, int dtrPin);
^
.pio/libdeps/portenta_h7_m7/MKRGSM/src/Modem.h:71:3: error: 'Uart' does not name a type; did you mean 'sqrt'?
Uart* _uart;
^~~~
sqrt
.pio/libdeps/portenta_h7_m7/MKRGSM/src/GSMFileUtils.cpp: In member function 'uint32_t GSMFileUtils::downloadFile(arduino::String, const char*, uint32_t, bool)':
.pio/libdeps/portenta_h7_m7/MKRGSM/src/GSMFileUtils.cpp:97:22: warning: variable length array 'hex' is used [-Wvla]
char hex[size * 2] { 0 };
^
.pio/libdeps/portenta_h7_m7/MKRGSM/src/GSMFileUtils.cpp:99:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (auto i = 0; i < size; i++) {
~~^~~~~~
.pio/libdeps/portenta_h7_m7/MKRGSM/src/GSMFileUtils.cpp: In member function 'uint32_t GSMFileUtils::readFile(arduino::String, arduino::String*)':
.pio/libdeps/portenta_h7_m7/MKRGSM/src/GSMFileUtils.cpp:152:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (auto i = 0; i < size; i++) {
~~^~~~~~
.pio/libdeps/portenta_h7_m7/MKRGSM/src/GSMFileUtils.cpp: In member function 'uint32_t GSMFileUtils::readFile(arduino::String, uint8_t*)':
.pio/libdeps/portenta_h7_m7/MKRGSM/src/GSMFileUtils.cpp:199:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (auto i = 0; i < size; i++) {
~~^~~~~~
.pio/libdeps/portenta_h7_m7/MKRGSM/src/GSMFileUtils.cpp: In member function 'uint32_t GSMFileUtils::readBlock(arduino::String, uint32_t, uint32_t, uint8_t*)':
.pio/libdeps/portenta_h7_m7/MKRGSM/src/GSMFileUtils.cpp:246:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (auto i = 0; i < size; i++) {
~~^~~~~~
.pio/libdeps/portenta_h7_m7/MKRGSM/src/GSMFileUtils.cpp: In member function 'int GSMFileUtils::deleteFiles()':
.pio/libdeps/portenta_h7_m7/MKRGSM/src/GSMFileUtils.cpp:290:24: warning: variable length array 'files' is used [-Wvla]
String files[_count];
^
.pio/libdeps/portenta_h7_m7/MKRGSM/src/GSMFileUtils.cpp: In function 'void printFiles(GSMFileUtils)':
.pio/libdeps/portenta_h7_m7/MKRGSM/src/GSMFileUtils.cpp:336:23: warning: variable length array 'files' is used [-Wvla]
String files[count];
^
*** [.pio/build/portenta_h7_m7/libae6/MKRGSM/GSMFileUtils.cpp.o] Error 1
In file included from .pio/libdeps/portenta_h7_m7/MKRGSM/src/GSMLocation.h:25:0,
from .pio/libdeps/portenta_h7_m7/MKRGSM/src/GSMLocation.cpp:20:
.pio/libdeps/portenta_h7_m7/MKRGSM/src/Modem.h:35:18: error: expected ')' before '&' token
ModemClass(Uart& uart, unsigned long baud, int resetPin, int dtrPin);
^
.pio/libdeps/portenta_h7_m7/MKRGSM/src/Modem.h:71:3: error: 'Uart' does not name a type; did you mean 'sqrt'?
Uart* _uart;
^~~~
sqrt
*** [.pio/build/portenta_h7_m7/libae6/MKRGSM/GSMLocation.cpp.o] Error 1
In file included from .pio/libdeps/portenta_h7_m7/MKRGSM/src/GSMBand.cpp:20:0:
.pio/libdeps/portenta_h7_m7/MKRGSM/src/Modem.h:35:18: error: expected ')' before '&' token
ModemClass(Uart& uart, unsigned long baud, int resetPin, int dtrPin);
^
.pio/libdeps/portenta_h7_m7/MKRGSM/src/Modem.h:71:3: error: 'Uart' does not name a type; did you mean 'sqrt'?
Uart* _uart;
^~~~
sqrt
In file included from .pio/libdeps/portenta_h7_m7/MKRGSM/src/GSMBand.h:23:0,
from .pio/libdeps/portenta_h7_m7/MKRGSM/src/GSMBand.cpp:22:
.pio/libdeps/portenta_h7_m7/MKRGSM/src/GSM.h:25:29: error: redeclaration of 'ERROR'
enum GSM3_NetworkStatus_t { ERROR, IDLE, CONNECTING, GSM_READY, GPRS_READY, TRANSPARENT_CONNECTED, GSM_OFF};
^~~~~
In file included from /home/zak/.platformio/packages/framework-arduino-mbed/cores/arduino/mbed/targets/TARGET_STM/TARGET_STM32H7/cmsis.h:22:0,
from /home/zak/.platformio/packages/framework-arduino-mbed/cores/arduino/mbed/targets/TARGET_STM/PinNamesTypes.h:33,
from /home/zak/.platformio/packages/framework-arduino-mbed/variants/PORTENTA_H7_M7/pinmode_arduino.h:24,
from /home/zak/.platformio/packages/framework-arduino-mbed/cores/arduino/Arduino.h:26,
from .pio/libdeps/portenta_h7_m7/MKRGSM/src/Modem.h:26,
from .pio/libdeps/portenta_h7_m7/MKRGSM/src/GSMBand.cpp:20:
/home/zak/.platformio/packages/framework-arduino-mbed/cores/arduino/mbed/targets/TARGET_STM/TARGET_STM32H7/STM32Cube_FW/CMSIS/stm32h7xx.h:190:3: note: previous declaration 'ErrorStatus ERROR'
ERROR = !SUCCESS
^~~~~
In file included from .pio/libdeps/portenta_h7_m7/MKRGSM/src/GSMClient.cpp:20:0:
.pio/libdeps/portenta_h7_m7/MKRGSM/src/Modem.h:35:18: error: expected ')' before '&' token
ModemClass(Uart& uart, unsigned long baud, int resetPin, int dtrPin);
^
.pio/libdeps/portenta_h7_m7/MKRGSM/src/Modem.h:71:3: error: 'Uart' does not name a type; did you mean 'sqrt'?
Uart* _uart;
^~~~
sqrt
In file included from .pio/libdeps/portenta_h7_m7/MKRGSM/src/GPRS.h:24:0,
from .pio/libdeps/portenta_h7_m7/MKRGSM/src/GPRS.cpp:20:
.pio/libdeps/portenta_h7_m7/MKRGSM/src/GSM.h:25:29: error: redeclaration of 'ERROR'
enum GSM3_NetworkStatus_t { ERROR, IDLE, CONNECTING, GSM_READY, GPRS_READY, TRANSPARENT_CONNECTED, GSM_OFF};
^~~~~
In file included from /home/zak/.platformio/packages/framework-arduino-mbed/cores/arduino/mbed/targets/TARGET_STM/TARGET_STM32H7/cmsis.h:22:0,
from /home/zak/.platformio/packages/framework-arduino-mbed/cores/arduino/mbed/targets/TARGET_STM/PinNamesTypes.h:33,
from /home/zak/.platformio/packages/framework-arduino-mbed/variants/PORTENTA_H7_M7/pinmode_arduino.h:24,
from /home/zak/.platformio/packages/framework-arduino-mbed/cores/arduino/Arduino.h:26,
from .pio/libdeps/portenta_h7_m7/MKRGSM/src/GSM.h:23,
from .pio/libdeps/portenta_h7_m7/MKRGSM/src/GPRS.h:24,
from .pio/libdeps/portenta_h7_m7/MKRGSM/src/GPRS.cpp:20:
/home/zak/.platformio/packages/framework-arduino-mbed/cores/arduino/mbed/targets/TARGET_STM/TARGET_STM32H7/STM32Cube_FW/CMSIS/stm32h7xx.h:190:3: note: previous declaration 'ErrorStatus ERROR'
ERROR = !SUCCESS
^~~~~
In file included from .pio/libdeps/portenta_h7_m7/MKRGSM/src/GPRS.h:26:0,
from .pio/libdeps/portenta_h7_m7/MKRGSM/src/GPRS.cpp:20:
.pio/libdeps/portenta_h7_m7/MKRGSM/src/Modem.h:35:18: error: expected ')' before '&' token
ModemClass(Uart& uart, unsigned long baud, int resetPin, int dtrPin);
^
.pio/libdeps/portenta_h7_m7/MKRGSM/src/Modem.h:71:3: error: 'Uart' does not name a type; did you mean 'sqrt'?
Uart* _uart;
^~~~
sqrt
.pio/libdeps/portenta_h7_m7/MKRGSM/src/GPRS.cpp: In member function 'int GPRS::ready()':
.pio/libdeps/portenta_h7_m7/MKRGSM/src/GPRS.cpp:128:19: error: cannot convert 'ErrorStatus' to 'GSM3_NetworkStatus_t' in assignment
_status = ERROR;
^~~~~
.pio/libdeps/portenta_h7_m7/MKRGSM/src/GPRS.cpp:145:19: error: cannot convert 'ErrorStatus' to 'GSM3_NetworkStatus_t' in assignment
_status = ERROR;
^~~~~
.pio/libdeps/portenta_h7_m7/MKRGSM/src/GPRS.cpp:163:19: error: cannot convert 'ErrorStatus' to 'GSM3_NetworkStatus_t' in assignment
_status = ERROR;
^~~~~
.pio/libdeps/portenta_h7_m7/MKRGSM/src/GPRS.cpp:181:19: error: cannot convert 'ErrorStatus' to 'GSM3_NetworkStatus_t' in assignment
_status = ERROR;
^~~~~
.pio/libdeps/portenta_h7_m7/MKRGSM/src/GPRS.cpp:199:19: error: cannot convert 'ErrorStatus' to 'GSM3_NetworkStatus_t' in assignment
_status = ERROR;
^~~~~
.pio/libdeps/portenta_h7_m7/MKRGSM/src/GPRS.cpp:235:19: error: cannot convert 'ErrorStatus' to 'GSM3_NetworkStatus_t' in assignment
_status = ERROR;
^~~~~
.pio/libdeps/portenta_h7_m7/MKRGSM/src/GPRS.cpp:254:19: error: cannot convert 'ErrorStatus' to 'GSM3_NetworkStatus_t' in assignment
_status = ERROR;
^~~~~
.pio/libdeps/portenta_h7_m7/MKRGSM/src/GPRS.cpp:272:19: error: cannot convert 'ErrorStatus' to 'GSM3_NetworkStatus_t' in assignment
_status = ERROR;
^~~~~
.pio/libdeps/portenta_h7_m7/MKRGSM/src/GPRS.cpp:290:19: error: cannot convert 'ErrorStatus' to 'GSM3_NetworkStatus_t' in assignment
_status = ERROR;
^~~~~
In file included from .pio/libdeps/portenta_h7_m7/MKRGSM/src/GSMModem.cpp:20:0:
.pio/libdeps/portenta_h7_m7/MKRGSM/src/Modem.h:35:18: error: expected ')' before '&' token
ModemClass(Uart& uart, unsigned long baud, int resetPin, int dtrPin);
^
*** [.pio/build/portenta_h7_m7/libae6/MKRGSM/GSMBand.cpp.o] Error 1
.pio/libdeps/portenta_h7_m7/MKRGSM/src/Modem.h:71:3: error: 'Uart' does not name a type; did you mean 'sqrt'?
Uart* _uart;
^~~~
sqrt
*** [.pio/build/portenta_h7_m7/libae6/MKRGSM/GSMClient.cpp.o] Error 1
*** [.pio/build/portenta_h7_m7/libae6/MKRGSM/GSMModem.cpp.o] Error 1
*** [.pio/build/portenta_h7_m7/libae6/MKRGSM/GPRS.cpp.o] Error 1
In file included from .pio/libdeps/portenta_h7_m7/MKRGSM/src/GSMPIN.cpp:20:0:
.pio/libdeps/portenta_h7_m7/MKRGSM/src/Modem.h:35:18: error: expected ')' before '&' token
ModemClass(Uart& uart, unsigned long baud, int resetPin, int dtrPin);
^
.pio/libdeps/portenta_h7_m7/MKRGSM/src/Modem.h:71:3: error: 'Uart' does not name a type; did you mean 'sqrt'?
Uart* _uart;
^~~~
sqrt
*** [.pio/build/portenta_h7_m7/libae6/MKRGSM/GSMPIN.cpp.o] Error 1
================================== [FAILED] Took 5.62 seconds ==================================
* The terminal process "platformio 'run'" terminated with exit code: 1.
* Terminal will be reused by tasks, press any key to close it.