SparkFun NodeMCU Won't Boot
Posted: Fri Jun 30, 2017 10:40 am
I've been trying to flash one of the NodeMCU boards from Sparkfun for a couple of days and regardless of which firmware I try to upload, I get the same result:
The part that indicates what's being loaded, from where, varies, depending on what image I'm uploading, but the end output is always the same (above, chksum is always 0xEF). I'm supplying a separate 3.3V to the FTDI and the module so I know it's getting enough power. I've gotten the same results using ESP Tool, Arduino (Windows and Mac). I've tried compiling and uploading (in Arduino's IDE) as a NodeMCU 1.0, 0.9, and a generic ESP8266 Module.
The board is SparkFun's ESP8266 WiFi Module. I'm interfacing with a Micro USB FTDI Basic Breakout Module
As an example, the last firmware I tried to upload was from Espressif (ESP8266_NONOS_SDK). As you can see below, it erased and uploaded fine (flashed by trying QIO and DIO SPI modes, with the same result).
In the screen shot, you can see the offsets I used. They are from Espressif's documentation. Someone please let me know if those are wrong.
I'm out of ideas and need an adult. Any insight would be really appreciated.
Output from last DL Tool re-flash:
Code: Select all
ets Jan 8 2013,rst cause:2, boot mode:(3,7)
load 0x40100000, len 2592, room 16
tail 0
chksum 0xef
load 0x00000000, len 0, room 8
tail 0
chksum 0xef
load 0x00000000, len 0, room 0
tail 0
chksum 0xef
csum 0xef
csum err
ets_main.c
The part that indicates what's being loaded, from where, varies, depending on what image I'm uploading, but the end output is always the same (above, chksum is always 0xEF). I'm supplying a separate 3.3V to the FTDI and the module so I know it's getting enough power. I've gotten the same results using ESP Tool, Arduino (Windows and Mac). I've tried compiling and uploading (in Arduino's IDE) as a NodeMCU 1.0, 0.9, and a generic ESP8266 Module.
The board is SparkFun's ESP8266 WiFi Module. I'm interfacing with a Micro USB FTDI Basic Breakout Module
As an example, the last firmware I tried to upload was from Espressif (ESP8266_NONOS_SDK). As you can see below, it erased and uploaded fine (flashed by trying QIO and DIO SPI modes, with the same result).
In the screen shot, you can see the offsets I used. They are from Espressif's documentation. Someone please let me know if those are wrong.
I'm out of ideas and need an adult. Any insight would be really appreciated.
Output from last DL Tool re-flash:
Code: Select all
pic path: ./RESOURCE/IDLE_S.bmp
***********************
rep_path : [FULL PATH]...\FLASH_DOWNLOAD_TOOLS_V3.4.8\bin_tmp\downloadPanel1
offset: 0
filename: [FULL PATH]...\FLASH_DOWNLOAD_TOOLS_V3.4.8\ESP8266_NONOS_SDK-master\bin\boot_v1.7.bin
self.cp.disable_change_bin: 0
----------------
size_speed : 41
mode: 2
flash size: 4
flash speed: 1
test fpath: [FULL PATH]...\FLASH_DOWNLOAD_TOOLS_V3.4.8\ESP8266_NONOS_SDK-master\bin\_temp_by_dltool/downloadPanel1
test fname: [FULL PATH]...\FLASH_DOWNLOAD_TOOLS_V3.4.8\ESP8266_NONOS_SDK-master\bin\_temp_by_dltool/downloadPanel1\boot_v1.7.bin_rep
mode : speed:
write bin : [FULL PATH]...\FLASH_DOWNLOAD_TOOLS_V3.4.8\ESP8266_NONOS_SDK-master\bin\_temp_by_dltool/downloadPanel1\boot_v1.7.bin_rep
offset: 4096
filename: [FULL PATH]...\FLASH_DOWNLOAD_TOOLS_V3.4.8\ESP8266_NONOS_SDK-master\bin\at\512+512\user1.1024.new.2.bin
self.cp.disable_change_bin: 0
----------------
test fpath: [FULL PATH]...\FLASH_DOWNLOAD_TOOLS_V3.4.8\ESP8266_NONOS_SDK-master\bin\at\512+512\_temp_by_dltool/downloadPanel1
test fname: [FULL PATH]...\FLASH_DOWNLOAD_TOOLS_V3.4.8\ESP8266_NONOS_SDK-master\bin\at\512+512\_temp_by_dltool/downloadPanel1\user1.1024.new.2.bin_rep
mode : speed:
write bin : [FULL PATH]...\FLASH_DOWNLOAD_TOOLS_V3.4.8\ESP8266_NONOS_SDK-master\bin\at\512+512\_temp_by_dltool/downloadPanel1\user1.1024.new.2.bin_rep
offset: 1032192
filename: [FULL PATH]...\FLASH_DOWNLOAD_TOOLS_V3.4.8\ESP8266_NONOS_SDK-master\bin\esp_init_data_default.bin
self.cp.disable_change_bin: 0
----------------
test fpath: [FULL PATH]...\FLASH_DOWNLOAD_TOOLS_V3.4.8\ESP8266_NONOS_SDK-master\bin\_temp_by_dltool/downloadPanel1
test fname: [FULL PATH]...\FLASH_DOWNLOAD_TOOLS_V3.4.8\ESP8266_NONOS_SDK-master\bin\_temp_by_dltool/downloadPanel1\esp_init_data_default.bin_rep
mode : speed:
write bin : [FULL PATH]...\FLASH_DOWNLOAD_TOOLS_V3.4.8\ESP8266_NONOS_SDK-master\bin\_temp_by_dltool/downloadPanel1\esp_init_data_default.bin_rep
offset: 1040384
filename: [FULL PATH]...\FLASH_DOWNLOAD_TOOLS_V3.4.8\ESP8266_NONOS_SDK-master\bin\blank.bin
self.cp.disable_change_bin: 0
----------------
TEST!!!!
SELF.COMSTR: COM5
test running : False
BAUD 0 : 115200
test COM: COM5 <type 'unicode'>
test self._COM: COM5
test baud: 115200
======
CONNECT BAUD: 115200
============
test type : <type 'unicode'>
COM type: string
is open: False
serial port opened
-----------
baud: 115200
root baud: 115200
-------------
===============
BAUD : 115200
===============
Connecting...
*********************
pic path: ./RESOURCE/SYNC_S.bmp
***********************
chip sync ok!
0x3ff00050: e9290000
0x3ff00054: 02003c9c
0x3ff00058: 6400b000
0x3ff0005c: 005ccf7f
EFUSE MODE : 1
reg0:e9290000
reg1:02003c9c
reg2:6400b000
reg3:005ccf7f
check_err_0: 0b
check_err_1: 00
check_err_2: 00
check_err_3: 02
check_err_4: 0b
====================
EFUSE NORMAL MODE
====================
=========================
CRC IN MODE 1:
crc_calc_res: 100
target crc val: 100
=========================
=========================
CRC IN MODE 1:
crc_calc_res: 41
target crc val: 41
=========================
==================
EFUSE LOG:
======================
EFUSE LOG:
---------------
REG0:E9290000
REG1:02003C9C
REG2:6400b000
REG3:005CCF7F
----------------
====================
EFUSE NORMAL MODE
====================
EFUSE CHECK PASS...
48bit mac
debug:
-----------------------
5c cf 7f 3c 9c e9
CUSTOM_ID: 06 40 00 00 00 02 90 00
CUSTOM_ID: 0640000000029000
-----------------------
crc_efuse_4bit: 0
crc_calc_4bit: 0
48bit mac
MAC AP : 5E-CF-7F-3C-9C-E9
MAC STA: 5C-CF-7F-3C-9C-E9
get mac res: True
('tttest uuuuuuuuuuart : uart reg: ', 457)
(' baudrate: ', 115200)
get crystal: 26323200
get flash id : 0xf81420c2
manufacturer_id: 0xc2
device_id: 0x2014
vendor: 194
mode: 32
size: 20
size : 2
sel.freq: 26000000
tttttest crystal : 1
DEBUG!!!!
SET FLASH PARAMS
filename: [FULL PATH]...\FLASH_DOWNLOAD_TOOLS_V3.4.8\bin_tmp\downloadPanel1\boot_v1.7.bin_rep
offset : 0
filename: [FULL PATH]...\FLASH_DOWNLOAD_TOOLS_V3.4.8\bin_tmp\downloadPanel1\user1.1024.new.2.bin_rep
offset : 4096
filename: [FULL PATH]...\FLASH_DOWNLOAD_TOOLS_V3.4.8\bin_tmp\downloadPanel1\esp_init_data_default.bin_rep
offset : 1032192
filename: [FULL PATH]...\FLASH_DOWNLOAD_TOOLS_V3.4.8\bin_tmp\downloadPanel1\blank.bin
offset : 1040384
Erasing flash...
*********************
pic path: ./RESOURCE/DOWNLOAD_S.bmp
***********************
Took 0.10s to erase flash block
size : 2
sel.freq: 26000000
tttttest crystal : 1
Leaving...
Erasing flash...
Took 2.88s to erase flash block
Leaving...
Erasing flash...
Took 0.08s to erase flash block
Leaving...
Erasing flash...
Took 0.08s to erase flash block
Leaving...
*********************
pic path: ./RESOURCE/FINISH_S.bmp
***********************
com closed