hulkco
I just bought a Relay board for the ESP32 and when I try to compile I get this error, I add a .txt file with the log.
 
Captura de pantalla 2024-05-28 201452.png
Reply 1 0
thiagoralves
It seems that your ESP32 core is messed up. You can try updating the core on your Arduino IDE, or deleting your Arduino15 folder (C:\Users\[your user\AppData\Local\Arduino15) and then updating your OpenPLC Editor. This will force a core reinstall and it will probably work then.
Reply 0 0
thiagoralves
Espressif has just updated their ESP32 core to version 3.0.0. That was a major update. I forced update on my end to the latest core and indeed the compilation is broken. I don't know if the problem is on the Espressif, Arduino, or OpenPLC side, but currently the ESP32 core is broken on OpenPLC.
Reply 1 0
ArnauTena
Yeah i'm having the same issue
Reply 0 0
hulkco
I think the comment about updating espressift to version 3.0.0 is correct, I have another computer where I have an older version of openPLC installed and it works fine with the previous version 2.0.17
Captura de pantalla 2024-05-29 075428.png   Captura de pantalla 2024-05-29 075407.png 
 
Captura de pantalla 2024-05-29 075658.png
Reply 0 0
thiagoralves
Apparently the new core requires soe additional compiler flags to work. @rhysperry111 already worked on that. See  https://github.com/thiagoralves/OpenPLC_Editor/pull/106#issuecomment-2137142685
Reply 1 0
thiagoralves
Fixed thanks to @rhysperry111 PR. 🙂
Update your editor and try again.
Reply 0 0
hulkco
Fixed thanks to @rhysperry111 PR. 🙂
Update your editor and try again.
Bug fixed!!Captura de pantalla 2024-05-29 194110.png    mqdefault.jpg
Reply 0 0
pilarlopez
Hi! I had the same problem and when I updated the OpenPLC that bug was fixed but now I have this error, do you have the same?[203128%2F8813499%2Fmceclip0]
Reply 0 0
thiagoralves
Reply 0 0
ivan_terzo
Hi everyone, despite having updated the editor, I still get the compilation failed message.
As already mentioned, it seems to be a problem with esp32 only (with the other cards the compilation is always successful).
What can be done? Also because, as shown in the image, I had already started a PLC project based on ESP32 (3D printed chassis, PCB, etc.).
Thanks for your help!
PS - I am also preparing slides, diagrams etc., for those interested I make the material completely available because it is released under the open license
 
openplcesp32_2.jpg

openplcesp32_1.jpg
Reply 2 0
ivan_terzo
Good morning everyone, I don't know what exactly happened, but now it compiles correctly. I also notice that the esp32 field is now called esp32 [3.0.0].
I also attach a part of the course I am writing (for now in Italian) dedicated, like the parts that will follow, to openplc.
Thanks again to everyone and, especially, to "thiagoralves"
 
OpenPLC Editor.jpg
Reply 1 0
thiagoralves
The changes that were made on the most recent OpenPLC Editor update fixes issues with the ESP32 core 3.0.0. Most likely you were running on an older core version and that's why it was failing to compile, as the changes might not be compatible with cores earlier than 3.0.0. The automatic update might have ran at some point bringing your core to 3.0.0 which now works fine.
Reply 1 0
beamer
your project looks very interesting. I am also a teacher in a technical secondary school and am currently working on a prototype with Pico W and 24V inputs and outputs as didactic material for the students.
 
Reply 2 0
Reply