minion71
Running Open PLC editor V4 code work
 
but I cant connect debug
 
"MD5 verification failed: Failed to get MD5 hash after retries"
 
I am using a ESP32-C3 via USB Modbus RTU activated "serial" slave ID 1 baud rate 115200
 
version 3.3.6 from Arduino
 
Thanks for any help
 
the ESP32-c3 need to activate CDC on boot for serial monitor to work, I wonder if it's not activating it when compiling or if there is a way to use compiler flag

using -DARDUINO_USB_CDC_ON_BOOT=1 should make the serial connection via the internal serial My best guess is its trying to use a serial chip
Reply 0 0
thiagoralves
Make sure you're using the last version of the editor
Reply 0 0
minion71
Make sure you're using the last version of the editor
I am using 4.1.2. via Arduino IDE I can activate the flag for cdc on boot and serial monitor via Jtag USB of the module work, but it seems to deactivate when uploading via Openplc editor v4. I tryed adding the flag manually in the build file but it get erased after I rebuild via PLC
Reply 0 0
thiagoralves
I thought this was fixed on https://github.com/Autonomy-Logic/openplc-editor/pull/569 . Can you check if Modbus RTU works on the board over USB? You can see the full discussion about this here: https://openplc.discussion.community/post/md5-verification-failed-on-debug-editor-4-1-0-13764309
Reply 0 0
minion71
I had to modify the flag in the hals.json for it to work in the esp32-c3 I added CDCOnBoot=cdc to the platform line like so  "platform": "esp32:esp32:esp32c3:CDCOnBoot=cdc",
 
 
debug work now its convoluted but it does the trick we need a way to change it for modules that support it !!!
Reply 0 0
thiagoralves
That's the EXACT fix that was added on PR 569:
Screenshot 2026-02-10 at 4.36.10 PM.png
 
However it seems that it was only added for ESP32S2 and ESP32S3, but you need it for ESP32C3 as well, right? Dang, why so many ESP32 variants? Would you mind opening a PR with your fix so it can get added to the next editor release please?
Reply 0 0
minion71
Sure I will try its my first time 😋
Reply 1 0
minion71
I thing I made it its PR #599
Reply 0 0
Reply