Custom PCB with ESP32-C3-MINI module. Using the ESP32s onboard USB. On one PCB when I run idf.py monitor, it sometimes gets stuck at waiting for download (see below). I have confirmed that IO9 is kept high. Other PCBs do not have this problem. Any suggestions on what could be the cause?
This problem never happens the first time after the ESP32 is power cycled. It also sometimes doesn't happen at all and I can start/stop the monitor as many times as I want. Once it gets stuck in this state, it doesn't matter how many times I restart monitor, it is always waiting for download. A power cycle is required.
The flash memory is OK and programmed. When it is stuck, a power cycle always boots OK.
Code: Select all
>idf.py -p COM10 monitor
Executing action: monitor
Running idf_monitor in directory c:\users\ashley\documents\esp32\evnexhomeesp32firmware
Executing "C:\Espressif\python_env\idf4.4_py3.8_env\Scripts\python.exe C:\Espressif\frameworks\esp-idf-v4.4.2\tools/idf_monitor.py -p COM10 -b 115200 --toolchain-prefix riscv32-esp-elf- --target esp32c3 --decode-panic backtrace c:\users\ashley\documents\esp32\evnexhomeesp32firmware\build\EvnexHomeESP32Firmware.elf -m 'C:\Espressif\python_env\idf4.4_py3.8_env\Scripts\python.exe' 'C:\Espressif\frameworks\esp-idf-v4.4.2\tools\idf.py' '-p' 'COM10'"...
←[0;33m--- WARNING: GDB cannot open serial ports accessed as COMx←[0m
←[0;33m--- Using \\.\COM10 instead...←[0m
←[0;33m--- idf_monitor on \\.\COM10 115200 ---←[0m
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
ESP-ROM:esp32c3-api1-20210207
Build:Feb 7 2021
rst:0x15 (USB_UART_CHIP_RESET),boot:0x5 (DOWNLOAD(USB/UART0/1))
Saved PC:0x400462e2
waiting for download
Code: Select all
rst:0x15 (USB_UART_CHIP_RESET),boot:0xd (SPI_FAST_FLASH_BOOT)