Rebooting OPTA issue

Initially, before PLC IDE had the Opta compatible I played around using IOT-cloud, I had set-up a dashboard, some variables and controlled things over WIFI. Everything worked pretty smooth.

When the PLC IDE got updated and became compatible I started programming it over PLC IDE discovering it's functions.

Now I got back to IOT-cloud and loaded my previous sketch from there without making any changes to it. When uploaded (using full editor via COM-port), uploading is succesfull.

After loading, the Opta does not connect to WIFI and after every minute or so it reboots. I can tell that it reboots because I made the LED's blink during startup and also the COM-port connection disconnects and re-connects.

Is the PLC-IDE bootloader maybe causing a problem/still active in the background?
Is all the memory erased after an Sketch upload via IOT-cloud or normal IDE?
Does anyone know how to perform a factory reset on the OPTA?

(ps: when I configure the same sketch, via IOT-cloud, but over wired ethernet, everything works fine)

Hello!
Check this out https://docs.arduino.cc/tutorials/opta/memory-partitioning

It will format the QSPI flash with the correct partitions

1 Like

Hello PMarquinez,

Thank you for your reply, after following the mentioned tutorial the problem is solved. I can now upload the sketch again with IOTcloud with and use wifi functionality again so that's great.

Do I need to perform this everytime I switch between using IOT-cloud/IDE and PLC IDE and vice versa? At the moment I am struggling a bit with combining IOT functions with PLC IDE. I would like to intgrate the generated sketch by IOT-cloud in PLC IDE by placing the sketch as a resource but I can't find much about adding the needed libraries.

Hello @siempie86
Good!

It is only needed when you switch from the PLC IDE to the Arduino IDE.

At the moment IoT Cloud and PLC IDE are not compatible, unfortunately.

Hi @PMarquinez - this is helpful.

To clarify, if the PLC IDE has never been used and won't be used in the future — only will be using the desktop IDE — would performing the memory partitioning every be necessary, i.e. is it still meaningful/required as a one-time setup step when only using desktop IDE?

The memory partition sketch is only mandatory to run it once before switching from the Arduino PLC IDE to the Arduino IDE.

https://docs.arduino.cc/tutorials/opta/plc-ide-cloud-support

Nice!