pro cpu reset by JTAG

floitsch_toit
Posts: 22
Joined: Wed Jun 29, 2022 4:25 pm

pro cpu reset by JTAG

Postby floitsch_toit » Tue Jan 30, 2024 4:26 pm

One of our projects uses an ESP32S3.
Sometimes we see the message `pro cpu reset by JTAG` during boot, and the device then stops shortly after. It manages to execute some instructions but it runs less than a second. This is semi-reproducible. If we wake up from sleep it happens maybe once every 20? times.

There is no JTAG connected to the board.

Where is this message printed? (I grepped through the esp-idf sources, but couldn't find it).
What does it mean?
Any ideas on how to fix/diagnose this?

Code: Select all

ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x5 (DSLEEP),boot:0x2a (SPI_FAST_FLASH_BOOT)
pro cpu reset by JTAG
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce3810,len:0x194

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

Re: pro cpu reset by JTAG

Postby ESP_Sprite » Wed Jan 31, 2024 2:47 am

That message comes from the internal boot ROM, it's printed when the RTC_CNTL_JTAG_RESET_FLAG_PROCPU bit (which is in a hardware register) is set to 1. From what I understand, that bit should be set to 1 only when JTAG reset the pro CPU (as the name and the message indicates), so I don't know why deep sleep would set that... I'd look at general things that can make the ESP32S3 act wonky: is your reset circuit OK? Is your power supply adequate? Generally, can you also get this behaviour on other boards of the same design, or even on entirely different boards (e.g. devboards)?

MicroController
Posts: 1725
Joined: Mon Oct 17, 2022 7:38 pm
Location: Europe, Germany

Re: pro cpu reset by JTAG

Postby MicroController » Wed Jan 31, 2024 10:02 am

There is no JTAG connected to the board.
Are you using the USB-JTAG-Serial for monitoring?

floitsch_toit
Posts: 22
Joined: Wed Jun 29, 2022 4:25 pm

Re: pro cpu reset by JTAG

Postby floitsch_toit » Wed Jan 31, 2024 12:39 pm

Are you using the USB-JTAG-Serial for monitoring?
No. We use the serial port's TX (pin 43 iirc).

Pjordan
Posts: 2
Joined: Thu Feb 01, 2024 9:22 am

Re: pro cpu reset by JTAG

Postby Pjordan » Thu Feb 01, 2024 9:57 am

We have de-soldered the ESP32-S3 from our PCB and hooked it up directly on a USB port with power from a lab power supply and we still see the Pro CPU reset by JTAG. Nothing is connected to the chip at all. We see this error on all our ESP32-S3 chips in production. Any advice on how this is happening or what we can do about it?

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

Re: pro cpu reset by JTAG

Postby ESP_Sprite » Fri Feb 02, 2024 5:07 am

Can you also get this behaviour on an Espressif devboard? If so, we can replicate it and look into it. If not, it points at a hardware issue.

Pjordan
Posts: 2
Joined: Thu Feb 01, 2024 9:22 am

Re: pro cpu reset by JTAG

Postby Pjordan » Mon Feb 05, 2024 11:08 am

We have just reproduced the same error on a dev board (DollaTek ESP32-S3-DevKitC-1) Any suggestions?

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

Re: pro cpu reset by JTAG

Postby ESP_Sprite » Mon Feb 05, 2024 1:32 pm

Okay, that makes it a software thing. Any chance you can share the code with us? Preferably whittled down to the bare minimum that shows the issue, and preferably the code is shared publicly, but if that's not possible you can send whatever you privately to me as well. (Although do note lunar new year is coming up, so no guarantees when we can look at this, unfortunately.)

Who is online

Users browsing this forum: No registered users and 316 guests