mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
de662d5e11
Since SPI flash operations can not be performed when the stack is in external RAM, we need to switch to a different stack when doing a core dump to flash. This is achieved by a pair of longjmp's, one of which is crafted manually to jump into a designated function with a specific stack set up. The cost of this feature is a bit of IRAM, plus the DRAM required for the extra stack. Closes AUD-1355
13 lines
445 B
CMake
13 lines
445 B
CMake
set(COMPONENT_PRIV_INCLUDEDIRS "include_core_dump")
|
|
set(COMPONENT_ADD_INCLUDEDIRS "include")
|
|
set(COMPONENT_REQUIRES)
|
|
set(COMPONENT_PRIV_REQUIRES spi_flash)
|
|
set(COMPONENT_ADD_LDFRAGMENTS linker.lf)
|
|
set(COMPONENT_SRCS "src/core_dump_common.c"
|
|
"src/core_dump_flash.c"
|
|
"src/core_dump_port.c"
|
|
"src/core_dump_uart.c"
|
|
"src/core_dump_flash_newstack.c")
|
|
|
|
register_component()
|