This question is related to this, Cannot program ESP8266, but different settings.
I have a NodeMCU devkit v1, its comercial name is NodeMCU v2. I tried different setting to connect the devkit.
First the devkit has a usb-serial bridge (CP2102) and voltage adapter from 5v (USB) to 3.3v. So I connect the devkit with the machine via USB. The driver is installed correctly, and I can see the com, it is COM3. After turning on the NodeMCU I can see a Wifi
AI-THINKER-adfe21
.Then I tried with the nodemcu-flasher - WINDOWS.
- Without any button or pin to ground. I press Flash in the flasher and stay
Waiting MAC
and the log saysBegin Find ESP8266
as the question I told in the begin and the ESP's led (blue led) blinks. - Holding FLASH, press RESET, release FLASH. Still the same like 1.
- Wire D3 (GPIO0) to GND. Same result
- Without any button or pin to ground. I press Flash in the flasher and stay
With ESPtool - LINUX - Trying these commands
python2 esptool.py --port /dev/ttyUSB0 read_mac python2 esptool.py --port /dev/ttyUSB0 write_flash 0x00000 firmware.bin
- Without any button or pin to ground. The output for the commands was
Connecting... A fatal error occurred: Failed to connect to ESP8266
- Holding FLASH, press RESET, release FLASH. Same
- Wire D3 (GPIO0) to GND. Same result.
- Without any button or pin to ground. The output for the commands was
Via Arduino IDE, I installed the ESP8266 board and selected
NodeMCU 1.0
. The result to try upload some code ->warning: espcomm_sync failed error: espcomm_open failed
I tryed to connect the NodeMCU without the USB. Using an Arduino UNO, connecting like following... And I'm getting the same errors.
UNO | NodeMCU
5v -> Vin
GND -> GND
Rx -> Tx
Tx -> Rx
The last test I made, it is with Putty or Arduino SerialMonitor connect to the COM3
or /dev/ttyUSB0
and turning on the NodeMCU. I should see some characters or garbage if it in different baud rate. But I got nothing, the terminal is blank. I restart the NodeMCU, put it in Flash mode. No response.
Are there some solution, tip or trick to make it programmable?
PS: I know the NodeMCU is in Flash mode because its wifi disappear.
EDIT:
I discovered something.
I just connected the NodeMcu with a mobile charger and connect the D0 to Serial ground and D3 to Serial Rx. On the putty with 115200 Baudrate, I'm able to get the following code on reset.
node : sta(mac address) + softAP(mac address)
add if0
add if1
dhcp server start:(ip:192.168.4.1, mask:255.255.255.0,gw:192.168.4.1)
bcn 100