我正在尝试将nodemcu-firmware 0.9.6附带的新NodeMCU devkit 1.0升级到更新版本。我按照http://nodemcu.readthedocs.org/en/dev/en/flash/
的说明在OS X 10.11.3上使用esptool我确认我可以连接到NodeMCU并在开始之前看到Lua提示。
"成功"写下新的flash:
kirsch$ ./esptool.py --port /dev/cu.SLAB_USBtoUART write_flash 0x00000 nodemcu-dev-8-modules-2016-02-06-03-56-03-integer.bin 0x3fc000 esp_iot_sdk_v1/esp_iot_sdk_v1.4.0/bin/esp_init_data_default.bin
Connecting...
Erasing flash...
Took 1.56s to erase flash block
Wrote 410624 bytes at 0x00000000 in 39.6 seconds (83.0 kbit/s)...
Erasing flash...
Took 0.09s to erase flash block
Wrote 1024 bytes at 0x003fc000 in 0.1 seconds (85.4 kbit/s)...
Leaving...
然而,如果我重置芯片所有我从可怕的(由我)74880波特芯片得到的芯片是:
load 0x40100000, len 28292, room 16
tail 4
chksum 0xef
load 0x33333333, len 858993459, room 4
我也尝试将esp_init_data_default.bin
放在地址0x7c000。
感谢任何帮助!
答案 0 :(得分:1)
您应该使用更多命令行参数启动esptool,以确保它为您的v2 devkit 1.0(confused about those names?)使用正确的SPI闪存模式。 v2 devkit uses SPI模式DIO,闪存大小32mbit,SPI速度40MHz。这转化为
kirsch$ ./esptool.py --port /dev/cu.SLAB_USBtoUART write_flash -fm dio -fs 32m -ff 40m ...