AlHasan Sameh
Hello everyone,

I've recently started trying out OpenPLC and I like the idea, I wrote a code that uses the serial monitor and tested it out, I eventually want it to work on an ESP32-S3 board, but I tested with an Arduino mega first, it worked just fine, but later I'll add MQTT functionality so I'll be using ESP32, so when I tested out on both an ESP32 DoITDevkit v2.0 and an ESP32-S3 they both didn't work, they just kept rebooting, with the shown debug output.

Attached is my code and arduino extension, it runs the Serial on 9600 baud rate mind you, so when the ESP32 is rebooting, it shows the attached debug output on a 9600 Putty terminal, then I thought I can try one of the examples, so I uploaded the Blink example from OpenPLC, it kept rebooting as well, but this time the debug output was working at 115200 baud rate, so my sketch changes the baud rate DESPITE everything fails anyway, please inform me on this.
ESP32 Serial Monitor Output.png OpenPLC Upload.png
Reply 0 0
thiagoralves
It is hard to support all possible variants of ESP32 as there are too many out there. OpenPLC tries to adjust to the most popular ones, but that unfortunately is not your case. Most likely the problem is that OpenPLC is trying to use pins that are reserved for handling an external flash or something else in your board. My suggestion is that you remove all pins on the IO Config screen (on the upload dialog) and check if your device is still rebooting. Without pins you obviously won't be able to control anything, but that's a start. Then start adding pins that you know that can be used on your board. This should be enough to have the code running.
Reply 0 0
Write a reply...
Reply