SEGGER SYSVIEW over UART does not compuile (ESP32S3, IDF V5.1)
Posted: Tue Jul 11, 2023 8:07 am
I try to compile after enabling app level tracing over uart in menuconfig but i get the following compilation error. Note that the build works fine if I select app level tracing target to be JTAG!
My settings are:
Data Destination 1 (None) --->
Data Destination 2 (UART1) --->
(33) UART TX on GPIO#
(34) UART RX on GPIO#
(1000000) UART baud rate
(128) UART RX ring buffer size
(4096) UART TX ring buffer size
(128) UART TX message size
(1) UART Task Priority
(-1) Timeout for flushing last trace data to host on panic
(0) Threshold for flushing last trace data to host on panic
FreeRTOS SystemView Tracing --->
Inside FreeRTOS SystemView Tracing:
[*] SystemView Tracing Enable
SystemView destination (Data destination UART) --->
CPU to trace (CPU0) --->
Timer to use as timestamp source (General Purpose Timer (Timer Group)) --->
(16) Maximum supported tasks
(500) Trace buffer wait timeout
[*] Trace Buffer Overflow Event
[*] ISR Enter Event
[*] ISR Exit Event
[*] ISR Exit to Scheduler Event
[*] Task Start Execution Event
[*] Task Stop Execution Event
[*] Task Start Ready State Event
[*] Task Stop Ready State Event
[*] Task Create Event
[*] Task Terminate Event
[*] System Idle Event
[*] Timer Enter Event
[*] Timer Exit Event
My settings are:
Data Destination 1 (None) --->
Data Destination 2 (UART1) --->
(33) UART TX on GPIO#
(34) UART RX on GPIO#
(1000000) UART baud rate
(128) UART RX ring buffer size
(4096) UART TX ring buffer size
(128) UART TX message size
(1) UART Task Priority
(-1) Timeout for flushing last trace data to host on panic
(0) Threshold for flushing last trace data to host on panic
FreeRTOS SystemView Tracing --->
Inside FreeRTOS SystemView Tracing:
[*] SystemView Tracing Enable
SystemView destination (Data destination UART) --->
CPU to trace (CPU0) --->
Timer to use as timestamp source (General Purpose Timer (Timer Group)) --->
(16) Maximum supported tasks
(500) Trace buffer wait timeout
[*] Trace Buffer Overflow Event
[*] ISR Enter Event
[*] ISR Exit Event
[*] ISR Exit to Scheduler Event
[*] Task Start Execution Event
[*] Task Stop Execution Event
[*] Task Start Ready State Event
[*] Task Stop Ready State Event
[*] Task Create Event
[*] Task Terminate Event
[*] System Idle Event
[*] Timer Enter Event
[*] Timer Exit Event
Code: Select all
/opt/esp/idf/components/app_trace/sys_view/esp/SEGGER_RTT_esp.c: In function 'SEGGER_RTT_WriteSkipNoLock':
/opt/esp/idf/components/app_trace/sys_view/esp/SEGGER_RTT_esp.c:170:20: error: 'SYSVIEW_EVTID_USER_START' undeclared (first use in this function); did you mean 'SYSVIEW_EVTID_MARK_START'?
170 | (event_id == SYSVIEW_EVTID_USER_START) ||
| ^~~~~~~~~~~~~~~~~~~~~~~~
| SYSVIEW_EVTID_MARK_START
/opt/esp/idf/components/app_trace/sys_view/esp/SEGGER_RTT_esp.c:170:20: note: each undeclared identifier is reported only once for each function it appears in
/opt/esp/idf/components/app_trace/sys_view/esp/SEGGER_RTT_esp.c:171:20: error: 'SYSVIEW_EVTID_USER_STOP' undeclared (first use in this function); did you mean 'SYSVIEW_EVTID_MARK_STOP'?
171 | (event_id == SYSVIEW_EVTID_USER_STOP) ||
| ^~~~~~~~~~~~~~~~~~~~~~~
| SYSVIEW_EVTID_MARK_STOP
[0/1] Re-running CMake...-- Building ESP-IDF components for target esp32s3