我正在尝试下载NodeMCU固件,但是下载后
rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
flash read err, 1000
Falling back to built-in command interpreter.
OK
NodeMCU文档Flashing the firmware,描述了常规命令格式。我使用的命令是:
sudo espressif/esptool/repo/esptool.py --port /dev/ttyS8 write_flash -fm dio 0x00000 nodemcu/repo/bin/0x00000.bin
注意,我正在基于Windows WSL Debian的发行版ttyS8中运行它。
我之所以无法做到这一点,是因为在控制台中看到的消息。经过一番搜索,我确实在letcontrolit / ESPEasy论坛中找到了一些信息,由voducng找到了here。他的回答如下:
You need to flash the bootloader. So under Windows10/cmd:
I do erase: flasherase.cmd:
esptool.exe --chip esp32 --port COM11 --baud 256000 --before default_reset --after hard_reset erase_flash
I do use flash the boot loader: flashbootloader.cmd:
esptool.exe --chip esp32 --port COM11 --baud 256000 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size detect 0x8000 partitions2.bin 0xe000 boot_app0.bin 0x1000 bootloader.bin
and flashfirmware.cmd:
esptool.exe --chip esp32 --port COM11 --baud 256000 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size detect 0x10000 firmware.bin
我能够发出命令1和3,但是由于我不知道文件partitions2.bin在哪里,所以我无法执行命令#2。我在esptool存储库中找到了几个引导加载程序文件,但不确定要使用哪个文件。
这是搜索这些文件后的清单
user@machine:/mnt/c/MyFiles/Projects/espressif$ find . -iname *partition*.bin
./esp-idf/components/nvs_flash/test/partition_encrypted.bin
./esp-idf/components/wear_levelling/test/test_partition_v1.bin
./esptool/repo/test/images/partitions_singleapp.bin
user@machine:/mnt/c/MyFiles/Projects/espressif$ find . -iname *boot*.bin
./esptool/repo/test/images/bootloader_esp32.bin
./esptool/repo/test/images/bootloader_esp32s2beta.bin
./esptool/repo/test/images/esp8266_sdk/boot_v1.4(b1).bin
./esptool/repo/test/secure_images/bootloader-encrypted-conf0.bin
./esptool/repo/test/secure_images/bootloader-encrypted-conf3.bin
./esptool/repo/test/secure_images/bootloader-encrypted-conf9.bin
./esptool/repo/test/secure_images/bootloader-encrypted-confc.bin
./esptool/repo/test/secure_images/bootloader-encrypted.bin
./esptool/repo/test/secure_images/bootloader.bin
./esptool/repo/test/secure_images/bootloader_digested.bin
./esptool/repo/test/secure_images/bootloader_signed.bin
有人看到我在做什么错吗?