@@ -57,7 +57,13 @@ static bool esp_apptrace_riscv_host_data_pending(void);
5757
5858const 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
6268esp_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}
0 commit comments