matthewsrea
I'm running into a frustrating problem that the Transfer fails every time with serial port problems that seem to relates to esptool V5.0. It reports a serial config error saying it "cannot configure the port". I've tried this now on 3 different machines and used a variety of USB cables... same problem each time. Any clues would be greatly appreciated.  Screenshot 2025-10-02 102034.jpg
 
The troubleshooting advice doesn't seem hugely helpful
Reply 0 0
matthewsrea
I'm running into a frustrating problem that the Transfer fails every time with serial port problems that seem to relates to esptool V5.0. It reports a serial config error saying it "cannot configure the port". I've tried this now on 3 different machines and used a variety of USB cables... same problem each time. Any clues would be greatly appreciated.  Screenshot 2025-10-02 102034.jpg
 
The troubleshooting advice doesn't seem hugely helpful
I should add... the board will accept program load from Arduino IDE without nay issues - so I don't think this can be the CH341 driver issue that is commonly reported
Reply 0 0
matthewsrea
I should add... the board will accept program load from Arduino IDE without nay issues - so I don't think this can be the CH341 driver issue that is commonly reported
Ok... I think I need to back-pedal... I may have just solved it
Reply 0 0
thiagoralves
Hi @matthewsrea do you mind sharing the solution with everyone? I've seem some other users facing issues with ESP32 boards and I'm wondering if your fix could apply to others as well
Reply 0 0
matthewsrea
Hi @matthewsrea do you mind sharing the solution with everyone? I've seem some other users facing issues with ESP32 boards and I'm wondering if your fix could apply to others as well
Will do... I will go back and recreate.
Reply 0 0
matthewsrea
Whilst it is fresh in my memory... the issue in the end was just a com port issue. I tested on 2 Windows 10 PCs and 1 Windows 11 PC and it kept failing. In the end I went into device manager and fiddled around with the com port and it worked. I don't have my ESP32 hooked up at moment (working on another project on an UNO R4) - but will dig it all out. With some luck I will be able to recreate the problem and the solution.
Reply 0 0
matthewsrea
Apologies that it has taken some time to get you a more complete answer on this - I'm afraid I damaged my ESP32 board (careless soldering on my behalf!!). Anyway, a new board arrived today and it exhibited exactly the same problem with transferring programs from OpenPLC - so this time I was a bit more careful in my analysis of the fix. In terms of how the problem was reported... exactly the same as before - "serial exception error" etc - so something wrong with the port! This time I just stuck to one PC (my Windows 10 machine) and avoided any reboots in order to rule out unexplainable sudden fixes. What I observed is this. - The ESP32 does cause windows to go through some sort of "new USB device recognised" process - which I don't really remember seeing with other older Arduino boards. After all the recognition is done, Windows (in a pop in the tool tray) reports that the new device is connected to COM8. If I go into the native Arduino IDE then this also thinks the board is on COM8. However OpenPLC will not transfer programs to it. In the end the fix was to click the "refresh" button in the Transfer screen (see attached image) - and in front of my eyes (no drink consumed - honest!) it then found the device was on COM7. I can't explain this - but once I select COM7 it works! Whilst I couldn't remember the exact detail of how I fixed it last time - you can check my initial post (above) and you can see it was the same thing - for some reason the COM port was wrong - as in the COM port reported by Windows when the device connected changes when you hit refresh in OpenPLC. I know this seems irrational... but I've witnessed it twice now. I hope that helps.
Reply 1 0
Reply