ESP32-WROVER-E无法正常写入固件
Posted: Wed Jun 23, 2021 12:58 pm
我自己使用esp32-wrover-E的模组做了块板子,现在上电后ESP32一直往外发invalid header,模块是新的,ESP32用的是ESP32-WROVER-E
rst:0x10 (RTCWDT_RTC_RESET),boot:0x1b (SPI_FAST_FLASH_BOOT)
invalid header: 0xffffffff
invalid header: 0xffffffff
现在问题是我无法正常写入固件
我短接了gnd和io0 io2后 串口显示
rst:0x10 (RTCWDT_RTC_RESET),boot:0x3 (DOWNLOAD_BOOT(UART0/UART1/SDIO_REI_REO_V2))
waiting for download
ets Jul 29 2019 12:21:46
再reset重置EN后显示
rst:0x1 (POWERON_RESET),boot:0x3 (DOWNLOAD_BOOT(UART0/UART1/SDIO_REI_REO_V2))
waiting for download
此时我的开发板已经可以正常写入固件了,但我做的板子却会无法连接,显示
blink git:(release/v4.2)$ idf.py -p /dev/cu.usbserial-0001 -b 115200 flash
Executing action: flash
Running ninja in directory /Users/terryding77/hardware/esp32/esp-idf/examples/get-started/blink/build
Executing "ninja flash"...
[1/4] Performing build step for 'bootloader'
ninja: no work to do.
[1/2] cd /Users/terryding77/hardware/es...components/esptool_py/run_esptool.cmake
esptool.py esp32 -p /dev/cu.usbserial-0001 -b 115200 --before=default_reset --after=hard_reset write_flash --flash_mode dio --flash_freq 40m --flash_size 2MB 0x8000 partition_table/partition-table.bin 0x1000 bootloader/bootloader.bin 0x10000 blink.bin
esptool.py v3.1-dev
Serial port /dev/cu.usbserial-0001
Connecting........_____....._____....._____....._____....._____....._____....._____
A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header
CMake Error at run_cmd.cmake:14 (message):
esptool.py failed
Call Stack (most recent call first):
run_esptool.cmake:21 (include)
FAILED: CMakeFiles/flash
cd /Users/terryding77/hardware/esp32/esp-idf/components/esptool_py && /usr/local/Cellar/cmake/3.19.6/bin/cmake -D IDF_PATH="/Users/terryding77/hardware/esp32/esp-idf" -D ESPTOOLPY="/Users/terryding77/.espressif/python_env/idf4.2_py3.9_env/bin/python /Users/terryding77/hardware/esp32/esp-idf/components/esptool_py/esptool/esptool.py --chip esp32" -D ESPTOOL_ARGS="--before=default_reset --after=hard_reset write_flash @flash_args" -D WORKING_DIRECTORY="/Users/terryding77/hardware/esp32/esp-idf/examples/get-started/blink/build" -P /Users/terryding77/hardware/esp32/esp-idf/components/esptool_py/run_esptool.cmake
ninja: build stopped: subcommand failed.
ninja failed with exit code 1
我想知道写入固件还有什么是我没有注意的事项么,stripping的引脚里 io0 io2我应该都设置对了 才会正常出行下载模式的串口输出吧,还有其他需要注意的么,或者是由于模组是新的,第一次写入固件有什么特殊的操作要执行?麻烦各位大神指导下,辛苦了
rst:0x10 (RTCWDT_RTC_RESET),boot:0x1b (SPI_FAST_FLASH_BOOT)
invalid header: 0xffffffff
invalid header: 0xffffffff
现在问题是我无法正常写入固件
我短接了gnd和io0 io2后 串口显示
rst:0x10 (RTCWDT_RTC_RESET),boot:0x3 (DOWNLOAD_BOOT(UART0/UART1/SDIO_REI_REO_V2))
waiting for download
ets Jul 29 2019 12:21:46
再reset重置EN后显示
rst:0x1 (POWERON_RESET),boot:0x3 (DOWNLOAD_BOOT(UART0/UART1/SDIO_REI_REO_V2))
waiting for download
此时我的开发板已经可以正常写入固件了,但我做的板子却会无法连接,显示
blink git:(release/v4.2)$ idf.py -p /dev/cu.usbserial-0001 -b 115200 flash
Executing action: flash
Running ninja in directory /Users/terryding77/hardware/esp32/esp-idf/examples/get-started/blink/build
Executing "ninja flash"...
[1/4] Performing build step for 'bootloader'
ninja: no work to do.
[1/2] cd /Users/terryding77/hardware/es...components/esptool_py/run_esptool.cmake
esptool.py esp32 -p /dev/cu.usbserial-0001 -b 115200 --before=default_reset --after=hard_reset write_flash --flash_mode dio --flash_freq 40m --flash_size 2MB 0x8000 partition_table/partition-table.bin 0x1000 bootloader/bootloader.bin 0x10000 blink.bin
esptool.py v3.1-dev
Serial port /dev/cu.usbserial-0001
Connecting........_____....._____....._____....._____....._____....._____....._____
A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header
CMake Error at run_cmd.cmake:14 (message):
esptool.py failed
Call Stack (most recent call first):
run_esptool.cmake:21 (include)
FAILED: CMakeFiles/flash
cd /Users/terryding77/hardware/esp32/esp-idf/components/esptool_py && /usr/local/Cellar/cmake/3.19.6/bin/cmake -D IDF_PATH="/Users/terryding77/hardware/esp32/esp-idf" -D ESPTOOLPY="/Users/terryding77/.espressif/python_env/idf4.2_py3.9_env/bin/python /Users/terryding77/hardware/esp32/esp-idf/components/esptool_py/esptool/esptool.py --chip esp32" -D ESPTOOL_ARGS="--before=default_reset --after=hard_reset write_flash @flash_args" -D WORKING_DIRECTORY="/Users/terryding77/hardware/esp32/esp-idf/examples/get-started/blink/build" -P /Users/terryding77/hardware/esp32/esp-idf/components/esptool_py/run_esptool.cmake
ninja: build stopped: subcommand failed.
ninja failed with exit code 1
我想知道写入固件还有什么是我没有注意的事项么,stripping的引脚里 io0 io2我应该都设置对了 才会正常出行下载模式的串口输出吧,还有其他需要注意的么,或者是由于模组是新的,第一次写入固件有什么特殊的操作要执行?麻烦各位大神指导下,辛苦了