ESP32 Trace with J-Link EDU

Open source ARM Debugger

Moderator: phalanx

Post Reply
cmisztur
Posts: 2
Joined: Mon Oct 22, 2018 9:09 am

ESP32 Trace with J-Link EDU

Post by cmisztur » Mon Oct 22, 2018 9:12 am

Quick question before I try a FT2232H chip and make sure I'm not doing something incorrectly. Here is the output when doing a sysview trace using a J-Link EDU. Would SEGGER's licensing cause the failure? GDB works fine, but trace does not.

Code: Select all

> esp32 sysview start file://pro-cpu.SVDat file://app-cpu.SVDat
Target halted. PRO_CPU: PC=0x400E23A2 (active)    APP_CPU: PC=0x00000000
Total trace memory: 16384 bytes
Open file pro-cpu.SVDat
Open file app-cpu.SVDat
App trace params: from 2 cores, size 4294967295 bytes, stop_tmo -1 s, poll period 1 ms, wait_rst 0, skip 0 bytes
Connect targets...
Target halted. PRO_CPU: PC=0x400E23A2 (active)    APP_CPU: PC=0x00000000
Targets connected.
Stop waiting for trace start due to timeout.
SEGGER: Failed to start tracing!
Disconnect targets...
Target halted. PRO_CPU: PC=0x400E23A2 (active)    APP_CPU: PC=0x00000000
Targets disconnected.
Trace data processor thread exited with 0

cmisztur
Posts: 2
Joined: Mon Oct 22, 2018 9:09 am

Re: ESP32 Trace with J-Link EDU

Post by cmisztur » Tue Oct 23, 2018 5:00 am

Nevermind. J-Link EDU works fine. I forgot to save the sdkconfig after making tracing changes.

Code: Select all

#
# Application Level Tracing
#
CONFIG_ESP32_APPTRACE_DEST_TRAX=y
CONFIG_ESP32_APPTRACE_DEST_NONE=
CONFIG_ESP32_APPTRACE_ENABLE=y
CONFIG_ESP32_APPTRACE_LOCK_ENABLE=
CONFIG_ESP32_APPTRACE_ONPANIC_HOST_FLUSH_TMO=-1
CONFIG_ESP32_APPTRACE_POSTMORTEM_FLUSH_TRAX_THRESH=0
CONFIG_ESP32_APPTRACE_PENDING_DATA_SIZE_MAX=0

#
# FreeRTOS SystemView Tracing
#
CONFIG_SYSVIEW_ENABLE=y
CONFIG_SYSVIEW_TS_SOURCE_TIMER_00=y
CONFIG_SYSVIEW_TS_SOURCE_TIMER_01=
CONFIG_SYSVIEW_TS_SOURCE_TIMER_10=
CONFIG_SYSVIEW_TS_SOURCE_TIMER_11=
CONFIG_SYSVIEW_TS_SOURCE_ESP_TIMER=
CONFIG_SYSVIEW_EVT_OVERFLOW_ENABLE=y
CONFIG_SYSVIEW_EVT_ISR_ENTER_ENABLE=y
CONFIG_SYSVIEW_EVT_ISR_EXIT_ENABLE=y
CONFIG_SYSVIEW_EVT_ISR_TO_SCHEDULER_ENABLE=y
CONFIG_SYSVIEW_EVT_TASK_START_EXEC_ENABLE=y
CONFIG_SYSVIEW_EVT_TASK_STOP_EXEC_ENABLE=y
CONFIG_SYSVIEW_EVT_TASK_START_READY_ENABLE=y
CONFIG_SYSVIEW_EVT_TASK_STOP_READY_ENABLE=y
CONFIG_SYSVIEW_EVT_TASK_CREATE_ENABLE=y
CONFIG_SYSVIEW_EVT_TASK_TERMINATE_ENABLE=y
CONFIG_SYSVIEW_EVT_IDLE_ENABLE=y
CONFIG_SYSVIEW_EVT_TIMER_ENTER_ENABLE=y
CONFIG_SYSVIEW_EVT_TIMER_EXIT_ENABLE=y
CONFIG_AWS_IOT_SDK=

Post Reply