ESP32 SPI Flash Communication
Posted: Sat Feb 19, 2022 7:07 am
I have a custom design with an ESP32-D0WD-V3 with an external Winbond W25Q80DVSNIG flash IC. When trying to flash a program onto the device I get this error message.
I am using a Dual I/O setup and setting the VDD SDIO voltage to 3.3V.[2/3] cd /Users/brentonyiu/esp/esp-idf/components/esptool_py && /usr/local/Cellar/cmake/3.22.1/bin/cmake -D I...u/esp/projects/hello_world/build -P /Users/brentonyiu/esp/esp-idf/components/esptool_py/run_serial_tool.cmak
esptool.py esp32 -p /dev/tty.usbserial-143101 -b 460800 --before=default_reset --after=hard_reset write_flash --flash_mode dio --flash_freq 40m --flash_size 2MB 0x1000 bootloader/bootloader.bin 0x10000 hello_world.bin 0x8000 partition_table/partition-table.bin
esptool.py v3.3-dev
Serial port /dev/tty.usbserial-143101
Connecting...........
Chip is ESP32-D0WD-V3 (revision 3)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
WARNING: Detected crystal freq 24.65MHz is quite different to normalized freq 26MHz. Unsupported crystal in use?
Crystal is 26MHz
MAC: 48:55:19:b3:8b:40
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
WARNING: Failed to communicate with the flash chip, read/write operations will fail. Try checking the chip connections or removing any other hardware connected to IOs.
Configuring flash size...
Flash will be erased from 0x00001000 to 0x00007fff...
Flash will be erased from 0x00010000 to 0x00039fff...
Flash will be erased from 0x00008000 to 0x00008fff...
Compressed 25424 bytes to 15903...
A fatal error occurred: Packet content transfer stopped (received 8 bytes)
CMake Error at run_serial_tool.cmake:55 (message):
/Users/brentonyiu/.espressif/python_env/idf5.0_py3.9_env/bin/python;;/Users/brentonyiu/esp/esp-idf/components/esptool_py/esptool/esptool.py;--chip;esp32
failed
FAILED: CMakeFiles/flash /Users/brentonyiu/esp/projects/hello_world/build/CMakeFiles/flash
cd /Users/brentonyiu/esp/esp-idf/components/esptool_py && /usr/local/Cellar/cmake/3.22.1/bin/cmake -D IDF_PATH=/Users/brentonyiu/esp/esp-idf -D "SERIAL_TOOL=/Users/brentonyiu/.espressif/python_env/idf5.0_py3.9_env/bin/python;;/Users/brentonyiu/esp/esp-idf/components/esptool_py/esptool/esptool.py;--chip;esp32" -D "SERIAL_TOOL_ARGS=--before=default_reset;--after=hard_reset;write_flash;@flash_args" -D WORKING_DIRECTORY=/Users/brentonyiu/esp/projects/hello_world/build -P /Users/brentonyiu/esp/esp-idf/components/esptool_py/run_serial_tool.cmake
ninja: build stopped: subcommand failed.
ninja failed with exit code 1