esp32: Workaround IDF issue placing ISR ringbuf functions in IRAM.

This workaround makes sure that all ringbuf functions that may be called
from an ISR are placed in IRAM.  See
https://github.com/espressif/esp-idf/issues/13378

Note that this means that all esp32-og builds get non-ISR ringbuf functions
placed in flash now, whereas previously it was just the spiram variant.
This might be a good thing (e.g. free up some IRAM for native/viper).

Fixes issue #14005.

This work was funded through GitHub Sponsors.

Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
This commit is contained in:
Jim Mussared
2024-03-21 15:46:41 +11:00
committed by Damien George
parent 71044a4186
commit acbdbcd95e
6 changed files with 45 additions and 1 deletions

View File

@@ -151,6 +151,8 @@ idf_component_register(
${MICROPY_PORT_DIR}
${MICROPY_BOARD_DIR}
${CMAKE_BINARY_DIR}
LDFRAGMENTS
linker.lf
REQUIRES
${IDF_COMPONENTS}
)