From e8a276d641486e16d46717b6526b905263a87e5d Mon Sep 17 00:00:00 2001 From: Felipe Neves Date: Fri, 18 Sep 2020 10:58:24 -0300 Subject: [PATCH] esp_system: revert the esp_system_abort to the IRAM section --- components/esp_system/linker.lf | 3 ++- components/esp_system/startup.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/components/esp_system/linker.lf b/components/esp_system/linker.lf index d1c32659ac..e55780553c 100644 --- a/components/esp_system/linker.lf +++ b/components/esp_system/linker.lf @@ -4,7 +4,8 @@ entries: panic (noflash) panic_handler (noflash) reset_reason (noflash) - + system_api:esp_system_abort (noflash) + if ESP_CONSOLE_USB_CDC_SUPPORT_ETS_PRINTF: usb_console:esp_usb_console_write_char (noflash) usb_console:esp_usb_console_write_buf (noflash) diff --git a/components/esp_system/startup.c b/components/esp_system/startup.c index 8678f6d7be..d65ce54d75 100644 --- a/components/esp_system/startup.c +++ b/components/esp_system/startup.c @@ -166,7 +166,7 @@ static void esp_startup_start_app_other_cores_default(void) } } -static void start_cpu_other_cores_default(void) +static void IRAM_ATTR start_cpu_other_cores_default(void) { do_system_init_fn();