From fd8c4701205adf5f634da2394eed637b96e5c7bc Mon Sep 17 00:00:00 2001 From: David Buzz Date: Tue, 13 Aug 2024 12:54:21 +1000 Subject: [PATCH] AP_HAL_ESP32: __RAMFUNC__ maps to IRAM_ATTR dagery_ua found this and reported it in Discord --- libraries/AP_HAL/board/esp32.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libraries/AP_HAL/board/esp32.h b/libraries/AP_HAL/board/esp32.h index 1969a0066f..e927165b8c 100644 --- a/libraries/AP_HAL/board/esp32.h +++ b/libraries/AP_HAL/board/esp32.h @@ -52,6 +52,10 @@ #define __LITTLE_ENDIAN 1234 #define __BYTE_ORDER __LITTLE_ENDIAN +// ArduPilot uses __RAMFUNC__ to place functions in fast instruction RAM +#define __RAMFUNC__ IRAM_ATTR + + // whenver u get ... error: "xxxxxxx" is not defined, evaluates to 0 [-Werror=undef] just define it below as 0 #define CONFIG_SPIRAM_ALLOW_BSS_SEG_EXTERNAL_MEMORY 0 #define XCHAL_ERRATUM_453 0