Closed Dark1886 closed 11 months ago
Closing this. It currently appears that a USB port on my PC could not supply enough power for a stable upload. Manually holding GPIO0 low did fix this problem, but is a bad solution for multiple reasons.
If you experience this issue yoou may be able to do one of the following.
That's an interesting one.. what is the default charge current on the battery controller, I haven't actually checked. If it's 500ma then there is a chance this will happen occasionally on standard 500ma ports with some USB controllers/cables.
Seems like a minor issue thankfully.
@GaryTill the charge current is set to 333mA so that should be ok. But then you have the normal power consumption of the board on top. I have found that the real USB power draw is still pretty low with less than 400mA. Still it might be better to power the ESP from the battery instead from USB, instead of prioritising USB.
@Dark1886 Do you have any way to measure the USB current with your board?
@CoretechR I do have a USB power meter laying around somewhere and I can test it with that. I'm not sure if it's necessarily the overall power draw that is causing the problem, but it may have just been the transient spikes from boot-up. I'll take a look at it tonight if I can find the meter.
Additionally, It's pretty clear I'm not the only person who has been troubled by this issue. It seems like the different USB port worked for me, but others may still have some problems. According to other threads this may help with reliablitly.
adding a 2.2uF capacitor on EN (connected between EN and GND) fix the problem
I have the same problem. No upload is possible, no matter which USB cable I use (short, thick, high quality) and which USB port (mainboard, front panel, powered USB hub). I always have to pull down GPIO0 manually. I do it by connecting R37 to GND (of the USB port). Any better solution or workaround?
I have the same problem. No upload is possible, no matter which USB cable I use (short, thick, high quality) and which USB port (mainboard, front panel, powered USB hub).
I always have to pull down GPIO0 manually. I do it by connecting R37 to GND (of the USB port).
Any better solution or workaround?
Unfortunately I have yet to find a different solution, but a powered hub or a different USB port fixes my problems so I didn't continue searching.
I believe uploading from a Linux machine could be helpful as it handles the serial communication differently.
I think adding a cap or a switch to pull down gpio0 would be needed.
I believe uploading from a Linux machine could be helpful as it handles the serial communication differently.
Indeed, uploading from the same machine, but using WSL2, worked. Strange ...
I believe uploading from a Linux machine could be helpful as it handles the serial communication differently.
Indeed, uploading from the same machine, but using WSL2, worked. Strange ...
Wow, I didn't think WSL2 Would actually work for that. But glad to hear although it is unfortunate.
I'm having issues uploading to my board. I had previously uploaded without issues. I thought maybe I did something to my board and fried it, but another board that I haven't tinkered with also is having the same behavior. From my initial investigation it seems the automatic bootloader reset is not working as expected, but that could be a wrong assumption.
Any ideas why this could be happening?