[ESP32C3] Application Not Running and Debugging Issues
Posted: Sat Oct 07, 2023 12:01 pm
Hi,
I am working on a custom ESP-C3 board powered up by USB, and i want to be able to program and debug it using builtin USB-JTAG.
I have two applications, ESP_GEN (to test integrity), generated by Espressif-IDE with a simple main;
And an other one, ESP_APP for my application. Both share the same sdkconfig (originaly from ESP_GEN).
From Espressif-IDE (2.9.1, with IDF-5.0.2) I have created ESP-IDF GDB OpenOCD Debugging configuration for both projects.
First work without any problems, but second one just do not.
My problem can easily be described with a FSM as following: 0- Plug USB from ESP-C3 Custom PCB -> Chip detected.
1A- Debug ESP_GEN -> Work as expected; I have two threads (#1 IDLE and #2 main on app_main breakpoint) (look at log from log_1a.txt).
1B- Debug ESP_APP -> Open a debug session, without any running thread (look at log from log_1b.txt).
2-The ESPC3 is not reachable anymore[/b], debug attempts resulting on log_2.txt.
2-At restarting (plug/unplug) the custom PCB, USB is not recognized. Bypass GPIO9 to GND, i can force ESP to enter bootloader at restarting.
3- At this point, debuging both projects results on log_3.txt, and even if the debug session start, there is only Thread #1 (Running : User Request) with no running instructions.
3-If debug ESP_APP, at restarting the board returns to 2- Fail state.
3-If debug ESP_GEN, at restarting the board returns to 0- Idle state.
I attached logs of Espressif IDE Console at debugging for each relevants states (1, 2 and 3).
If anyone have an idea.
I am working on a custom ESP-C3 board powered up by USB, and i want to be able to program and debug it using builtin USB-JTAG.
I have two applications, ESP_GEN (to test integrity), generated by Espressif-IDE with a simple main;
And an other one, ESP_APP for my application. Both share the same sdkconfig (originaly from ESP_GEN).
From Espressif-IDE (2.9.1, with IDF-5.0.2) I have created ESP-IDF GDB OpenOCD Debugging configuration for both projects.
First work without any problems, but second one just do not.
My problem can easily be described with a FSM as following: 0- Plug USB from ESP-C3 Custom PCB -> Chip detected.
1A- Debug ESP_GEN -> Work as expected; I have two threads (#1 IDLE and #2 main on app_main breakpoint) (look at log from log_1a.txt).
1B- Debug ESP_APP -> Open a debug session, without any running thread (look at log from log_1b.txt).
2-The ESPC3 is not reachable anymore[/b], debug attempts resulting on log_2.txt.
2-At restarting (plug/unplug) the custom PCB, USB is not recognized. Bypass GPIO9 to GND, i can force ESP to enter bootloader at restarting.
3- At this point, debuging both projects results on log_3.txt, and even if the debug session start, there is only Thread #1 (Running : User Request) with no running instructions.
3-If debug ESP_APP, at restarting the board returns to 2- Fail state.
3-If debug ESP_GEN, at restarting the board returns to 0- Idle state.
I attached logs of Espressif IDE Console at debugging for each relevants states (1, 2 and 3).
If anyone have an idea.