ESP32-S3-WROOM-1 On Custom PCB
Posted: Tue Mar 29, 2022 4:48 am
Hello. I have been using the ESP32-S3-DEVKITC fora bit now and it works great on either USB port (serial or native). I went ahead and decided to move to a custom PCB proto. Though the flash monitor process does not appear to be the same. Usually I am able to see the log messages right away after flashing but instead I get a different kind of output. When I press ctrl + ] to leave, my ESP32-S3 doesn't behave as it should (like to run the program). Am I missing something in the flash process now that I have moved to my own PCB? I have my schematic attached as well for reference.
Code: Select all
PS C:\BBG_Firmware\Antagonist_V2> idf.py flash monitor
Executing action: flash
Serial port COM4
Connecting.......................
COM4 failed to connect: Failed to connect to Espressif device: No serial data received.
For troubleshooting steps visit: https://docs.espressif.com/projects/esptool/en/latest/troubleshooting.html
Serial port COM3
Connecting...
COM3 failed to connect: Write timeout
Serial port COM17
COM17 failed to connect: could not open port 'COM17': OSError(22, 'The semaphore timeout period has expired.', None, 121)
Serial port COM16
Connecting...
COM16 failed to connect: Write timeout
Serial port COM10
Connecting...
Detecting chip type... ESP32-S3
Running ninja in directory c:\bbg_firmware\antagonist_v2\build
Executing "ninja flash"...
[1/5] cmd.exe /C "cd /D C:\BBG_Firmware\Antagonist_V2\build\esp-idf\esptool_py && c:\esp\tools\Espressif\python_env\i...are/Antagonist_V2/build/partition_table/partition-table.bin C:/BBG_Firmware/Antagonist_V2/build/antagonist_esp32.bin"antagonist_esp32.bin binary size 0x6af40 bytes. Smallest app partition is 0x100000 bytes. 0x950c0 bytes (58%) free.
[2/5] Performing build step for 'bootloader'
[1/1] cmd.exe /C "cd /D C:\BBG_Firmware\Antagonist_V2\build\bootloader\esp-idf\esptool_py && c:\esp\tools\Espressif\python_env\idf4.4_py3.8_env\Scripts\python.exe C:/esp/esp-idf/components/partition_table/check_sizes.py --offset 0x8000 bootloader 0x0 C:/BBG_Firmware/Antagonist_V2/build/bootloader/bootloader.bin"
Bootloader binary size 0x51a0 bytes. 0x2e60 bytes (36%) free.
[2/3] cmd.exe /C "cd /D C:\esp\esp-idf\components\esptool_py && C:\esp\tools\Espressif\tools\cmake\3.20.3\bin\cmake.e...ORKING_DIRECTORY="C:/BBG_Firmware/Antagonist_V2/build" -P C:/esp/esp-idf/components/esptool_py/run_serial_tool.cmake"esptool.py esp32s3 -p COM10 -b 460800 --before=default_reset --after=hard_reset write_flash --flash_mode dio --flash_freq 80m --flash_size 2MB 0x0 bootloader/bootloader.bin 0x10000 antagonist_esp32.bin 0x8000 partition_table/partition-table.bin
esptool.py v3.3-dev
Serial port COM10
Connecting...
Chip is ESP32-S3
Features: WiFi, BLE
Crystal is 40MHz
MAC: 7c:df:a1:e3:76:3c
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
Configuring flash size...
Flash will be erased from 0x00000000 to 0x00005fff...
Flash will be erased from 0x00010000 to 0x0007afff...
Flash will be erased from 0x00008000 to 0x00008fff...
Compressed 20896 bytes to 13036...
Writing at 0x00000000... (100 %)
Wrote 20896 bytes (13036 compressed) at 0x00000000 in 0.4 seconds (effective 379.9 kbit/s)...
Hash of data verified.
Compressed 438080 bytes to 260916...
Writing at 0x00010000... (6 %)
Writing at 0x0001b227... (12 %)
Writing at 0x0002369a... (18 %)
Writing at 0x00029329... (25 %)
Writing at 0x0002f2d3... (31 %)
Writing at 0x0003504d... (37 %)
Writing at 0x0003a957... (43 %)
Writing at 0x00040050... (50 %)
Writing at 0x00046328... (56 %)
Writing at 0x0004c18a... (62 %)
Writing at 0x000525c3... (68 %)
Writing at 0x00057dd1... (75 %)
Writing at 0x00060565... (81 %)
Writing at 0x00068cf2... (87 %)
Writing at 0x0006f53e... (93 %)
Writing at 0x00074f4e... (100 %)
Wrote 438080 bytes (260916 compressed) at 0x00010000 in 4.8 seconds (effective 736.4 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 103...
Writing at 0x00008000... (100 %)
Wrote 3072 bytes (103 compressed) at 0x00008000 in 0.1 seconds (effective 370.0 kbit/s)...
Hash of data verified.
Leaving...
Hard resetting via RTS pin...
Executing action: monitor
Serial port COM4
COM4 failed to connect: could not open port 'COM4': PermissionError(13, 'Access is denied.', None, 5)
Serial port COM3
COM3 failed to connect: could not open port 'COM3': PermissionError(13, 'Access is denied.', None, 5)
Serial port COM17
COM17 failed to connect: could not open port 'COM17': OSError(22, 'The semaphore timeout period has expired.', None, 121)
Serial port COM16
COM16 failed to connect: could not open port 'COM16': PermissionError(13, 'Access is denied.', None, 5)
Serial port COM10
Connecting...
Detecting chip type... ESP32-S3
Running idf_monitor in directory c:\bbg_firmware\antagonist_v2
Executing "c:\esp\tools\Espressif\python_env\idf4.4_py3.8_env\Scripts\python.exe c:\esp\esp-idf\tools/idf_monitor.py -p COM10 -b 115200 --toolchain-prefix xtensa-esp32s3-elf- --target esp32s3 c:\bbg_firmware\antagonist_v2\build\antagonist_esp32.elf -m 'c:\esp\tools\Espressif\python_env\idf4.4_py3.8_env\Scripts\python.exe' 'c:\esp\esp-idf\tools\idf.py'"...
--- WARNING: GDB cannot open serial ports accessed as COMx
--- Using \\.\COM10 instead...
--- idf_monitor on \\.\COM10 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:0x400490cc
waiting for download
Done