I have created my own board for an ESP32 project for a laser tag target for halloween.
Here I have taken over a Programmer logic with a CH340. So far everything works here. However, I have the problem that my upload via the Arduino IDE does not always work successfully.
Error message:
The sketch uses 778417 bytes (59%) of the program memory. The maximum is 1310720 bytes.
Global variables use 39240 bytes (11%) of dynamic memory, leaving 288440 bytes for local > variables. The maximum is 327680 bytes.
esptool.py v3.3
Serial port COM4
Connecting......................................
Quick update: I thought I had found the solution. I pressed and held both buttons before connecting the USB cable, plugged in the USB and hold both buttons.
Then pressed the sketch upload button and at "connecting...." released the reset button and the upload started directly.
But even that I could not recreate a second time after several attempts.
So still the strange phenomenon, that it works sometimes and sometimes not. I think there is still a problem with me in the circuit.
fire up the IDE with no board connected
look at the ports available
connect the ESP
restart the IDE
look at the ports available
you will see a new port. it might be ACMAO, or it might be USBTTY0
connect to that port.
start your serial monitor at 115,200
press reset on the ESP
if you get a page full of reboot chatter, you're in