Issues flashing esp32-S3 on Adafruit Qualia board

karunt
Posts: 93
Joined: Sat Apr 03, 2021 7:58 am

Issues flashing esp32-S3 on Adafruit Qualia board

Postby karunt » Wed May 15, 2024 3:34 pm

When I try to flash a project (idf.py flash monitor --port COM3) on the esp32-s3 chip mounted on an Adafruit Qualia board (using the ESP-IDF environment), the build happens successfully, but then the program doesn't execute, or at least the monitoring of it doesn't seem to happen. Here's the output I get after the entire code is written to the chip:

Code: Select all

Wrote 1220720 bytes (763349 compressed) at 0x00010000 in 9.6 seconds (effective 1020.5 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 120...
Writing at 0x00008000... (100 %)
Wrote 3072 bytes (120 compressed) at 0x00008000 in 0.1 seconds (effective 463.9 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...
Executing action: monitor
Running idf_monitor in directory C:\Users\karun\ePuzzle\ezzle\ESP32S3_code
Executing "c:\Users\karun\ESP\.espressif\python_env\idf5.2_py3.11_env\Scripts\python.exe C:\Users\karun\esp\esp-idf\tools/idf_monitor.py -p COM4 -b 115200 --toolchain-prefix xtensa-esp32s3-elf- --target esp32s3 --revision 0 C:\Users\karun\ePuzzle\ezzle\ESP32S3_code\build\epuzz.elf --force-color -m 'c:\Users\karun\ESP\.espressif\python_env\idf5.2_py3.11_env\Scripts\python.exe' 'C:\Users\karun\esp\esp-idf\tools\idf.py'"...
--- WARNING: GDB cannot open serial ports accessed as COMx
--- Using \\.\COM4 instead...
--- esp-idf-monitor 1.2.1 on \\.\COM4 115200 ---
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x15 (USB_UART_CHIP_RESET),boot:0x0 (DOWNLOAD(USB/UART0))
Saved PC:0x40041a76
0x40041a76: ets_delay_us in ROM

waiting for download
It stays stuck at
waiting for download
until I manually kill the command. Any idea what might be going on and how to resolve this situation?

liaifat85
Posts: 200
Joined: Wed Dec 06, 2023 2:46 pm

Re: Issues flashing esp32-S3 on Adafruit Qualia board

Postby liaifat85 » Wed May 15, 2024 6:15 pm

"waiting for download," is likely related to a mismatch in the COM port settings or a problem with the board configuration. In your output, you flash the device on COM3 but the monitor attempts to connect to COM4.

karunt
Posts: 93
Joined: Sat Apr 03, 2021 7:58 am

Re: Issues flashing esp32-S3 on Adafruit Qualia board

Postby karunt » Wed May 15, 2024 6:21 pm

@liaifat85 - Apologies for the typo - I indeed flashed it to COM4. No issue with the port there. Anything specific about the board settings I ought to look out for? I'm not familiar with the Adafruit Qualia board, but it's one that comes with a built in connector for a LCD screen. I've been working mostly with ESP dev boards, so this is new territory for me, and I can't find any other guidance online.

karunt
Posts: 93
Joined: Sat Apr 03, 2021 7:58 am

Re: Issues flashing esp32-S3 on Adafruit Qualia board

Postby karunt » Thu May 16, 2024 1:28 pm

Turns out that ESP-IDF is simply waiting for user to hit the Reset button on the Qualia board to begin executing the program on it. The Qualia board requires pressing of the Reset button to launch new firmware on it. That solved my problem.

Who is online

Users browsing this forum: Bing [Bot] and 290 guests