MrD
After receiving the response that the compilation error had been fixed, I ran an update for OpenPLC. The update was installed successfully. I proceeded to check that the compilation error was corrected with the update. I built a simple Test LD consisting of a pushbutton switch (PB1) and an LED. The program was successfully transferred to the ESP32 Test circuit without a Compilation Error message.
 
Pressing PB1 did not turn on the LED. I measured at GPIO17 3.314V when PB1 was pressed. The LED circuit was tested by applying the onboard 3.3V to the series 330 ohm resistor. The LED turned on with the applied 3.3V source. I ran the Debug Remote to verify the Test LD program was running on the ESP32 WROVER dev kit board. Unfortunately, an error message was flagged, thereby stopping the debug process. I have attached pictures of the breadboard circuit, the Test LD with the Tag Listing, and Debug Remote messages to assist in the resolution phase of this concern.
 
Breadboard.pngDebug_Remote_Error.pngDebug_Remote_Settings.pngTest_LD.png
Reply 0 0
Write a reply...
thiagoralves
Thank you for the detailed report! What does your IO Config screen look like? How are your pins defined? If you connect the ESP32 to a serial terminal while running the program does it output anything?
Reply 0 0
MrD
Thank you for the detailed report! What does your IO Config screen look like? How are your pins defined? If you connect the ESP32 to a serial terminal while running the program does it output anything?
I have attached a log file of the ESP32 running the Test LD along with a screenshot of the I/O Configuration screen.
 
ESP32_IO_Configuration.pngESP32_IO_Configuration.png
Reply 0 0
thiagoralves
It seems that your ESP32 is crashing. I’m seeing a lot of those lately, and I’m not sure what’s causing it as my own ESP32 board works fine. Another user said that some of the pins defined in the IO config are used for external storage (flash). Since there is such a huge variety of ESP32 boards out there, it is hard to know which pins your board is using and which ones it isn’t. Try removing all pins from the IO Config list except for the ones you’re explicitly using in your program. Then check with the serial terminal to see if the crash is still happening
Reply 0 0
MrD
Unfortunately, removing all the pins except for the LED (GPIO2) did not work. The log file shows the ESP32 crashing (resetting). I tried another ESP32 (A Freenove WROVER kit version), with no success. as well.
Reply 0 0
thiagoralves
Can you let me know exactly which ESP32 board you have? If you have an Amazon link that's even better. I'm trying to purchase some ESP32 boards that are not working to see if I can debug why this is failing.
Reply 0 0
MrD
Here are the ESP32 boards I have. These boards were purchased from Amazon.
 
Freenove ESP32 WROVER
 
HiLetgo ES32 WROOM 32D
Reply 0 0
aidarraga
I have exactly the same problem.
Reply 0 0
Jérôme A.
I have the same problem with different esp32 models. I think that is not working since 2 previous version of openplc. I use blakpill, Arduino cards, raspberry. My esp32 cards were running the end of the last year, but it s not the case now. Uploading/transfering appears working but nothing is running concerning gpio.
Reply 0 0
thiagoralves
Hey guys,
 
I've made some changes to the ESP32 hal driver, mostly disabling PWM and ledc calls as I believe that could be the reason why your boards are crashing. Do you mind updating your editor and trying to upload your code again on your boards please? If it still crashes, please send me the serial monitor output of it crashing please.
Reply 0 0
thiagoralves
 
It seems that he is facing a similar issue, but after enabling Modbus RTU he claimed that the board started working again.
Reply 0 0
MrD
The OpenPLC software will not open after I made the update. I did a reset to my Windows 11 notebook, but no success. Please advise.
Reply 0 0
thiagoralves
Reply 0 0
thiagoralves
Sorry for the trouble, but that was a necessary transition. After installing the new version, please update it again to get today's patch
Reply 0 0
MrD
Well, the fix did not work. I unstalled the previous version of OpenPLC. Install a new software package and did the update. I ran the Blink LD using GPIO2 location %QX0.0. The LD was transfer to the ESP32 and no blinking LD. I ran TeraTerm serial monitor software and the ESP32 continues to crash. I have attached the log file for your review and analysis.
Reply 0 0
Write a reply...
Reply