From 17214c2db626a4dc597b22e806dae86ea49d98bc Mon Sep 17 00:00:00 2001 From: Ivan Grokhotkov Date: Thu, 20 Jan 2022 22:24:27 +0100 Subject: [PATCH] hal: fix CONFIG_TWAI_ISR_IN_IRAM not taking effect for C3/H2 --- components/hal/linker.lf | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/components/hal/linker.lf b/components/hal/linker.lf index 0a4033a942..1f4cf233b7 100644 --- a/components/hal/linker.lf +++ b/components/hal/linker.lf @@ -14,11 +14,8 @@ entries: cpu_hal (noflash) soc_hal (noflash) wdt_hal_iram (noflash) - if IDF_TARGET_ESP32C3 = n && IDF_TARGET_ESP32H2 = n: - if TWAI_ISR_IN_IRAM = y: - twai_hal_iram (noflash) - else: - twai_hal_iram (default) + if TWAI_ISR_IN_IRAM = y: + twai_hal_iram (noflash) if IDF_TARGET_ESP32 = n: spi_flash_hal_gpspi (noflash) systimer_hal (noflash)