apptrace: Adds ESP32-C3 support

This commit is contained in:
Alexey Gerenkov
2021-05-29 00:20:02 +03:00
parent fa6655cbcf
commit d06fac5c8b
11 changed files with 463 additions and 23 deletions

View File

@@ -259,6 +259,13 @@ void IRAM_ATTR call_start_cpu0(void)
#endif
#ifdef __riscv
if (cpu_hal_is_debugger_attached()) {
/* Let debugger some time to detect that target started, halt it, enable ebreaks and resume.
500ms should be enough. */
for (uint32_t ms_num = 0; ms_num < 2; ms_num++) {
esp_rom_delay_us(100000);
}
}
// Configure the global pointer register
// (This should be the first thing IDF app does, as any other piece of code could be
// relaxed by the linker to access something relative to __global_pointer$)