arumade1990
Hey all, I hadn't used OpenPLC for a while, and when I went to go back to it I updated the app, then began to download a version of blink that tests multiple outputs in parallel. I'd used it pleny of times before and is my go to test program since it does more than one output. However, when I transferred this program the ESP32 didn't go high on any outputs. I've tried this multiple times with the different versions of the ESP32 board available on the transfer dialog box to no avail.
 
I noticed that the outputs listed in the I/O section didn't quite match what I'd had before, so I changed it to match previous succesful transfers, but was only able to get it to work on QX0.0.
 
Is the ESP32 no longer supported? I really hope it isn't because I made an entire PCB for a standard ESP32 utilizing every I/O to be compatible with 24V systems and that board will be completely useless if this is the case.
 
Also worth noting that my Pico seems to work just fine. And I don't get any errors on either the ESP32 or the Pico.
Reply 0 0
thiagoralves
Yes, ESP32 is still supported, however after espressif updated their Arduino core to version 3, things started to break on OpenPLC. So far my board works just fine, so I’m not sure what other users are experiencing. If you can help debug your platform it will be helpful
Reply 0 0
MrD
I am unable to run a simple LED program on the ESP32 WROVER dev board as well. The output pin used was 2 with an address of %QX0.0. Has this concern be communicated with Espressif? What is the work around solution to resolve this concern?
Reply 0 0
thiagoralves
I have a custom board based on the ESP32-WROOM-32D module and can confirm that the GPIOs work just fine on the latest version of the OpenPLC Editor, using Espressif ESP32 Arduino core version 3.0.4. Since there is a huge variety of ESP32 boards, this might not be the case for everyone.
 
If you're experiencing problems, try debugging what is wrong for your platform by following these simple steps:
  1. Open the Blink example and locate blink_led at %QX0.0
  2. Remove all pins from the I/O Config screen on the upload dialog
  3. Enable Modbus RTU under Communications
  4. Upload the code. Check if there aren't any compilation or upload errors
  5. Verify if the code is running with the debugger (click on the blue bug icon on the toolbar).
  6. On the debugger configuration, select Serial - RTU and choose the Port where your ESP32 is connected to
  7. Click on the glasses icon at the left panel to start the debugging instance. Verify that the code is indeed running as blink_led oscillates between green and black
  8. Repeat the process by adding one pin on the I/O Config screen for the blink_led (%QX0.0) to be attached to.
  9. Keep adding more pins until you find a pin that crashes the system.
  10. Post your results
Reply 0 0
arumade1990
I'm using the ER32WROOM boards for my stuff, but I think I may have a lead on what's going on. So after testing every digital input and confirming that it works, I tested every output again and paid closer attention to which pins didn't work. So far the only outputs that don't work are the TX and RX pins which are 28 and 27, and GPIO 1 and 3 respectively.  
 
I later looked up that the TX and RX pins remain high when they are not sending data which is also why I was experiencing a persistent ON condition when testing them, no matter what the logic condition was.
 
I'm wondering if maybe I can run a sketch in parallel with the logic that simply disables the serial communication and let the pins behave like before. If thats the case then this is a simple fix, but for now I'm just leaving it as is.
 
I can upload my project later if you wish, but its extremely basic, and probably nothing to be gained since I never got any errors whatsoever.
 
Tomorrow I'll probably try and research if I can disable the serial communication like I mentioned. If someone else knows how to do that I'd appreciate a tip since my C++ is pretty bad lol.
Reply 0 0
thiagoralves
If you keep Modbus RTU disabled then serial should be disabled as well. At least, there should be nothing in the OpenPLC code that initializes serial besides Modbus RTU
Reply 0 0
Reply