panic_abort (details@entry=0x3fca384c "abort() was called at PC 0x40387f3d on core 0) ESP32-C3 platfotmio vscode win10

joseMiguel
Posts: 22
Joined: Sun Oct 25, 2020 11:43 pm

panic_abort (details@entry=0x3fca384c "abort() was called at PC 0x40387f3d on core 0) ESP32-C3 platfotmio vscode win10

Postby joseMiguel » Mon Feb 06, 2023 11:39 pm

Hello,

I am working with a board bought in Aliexpress with two USB-C connectors with the ESP32-C3-MINI1 module.
(chip revision=3)

I am using Platformio and vscode on windows10.

Previously i used usb_jtag_debug_unit.inf_amd64_73ddb8a0670eb15d, but i did not succeed to debug it.

I have used UsbDriverTool.exe and i have replaced the usb_jtag_debug_unit.inf by WinUsb-libusb and i have succeeded to launch
the debugger.( same thing for unknown_usb_device for example).
It seems that each time i remove the usb of my laptop, i need to reinstall WinUsb-libusb in place of unknown_usb_device?????

Now, i am facing a new bug described here below.
.
I select "Run Menuconfig" on the "Platform" menu commands.
(I had prolems with my AZERTY keyboard, the arrow keys are not working.
I found in the platformio github or website the answer)
the Up key is k, the Down key is j, the Left key is h, and the Right key is l.)

I change some parameters of Application Level Tracing and FreeRTOS without success.

Could you help me please, i am stucked on this problem.


DEBUG CONSOLE
=========================================================================
undefinedC:\Users\josem\.platformio\packages\toolchain-riscv32-esp\bin\riscv32-esp-elf-gdb.exe: warning: Couldn't determine a path for the index cache directory.

Reading symbols from c:\Users\josem\platformio\scan\.pio\build\esp32-c3-devkitm-1\firmware.elf...
PlatformIO Unified Debugger -> https://bit.ly/pio-debug
PlatformIO: debug_tool = esp-builtin
PlatformIO: Initializing remote target...
Open On-Chip Debugger v0.11.0-esp32-20220706 (2022-07-06-15:48)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : only one transport option; autoselect 'jtag'
Info : esp_usb_jtag: VID set to 0x303a and PID to 0x1001
Info : esp_usb_jtag: capabilities descriptor set to 0x2000
adapter speed: 40000 kHz

Warn : Transport "jtag" was already selected
adapter speed: 5000 kHz

Info : tcl server disabled
Info : telnet server disabled
Info : esp_usb_jtag: serial (68:B6:B3:68:54:5C)
Info : esp_usb_jtag: Device found. Base speed 40000KHz, div range 1 to 255
Info : clock speed 5000 kHz
Info : JTAG tap: esp32c3.cpu tap/device found: 0x00005c25 (mfg: 0x612 (Espressif Systems), part: 0x0005, ver: 0x0)
Info : datacount=2 progbufsize=16
Info : Examined RISC-V core; found 1 harts
Info : hart 0: XLEN=32, misa=0x40101104
Info : Hart 0 unexpectedly reset!
Info : Reset cause (3) - (Software core reset)
Info : [esp32c3] Found 8 triggers
Info : starting gdb server for esp32c3 on pipe
Info : accepting 'gdb' connection from pipe
Warn : No symbols for FreeRTOS!
Info : Flash mapping 0: 0x10020 -> 0x3c090020, 118 KB
Info : Flash mapping 1: 0x30020 -> 0x42000020, 535 KB
Info : Auto-detected flash bank 'esp32c3.flash' size 4096 KB
Info : Using flash bank 'esp32c3.flash' size 4096 KB
Info : Flash mapping 0: 0x10020 -> 0x3c090020, 118 KB
Info : Flash mapping 1: 0x30020 -> 0x42000020, 535 KB
Info : Using flash bank 'esp32c3.irom' size 536 KB
Info : Flash mapping 0: 0x10020 -> 0x3c090020, 118 KB
Info : Flash mapping 1: 0x30020 -> 0x42000020, 535 KB
Info : Using flash bank 'esp32c3.drom' size 120 KB
0x420830d4 in semihosting_call_noerrno (data=0x3fcdc854, id=259) at C:\Users\josem\.platformio\packages\framework-espidf\components\riscv\include/riscv/semihosting.h:77
77 __asm__ __volatile__ (
Info : Detected FreeRTOS version: (10.4.3)
Info : JTAG tap: esp32c3.cpu tap/device found: 0x00005c25 (mfg: 0x612 (Espressif Systems), part: 0x0005, ver: 0x0)
JTAG tap: esp32c3.cpu tap/device found: 0x00005c25 (mfg: 0x612 (Espressif Systems), part: 0x0005, ver: 0x0)
Info : Reset cause (3) - (Software core reset)
Reset cause (3) - (Software core reset)
Hardware assisted breakpoint 1 at 0x42000906: file src/main.cpp, line 152.
PlatformIO: Initialization completed
PlatformIO: Resume the execution to `debug_init_break = thb app_main`
PlatformIO: More configuration options -> https://bit.ly/pio-debug
Info : Detected FreeRTOS version: (10.4.3)
[New Thread 1070229104]
[New Thread 1070231756]
[New Thread 1070215368]
[Switching to Thread 1070220308]

Thread 1 "main" hit Temporary breakpoint 1, app_main () at src/main.cpp:152
152 {
Note: automatically using hardware breakpoints for read-only addresses.
[New Thread 1070238304]
[New Thread 1070242648]

Thread
1 "main" received signal SIGTRAP, Trace/breakpoint trap.
panic_abort (details=details@entry=0x3fca384c "abort() was called at PC 0x40387f3d on core 0") at C:\Users\josem\.platformio\packages\framework-espidf\components\esp_system\panic.c:412
412 *((volatile int *) 0) = 0; // NOLINT(clang-analyzer-core.NullDereference) should be an invalid operation on targets

=========================================================================

in file C:\Users\josem\.platformio\packages\framework-espidf\components\esp_system\panic.c:412
=========================================================================

Code: Select all

// functions............................
//..........................................................
//..........................................................
void IRAM_ATTR __attribute__((noreturn, no_sanitize_undefined)) panic_abort(const char *details)
{
    g_panic_abort = true;
    s_panic_abort_details = (char *) details;

#if CONFIG_APPTRACE_ENABLE
#if CONFIG_APPTRACE_SV_ENABLE
    SEGGER_RTT_ESP_FlushNoLock(CONFIG_APPTRACE_POSTMORTEM_FLUSH_THRESH, APPTRACE_ONPANIC_HOST_FLUSH_TMO);
#else
    esp_apptrace_flush_nolock(ESP_APPTRACE_DEST_TRAX, CONFIG_APPTRACE_POSTMORTEM_FLUSH_THRESH,
                              APPTRACE_ONPANIC_HOST_FLUSH_TMO);
#endif
#endif

    *((volatile int *) 0) = 0; // NOLINT(clang-analyzer-core.NullDereference) should be an invalid operation on targets
    while (1);
}
=========================================================================


sdkconfig.esp32-c3-devkitm-1
=========================================================================

Code: Select all

#.....................................
#.....................................
#
#
# Application Level Tracing
#
CONFIG_APPTRACE_DEST_JTAG=y
# CONFIG_APPTRACE_DEST_NONE is not set
# CONFIG_APPTRACE_DEST_UART1 is not set
# CONFIG_APPTRACE_DEST_USB_CDC is not set
CONFIG_APPTRACE_DEST_UART_NONE=y
CONFIG_APPTRACE_UART_TASK_PRIO=1
CONFIG_APPTRACE_MEMBUFS_APPTRACE_PROTO_ENABLE=y
CONFIG_APPTRACE_ENABLE=y
CONFIG_APPTRACE_LOCK_ENABLE=y
CONFIG_APPTRACE_ONPANIC_HOST_FLUSH_TMO=5000
CONFIG_APPTRACE_POSTMORTEM_FLUSH_THRESH=4096
CONFIG_APPTRACE_BUF_SIZE=16384
CONFIG_APPTRACE_PENDING_DATA_SIZE_MAX=1024
#.....................................
#.....................................
#
# FreeRTOS SystemView Tracing
#
# CONFIG_APPTRACE_SV_ENABLE is not set
# end of FreeRTOS SystemView Tracing

# CONFIG_APPTRACE_GCOV_ENABLE is not set
# end of Application Level Tracing
#.....................................
#.....................................
#
# FreeRTOS
#

#
# Kernel
#
# CONFIG_FREERTOS_SMP is not set
CONFIG_FREERTOS_UNICORE=y
CONFIG_FREERTOS_HZ=100
CONFIG_FREERTOS_OPTIMIZED_SCHEDULER=y
# CONFIG_FREERTOS_CHECK_STACKOVERFLOW_NONE is not set
CONFIG_FREERTOS_CHECK_STACKOVERFLOW_PTRVAL=y
# CONFIG_FREERTOS_CHECK_STACKOVERFLOW_CANARY is not set
CONFIG_FREERTOS_THREAD_LOCAL_STORAGE_POINTERS=32
CONFIG_FREERTOS_IDLE_TASK_STACKSIZE=8192
# CONFIG_FREERTOS_USE_IDLE_HOOK is not set
# CONFIG_FREERTOS_USE_TICK_HOOK is not set
CONFIG_FREERTOS_MAX_TASK_NAME_LEN=16
# CONFIG_FREERTOS_ENABLE_BACKWARD_COMPATIBILITY is not set
CONFIG_FREERTOS_TIMER_TASK_PRIORITY=1
CONFIG_FREERTOS_TIMER_TASK_STACK_DEPTH=2048
CONFIG_FREERTOS_TIMER_QUEUE_LENGTH=10
CONFIG_FREERTOS_QUEUE_REGISTRY_SIZE=20
CONFIG_FREERTOS_USE_TRACE_FACILITY=y
# CONFIG_FREERTOS_USE_STATS_FORMATTING_FUNCTIONS is not set
# CONFIG_FREERTOS_GENERATE_RUN_TIME_STATS is not set
# end of Kernel

#
# Port
#
CONFIG_FREERTOS_TASK_FUNCTION_WRAPPER=y
# CONFIG_FREERTOS_WATCHPOINT_END_OF_STACK is not set
# CONFIG_FREERTOS_ENABLE_STATIC_TASK_CLEAN_UP is not set
CONFIG_FREERTOS_CHECK_MUTEX_GIVEN_BY_OWNER=y
CONFIG_FREERTOS_ISR_STACKSIZE=2096
CONFIG_FREERTOS_INTERRUPT_BACKTRACE=y
CONFIG_FREERTOS_TICK_SUPPORT_SYSTIMER=y
CONFIG_FREERTOS_CORETIMER_SYSTIMER_LVL1=y
# CONFIG_FREERTOS_CORETIMER_SYSTIMER_LVL3 is not set
CONFIG_FREERTOS_SYSTICK_USES_SYSTIMER=y
CONFIG_FREERTOS_PLACE_FUNCTIONS_INTO_FLASH=y
# CONFIG_FREERTOS_PLACE_SNAPSHOT_FUNS_INTO_FLASH is not set
# CONFIG_FREERTOS_CHECK_PORT_CRITICAL_COMPLIANCE is not set
CONFIG_FREERTOS_ASSERT_ON_UNTESTED_FUNCTION=y
CONFIG_FREERTOS_ENABLE_TASK_SNAPSHOT=y
# end of Port

CONFIG_FREERTOS_NO_AFFINITY=0x7FFFFFFF
CONFIG_FREERTOS_SUPPORT_STATIC_ALLOCATION=y
CONFIG_FREERTOS_DEBUG_OCDAWARE=y
# end of FreeRTOS

Thank you in advance
Best regards
Jose Michel
José Michel

Who is online

Users browsing this forum: No registered users and 71 guests