Hi to the community,
I have been trying hard but I'm lost. I hope I'll find an answer and it will help other with OTA troubles.
I have a project using OPTA RS485 with Ethernet Connection; I can share the code but it's 1000+ lines and in the end my problem is the same with this sample code.
#include "thingProperties.h"
void setup() {
// Initialize serial and wait for port to open:
Serial.begin(9600);
// This delay gives the chance to wait for a Serial Monitor without blocking if none is found
delay(1500);
// Defined in thingProperties.h
initProperties();
// Connect to Arduino IoT Cloud
ArduinoCloud.begin(ArduinoIoTPreferredConnection);
setDebugMessageLevel(4);
ArduinoCloud.printDebugInfo();
}
void loop() {
ArduinoCloud.update();
// Your code here
}
I can add new things, add devices, upload through USB with cloud IDE and variables are synchronized. Everything works in other word.
Compiled and upload goes without trouble. The devices appears as connected rather quickly.
When it comes to OTA it is a complete different story...!
-
The compilation just stop but without any information regarding why
-
Luckily yesterday, it ended working after several times using the following process:
--> Uploading bootloader manager (v25) / QSPIFormat option 1 / Wififirmware from the mbed_opta library avaiblable on the Cloud, loading the sketch, unpluging USB, reset avec unplug.
It somehow kind of worked, with some trouble after flashing step in OTA procedure (needed a manual reset). It seemed yesterday evening that I managed this bug by introducing a proper DHCP connection step, having serveral OTA doing fine.
- This morning same error again with OTA. Try everything again but without success.
I only had a lost connection this night (probably due to loss of 4G connectivity from the router)
There is one strange line, but I connot do anything about it as it is from the library used by the cloud on which I have no influence (and it still worked yesterday with this error, and same with USB upload) : "/home/builder/.arduino15/packages/arduino/hardware/mbed_opta/4.1.3/bootloaders/OPTA/bootloader.elf syntax error: no colon char on the first line character at line 1"
Does anyone have a clue of what could be the reason of that behaviour ?
it is a crucial feature for everyone going to ArduinoIoTCloud, please give me an hint to get this work.





