Hello everyone, I have a strange error that I can’t get any further with.
For context:
I am using an esp-wroom32-ue on a custom board, with the espressif platform 6.12.0 and arduinoespressif @3.20017
I don’t have a boot button, so the ESP is brought into boot mode via DTR, which has been working for 2 years without any problems.
Now I have bought a brand new computer, when I want to install the new firmware on the ESP from this PC I get this error:
A fatal error occurred: Failed to connect to ESP32: Wrong boot mode detected (0x13)! The chip needs to be in download mode.
If I open the same software version on my old PC and upload it, it works without any problems.
However, if I only start the serial monitor on the new PC, I get the logs of the ESP without any problems, only the upload does not work.
I have reinstalled Platformio, installed the appropriate FTDI driver, made updates and tried every USB port.
Also I am using the same programmer on both devices.
Do new mainboards (Asus TUF B650E) possibly no longer supply enough power for the programmer, so that it cannot bring the ESP into boot mode?
Does anyone have any ideas what else could be the problem?
Many thanks
Daniel
Some boards need an external capacitor between EN and GND to fix some issues - See [SOLVED] Failed to connect to ESP32: Timed out waiting for packet header | Random Nerd Tutorials
I also have a board like this that works perfectly on my PC without a capacitor, but does not work on my notebook without a capacitor. So it may also be due to the combination of board and computer.
I have this capacitor inserted on my pcb, its 1nF and not 10uF, maybe its a capacity problem, but for now I dont have the possibility to change them out
Do you think using a powered USB-hub could solve the problem?
I don’t know. But it would be worth a try (if you have such a hub available).
OK, so I’ve now got the USB power hub, but it still doesn’t work.
Does anyone have any ideas what the problem could be?
I’m using these package versions
- framework-arduinoespressif32 @ 3.20017.241212+sha.dcc1105b
- tool-esptoolpy @ 2.40900.250804 (4.9.0)
- tool-mkfatfs @ 2.0.1
- tool-mklittlefs @ 1.203.210628 (2.3)
- tool-mkspiffs @ 2.230.0 (2.30)
- toolchain-xtensa-esp32 @ 12.2.0+20230208
Also the driver seems to look good:
That’s pretty frustrating. I bought the new development PC mainly for that purpose, and now the most important feature doesn’t work 
Quick update: I’ve tried a bunch of identical PCBs, and it’s the same thing every time. Everything works fine on my laptop, but on the other PC, I get the error “Wrong boot mode detected (0x13)! The chip needs to be in download mode.”
Only the serial monitor is working as it should, I can receive all logs from the esp.
So, it’s definitely not just one device that’s messing up.
I have also ordered new FTDI adapters, but they won’t arrive for a few days. Plugging the FTDI adapter into a USB power hub didn’t help either. Apparently, older motherboards have a higher USB level than newer ones, so I suspect that’s the reason.
Now I’m going to try a new high-quality USB cable.
If anyone has any other ideas, please let me know.
Have you tried increasing the capacitance of C1588 or stacking another capacitor on top of that, to see if that fixes it for one example board? Just to get a feeling of whether that’s a possible hardware fix?
Hi everyone,
Good news, uploading is finally working!
The problem is the power supply from the motherboard. I ordered another USB hub with an external power supply, and it works with that.
Thanks for your help, have a nice weekend 