mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 11:10:54 +03:00
change(app_trace): move sysview to component registry
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
## IDF Component Manager Manifest File
|
||||
dependencies:
|
||||
## Required IDF version
|
||||
idf:
|
||||
version: '>=6.0'
|
||||
# # Put list of dependencies here
|
||||
#espressif/esp_sysview: ^1
|
||||
esp_sysview:
|
||||
git: https://github.com/espressif/idf-extra-components.git
|
||||
path: esp_sysview
|
||||
version: "refs/pull/600/head"
|
||||
matches:
|
||||
- if: "idf_version >=6.0"
|
||||
@@ -11,7 +11,7 @@
|
||||
#include <inttypes.h>
|
||||
#include "esp_err.h"
|
||||
#include "esp_app_trace.h"
|
||||
#include "esp_sysview_trace.h"
|
||||
#include "esp_sysview_heap_trace_module.h" // from esp_sysview managed component
|
||||
#include "esp_heap_trace.h"
|
||||
#include "esp_log.h"
|
||||
#include "freertos/FreeRTOS.h"
|
||||
@@ -73,6 +73,18 @@ static void alloc_task(void *p)
|
||||
}
|
||||
}
|
||||
|
||||
esp_trace_open_params_t esp_trace_get_user_params(void)
|
||||
{
|
||||
esp_trace_open_params_t trace_params = {
|
||||
.core_cfg = NULL,
|
||||
.encoder_name = "sysview",
|
||||
.encoder_cfg = NULL,
|
||||
.transport_name = "apptrace",
|
||||
.transport_cfg = NULL,
|
||||
};
|
||||
return trace_params;
|
||||
}
|
||||
|
||||
void app_main(void)
|
||||
{
|
||||
ESP_LOGI(TAG, "Ready for OpenOCD connection");
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
CONFIG_APPTRACE_DEST_JTAG=y
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
CONFIG_FREERTOS_HZ=1000
|
||||
# Enable application tracing by default
|
||||
CONFIG_ESP_TRACE_ENABLE=y
|
||||
CONFIG_ESP_TRACE_LIB_SEGGER_SYSVIEW=y
|
||||
CONFIG_ESP_TRACE_LIB_EXTERNAL=y
|
||||
CONFIG_ESP_TRACE_TRANSPORT_APPTRACE=y
|
||||
CONFIG_ESP_TRACE_TS_SOURCE_GPTIMER=y
|
||||
CONFIG_APPTRACE_DEST_JTAG=y
|
||||
# Enable FreeRTOS SystemView Tracing by default
|
||||
|
||||
# FreeRTOS SystemView Tracing Settings
|
||||
CONFIG_SEGGER_SYSVIEW_EVT_OVERFLOW_ENABLE=y
|
||||
CONFIG_SEGGER_SYSVIEW_EVT_ISR_ENTER_ENABLE=y
|
||||
CONFIG_SEGGER_SYSVIEW_EVT_ISR_EXIT_ENABLE=y
|
||||
|
||||
Reference in New Issue
Block a user