Skip to content

Commit 8c43370

Browse files
committed
Merge branch 'fix/esp32p4_apptrace' into 'master'
fix(apptrace): replace ctrl block into noncache-able TCM memory Closes IDF-8107 See merge request espressif/esp-idf!34032
2 parents cfd343b + 213c318 commit 8c43370

File tree

3 files changed

+12
-10
lines changed

3 files changed

+12
-10
lines changed

components/app_trace/port/riscv/port.c

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,13 @@ static bool esp_apptrace_riscv_host_data_pending(void);
5757

5858
const static char *TAG = "esp_apptrace";
5959

60-
static esp_apptrace_riscv_ctrl_block_t s_tracing_ctrl[CONFIG_FREERTOS_NUMBER_OF_CORES];
60+
#if SOC_CACHE_INTERNAL_MEM_VIA_L1CACHE
61+
#define APPTRACE_DRAM_ATTR TCM_DRAM_ATTR
62+
#else
63+
#define APPTRACE_DRAM_ATTR
64+
#endif
65+
66+
static APPTRACE_DRAM_ATTR esp_apptrace_riscv_ctrl_block_t s_tracing_ctrl[CONFIG_FREERTOS_NUMBER_OF_CORES];
6167

6268
esp_apptrace_hw_t *esp_apptrace_jtag_hw_get(void **data)
6369
{
@@ -92,7 +98,7 @@ esp_apptrace_hw_t *esp_apptrace_jtag_hw_get(void **data)
9298
}
9399

94100
/* Advertises apptrace control block address to host.
95-
This function can be overriden with custom implementation,
101+
This function can be overridden with custom implementation,
96102
e.g. OpenOCD flasher stub use own implementation of it. */
97103
__attribute__((weak)) int esp_apptrace_advertise_ctrl_block(void *ctrl_block_addr)
98104
{
@@ -103,7 +109,7 @@ __attribute__((weak)) int esp_apptrace_advertise_ctrl_block(void *ctrl_block_add
103109
}
104110

105111
/* Returns up buffers config.
106-
This function can be overriden with custom implementation,
112+
This function can be overridden with custom implementation,
107113
e.g. OpenOCD flasher stub use own implementation of it. */
108114
__attribute__((weak)) void esp_apptrace_get_up_buffers(esp_apptrace_mem_block_t mem_blocks_cfg[2])
109115
{
@@ -165,7 +171,7 @@ static esp_err_t esp_apptrace_riscv_init(esp_apptrace_riscv_data_t *hw_data)
165171
}
166172
// notify host about control block address
167173
int res = esp_apptrace_advertise_ctrl_block(&s_tracing_ctrl[core_id]);
168-
assert(res == 0 && "Falied to send config to host!");
174+
assert(res == 0 && "Failed to send config to host!");
169175

170176
return ESP_OK;
171177
}

examples/system/.build-test-rules.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
# Documentation: .gitlab/ci/README.md#manifest-file-to-control-the-buildtest-apps
22

33
examples/system/app_trace_basic:
4-
disable:
5-
- if: IDF_TARGET == "esp32p4"
6-
temporary: true
7-
reason: not ready yet. IDF-8107
84
disable_test:
95
- if: IDF_TARGET in ["esp32c6", "esp32h2", "esp32p4", "esp32c5", "esp32c61"]
106
temporary: true

examples/system/app_trace_basic/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C5 | ESP32-C6 | ESP32-C61 | ESP32-H2 | ESP32-S2 | ESP32-S3 |
2-
| ----------------- | ----- | -------- | -------- | -------- | -------- | --------- | -------- | -------- | -------- |
1+
| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C5 | ESP32-C6 | ESP32-C61 | ESP32-H2 | ESP32-P4 | ESP32-S2 | ESP32-S3 |
2+
| ----------------- | ----- | -------- | -------- | -------- | -------- | --------- | -------- | -------- | -------- | -------- |
33

44
# Application Level Tracing Example (Basic)
55

0 commit comments

Comments
 (0)