-->
Page 1 of 2

fails to start if there's no uart to usb connected

PostPosted: Sat Aug 08, 2015 3:21 am
by dash
Hi all,
I've got pl-based usb-uart convertor (tx rt gnd) and esp 12 and 12e controllers linked to 800mA power supply. I flashed it to nodeMCU and from Arduino ide, tried with pull up resistors and with direct connections as described in docs, different power supplies - it all works fine while it's comnnected to usb, but dose not start at all if usb is disconnected. The only thing i do against the documentation is that i keep gpio0 on the ground during flashing, while it's supposed to be disconnected just after start-up as i understand. Any advice on what can be done with it?
Thanks a lot!

Re: fails to start if there's no uart to usb connected

PostPosted: Fri Sep 04, 2015 2:59 am
by dash
just in case - it was something with the power supply, dunno what exactly (because it currently works with arduino and there should be more than 300mA output), however that esp works fine with batteries and if i use USB-UART's 5v pin as an input for 5-3v conversion.

Re: fails to start if there's no uart to usb connected

PostPosted: Fri Sep 04, 2015 6:26 am
by Touliloup
Do you also keep GPIO0 to the ground for normal operation? GPIO0 can be kept to ground during flash (many use a jumper to connect GPIO0 and therefor keep it to ground).
After flashing the program will start to execute even if GPIO0 is still connected. However after reset it will return in flash mode and won't start your program. So be sure to have GPIO0 disconnected from ground when restarting for normal operation.
Also GPIO15 should be connected to ground (or you start in some other mode... might be SD card...) and VCC + EN(CH_PD) connected to 3.3V (and with some resistor in between as you might already know).
Are you just connecting RX, TX and GND from you FTDI? Or also RTS/DTR?

Re: fails to start if there's no uart to usb connected

PostPosted: Fri Sep 04, 2015 6:38 am
by dash
Thanks!
Yes, gpio0 and 15 were ok. I have different combinations now, with and without rts connected. All works fine now. :P