ESP32-S3-WROOM-1-N8 Progamming

Douglas-EDM
Posts: 12
Joined: Thu May 19, 2022 12:47 pm

ESP32-S3-WROOM-1-N8 Progamming

Postby Douglas-EDM » Wed Apr 19, 2023 12:48 pm

I'm trying to program the ESP32-S3-WROOM-1-N8, using Visual Code, Platform Io and the ESP-PROG. The following is my setup in platformio.ini:

Code: Select all

[env:esp32-s3-devkitc-1]
platform = espressif32
board = esp32-s3-devkitc-1
framework = arduino
debug_tool = esp-prog
debug_init_break = tbreak setup
I've followed the instructions to set up the drivers for the JTAG programmer, but I get the following error:
Info : tcl server disabled
Info : telnet server disabled
Info : clock speed 5000 kHz
Error: JTAG scan chain interrogation failed: all ones
Error: Check JTAG interface, timings, target power, etc.
Error: Trying to use configured scan chain anyway...
Error: esp32s3.cpu0: IR capture error; saw 0x1f not 0x01
Warn : Bypassing JTAG setup events due to errors
Error: Unexpected OCD_ID = ffffffff
Warn : target esp32s3.cpu1 examination failed
Info : starting gdb server for esp32s3.cpu0 on pipe
Info : accepting 'gdb' connection from pipe
Error: Target not examined yet
Error executing event gdb-attach on target esp32s3.cpu0:

Warn : No symbols for FreeRTOS!
Error: Target not halted
Error: auto_probe failed
Error: Connect failed. Consider setting up a gdb-attach event for the target to prepare target for GDB connect, or use 'gdb_memory_map disable'.
Error: attempted 'gdb' connection rejected
Error: error during select: Unknown error
.pioinit:11: Error in sourced command file:
Remote communication error. Target disconnected.: Success.
I then tried programming it using UART as we usually do, but this time with the ESP-PROG, before we alsways had the programming circuit on board and used a usb-serial converter.

The code loads, but when I open the serial port I get the following message repeating:
(14:16:49.605) Build:Mar 27 2021
(14:16:49.605) rst:0xc (RTC_SW_CPU_RST),boot:0x8 (SPI_FAST_FLASH_BOOT)
(14:16:49.605) Saved PC:0x403776c4
(14:16:49.605) SPIWP:0xee
(14:16:49.605) mode:DIO, clock div:1
(14:16:49.605) load:0x3fce3808,len:0x44c
(14:16:49.605) load:0x403c9700,len:0xbec
(14:16:49.605) load:0x403cc700,len:0x2920
(14:16:49.605) entry 0x403c98d8
I've checked that the connectors between my PCB and the PROG is correct.
This is the schematic for the ESP:
Screenshot 2023-04-19 144431.png
Screenshot 2023-04-19 144431.png (157.22 KiB) Viewed 1136 times
All of the GPIOs in use have 10k pull downs.

Any ideas on why the JTAG doesn't work, and why the program doesn't start after successfully uploading it.

Thank you

ESP_Sprite
Posts: 9583
Joined: Thu Nov 26, 2015 4:08 am

Re: ESP32-S3-WROOM-1-N8 Progamming

Postby ESP_Sprite » Thu Apr 20, 2023 2:54 am

The S3 by default has JTAG routed to its own internal USB-serial-JTAG adapter, you need to blow a fuse to have it accessible on GPIOs. Not sure why your program doesn't boot though.

Who is online

Users browsing this forum: No registered users and 57 guests