From 88c1c6af4958d049d00adcd81fc13234fd500869 Mon Sep 17 00:00:00 2001 From: Alexey Lapshin Date: Mon, 1 Apr 2024 13:04:25 +0400 Subject: [PATCH] fix(gcov): fix exceptions on gcov task_tick_hook Closes https://github.com/espressif/esp-idf/issues/13511 --- components/app_trace/gcov/gcov_rtio.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/app_trace/gcov/gcov_rtio.c b/components/app_trace/gcov/gcov_rtio.c index f8d124f70c..9791ae5de0 100644 --- a/components/app_trace/gcov/gcov_rtio.c +++ b/components/app_trace/gcov/gcov_rtio.c @@ -16,6 +16,7 @@ #include "esp_freertos_hooks.h" #include "esp_private/dbg_stubs.h" #include "esp_private/esp_ipc.h" +#include "esp_attr.h" #include "hal/wdt_hal.h" #if CONFIG_IDF_TARGET_ESP32 #include "esp32/rom/libc_stubs.h" @@ -80,6 +81,7 @@ void gcov_create_task(void *arg) (void *)&s_gcov_task_running, configMAX_PRIORITIES - 1, NULL, 0); } +static IRAM_ATTR void gcov_create_task_tick_hook(void) { if (s_create_gcov_task) {