From 88889e2f882e5996a14b4584c9d9e959fa6c5ce8 Mon Sep 17 00:00:00 2001 From: Erhan Kurubas Date: Tue, 1 Feb 2022 21:43:20 +0100 Subject: [PATCH 1/2] esp32c3: fix portSTACK_GROWTH redefinition error --- .../app_trace/sys_view/Sample/OS/SEGGER_SYSVIEW_FreeRTOS.h | 3 --- examples/system/sysview_tracing/README.md | 4 ++-- examples/system/sysview_tracing_heap_log/README.md | 4 ++-- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/components/app_trace/sys_view/Sample/OS/SEGGER_SYSVIEW_FreeRTOS.h b/components/app_trace/sys_view/Sample/OS/SEGGER_SYSVIEW_FreeRTOS.h index aba3bd3ea3..dc410edf8e 100644 --- a/components/app_trace/sys_view/Sample/OS/SEGGER_SYSVIEW_FreeRTOS.h +++ b/components/app_trace/sys_view/Sample/OS/SEGGER_SYSVIEW_FreeRTOS.h @@ -76,9 +76,6 @@ Notes: * ********************************************************************** */ -#ifndef portSTACK_GROWTH - #define portSTACK_GROWTH ( -1 ) -#endif #define SYSVIEW_FREERTOS_MAX_NOF_TASKS CONFIG_APPTRACE_SV_MAX_TASKS diff --git a/examples/system/sysview_tracing/README.md b/examples/system/sysview_tracing/README.md index dc5a643a6d..93ab9efa4f 100644 --- a/examples/system/sysview_tracing/README.md +++ b/examples/system/sysview_tracing/README.md @@ -1,5 +1,5 @@ -| Supported Targets | ESP32 | ESP32-S2 | -| ----------------- | ----- | -------- | +| Supported Targets | ESP32 | ESP32-S2 | ESP32-C3 | +| ----------------- | ----- | -------- | -------- | # Example: Application Level Tracing - SystemView Tracing (sysview_tracing) This test code shows how to perform system-wide behavioral analysis of the program using [SEGGER SystemView tool](https://www.segger.com/products/development-tools/systemview/). diff --git a/examples/system/sysview_tracing_heap_log/README.md b/examples/system/sysview_tracing_heap_log/README.md index 6f31050ed1..9514af9a13 100644 --- a/examples/system/sysview_tracing_heap_log/README.md +++ b/examples/system/sysview_tracing_heap_log/README.md @@ -1,5 +1,5 @@ -| Supported Targets | ESP32 | ESP32-S2 | -| ----------------- | ----- | -------- | +| Supported Targets | ESP32 | ESP32-S2 | ESP32-C3 | +| ----------------- | ----- | -------- | -------- | # SystemView Heap and Log Tracing Example From e40cd91065fbfcc381da006f856facd0c5f42d92 Mon Sep 17 00:00:00 2001 From: Erhan Kurubas Date: Wed, 2 Feb 2022 11:29:47 +0100 Subject: [PATCH 2/2] heap: use HEAP_TRACING_STACK_DEPTH default value for riscv --- examples/system/sysview_tracing_heap_log/sdkconfig.defaults | 1 - .../system/sysview_tracing_heap_log/sdkconfig.defaults.esp32 | 4 ++++ .../sysview_tracing_heap_log/sdkconfig.defaults.esp32s2 | 4 ++++ 3 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 examples/system/sysview_tracing_heap_log/sdkconfig.defaults.esp32 create mode 100644 examples/system/sysview_tracing_heap_log/sdkconfig.defaults.esp32s2 diff --git a/examples/system/sysview_tracing_heap_log/sdkconfig.defaults b/examples/system/sysview_tracing_heap_log/sdkconfig.defaults index 9e78bf67b8..a51f354b50 100644 --- a/examples/system/sysview_tracing_heap_log/sdkconfig.defaults +++ b/examples/system/sysview_tracing_heap_log/sdkconfig.defaults @@ -27,4 +27,3 @@ CONFIG_APPTRACE_SV_EVT_TIMER_EXIT_ENABLE=y CONFIG_LOG_COLORS=n # Enable heap tracing to host CONFIG_HEAP_TRACING_TOHOST=y -CONFIG_HEAP_TRACING_STACK_DEPTH=10 diff --git a/examples/system/sysview_tracing_heap_log/sdkconfig.defaults.esp32 b/examples/system/sysview_tracing_heap_log/sdkconfig.defaults.esp32 new file mode 100644 index 0000000000..1599dfbbf7 --- /dev/null +++ b/examples/system/sysview_tracing_heap_log/sdkconfig.defaults.esp32 @@ -0,0 +1,4 @@ +# +# Heap memory debugging +# +CONFIG_HEAP_TRACING_STACK_DEPTH=10 diff --git a/examples/system/sysview_tracing_heap_log/sdkconfig.defaults.esp32s2 b/examples/system/sysview_tracing_heap_log/sdkconfig.defaults.esp32s2 new file mode 100644 index 0000000000..1599dfbbf7 --- /dev/null +++ b/examples/system/sysview_tracing_heap_log/sdkconfig.defaults.esp32s2 @@ -0,0 +1,4 @@ +# +# Heap memory debugging +# +CONFIG_HEAP_TRACING_STACK_DEPTH=10