mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
freertos: fix defining uxTopUsedPriority for esp32s2beta
This commit is contained in:
parent
6e00988608
commit
faa219acdb
@ -381,6 +381,7 @@ menu "ESP32-specific"
|
|||||||
config ESP32_DEBUG_OCDAWARE
|
config ESP32_DEBUG_OCDAWARE
|
||||||
bool "Make exception and panic handlers JTAG/OCD aware"
|
bool "Make exception and panic handlers JTAG/OCD aware"
|
||||||
default y
|
default y
|
||||||
|
select FREERTOS_DEBUG_OCDAWARE
|
||||||
help
|
help
|
||||||
The FreeRTOS panic and unhandled exception handers can detect a JTAG OCD debugger and
|
The FreeRTOS panic and unhandled exception handers can detect a JTAG OCD debugger and
|
||||||
instead of panicking, have the debugger stop on the offending instruction.
|
instead of panicking, have the debugger stop on the offending instruction.
|
||||||
|
@ -346,6 +346,7 @@ menu "ESP32S2-specific"
|
|||||||
config ESP32S2_DEBUG_OCDAWARE
|
config ESP32S2_DEBUG_OCDAWARE
|
||||||
bool "Make exception and panic handlers JTAG/OCD aware"
|
bool "Make exception and panic handlers JTAG/OCD aware"
|
||||||
default y
|
default y
|
||||||
|
select FREERTOS_DEBUG_OCDAWARE
|
||||||
help
|
help
|
||||||
The FreeRTOS panic and unhandled exception handers can detect a JTAG OCD debugger and
|
The FreeRTOS panic and unhandled exception handers can detect a JTAG OCD debugger and
|
||||||
instead of panicking, have the debugger stop on the offending instruction.
|
instead of panicking, have the debugger stop on the offending instruction.
|
||||||
|
@ -31,7 +31,9 @@ idf_component_register(SRCS "${srcs}"
|
|||||||
REQUIRES app_trace
|
REQUIRES app_trace
|
||||||
PRIV_REQUIRES soc)
|
PRIV_REQUIRES soc)
|
||||||
|
|
||||||
target_link_libraries(${COMPONENT_LIB} INTERFACE "-Wl,--undefined=uxTopUsedPriority")
|
if(CONFIG_FREERTOS_DEBUG_OCDAWARE)
|
||||||
|
target_link_libraries(${COMPONENT_LIB} INTERFACE "-Wl,--undefined=uxTopUsedPriority")
|
||||||
|
endif()
|
||||||
|
|
||||||
set_source_files_properties(
|
set_source_files_properties(
|
||||||
tasks.c
|
tasks.c
|
||||||
|
@ -19,6 +19,6 @@
|
|||||||
#define USED
|
#define USED
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_ESP32_DEBUG_OCDAWARE
|
#ifdef CONFIG_FREERTOS_DEBUG_OCDAWARE
|
||||||
const int USED DRAM_ATTR uxTopUsedPriority = configMAX_PRIORITIES - 1;
|
const int USED DRAM_ATTR uxTopUsedPriority = configMAX_PRIORITIES - 1;
|
||||||
#endif
|
#endif
|
||||||
|
@ -435,4 +435,9 @@ menu "FreeRTOS"
|
|||||||
would be checked to be in compliance with Vanilla FreeRTOS.
|
would be checked to be in compliance with Vanilla FreeRTOS.
|
||||||
e.g Calling port*_CRITICAL from ISR context would cause assert failure
|
e.g Calling port*_CRITICAL from ISR context would cause assert failure
|
||||||
|
|
||||||
|
config FREERTOS_DEBUG_OCDAWARE
|
||||||
|
bool
|
||||||
|
help
|
||||||
|
Hidden option, gets selected by CONFIG_ESPxx_DEBUG_OCDAWARE
|
||||||
|
|
||||||
endmenu
|
endmenu
|
||||||
|
@ -2,7 +2,10 @@
|
|||||||
# Component Makefile
|
# Component Makefile
|
||||||
#
|
#
|
||||||
|
|
||||||
COMPONENT_ADD_LDFLAGS += -Wl,--undefined=uxTopUsedPriority
|
ifdef CONFIG_FREERTOS_DEBUG_OCDAWARE
|
||||||
|
COMPONENT_ADD_LDFLAGS += -Wl,--undefined=uxTopUsedPriority
|
||||||
|
endif
|
||||||
|
|
||||||
COMPONENT_ADD_INCLUDEDIRS := include
|
COMPONENT_ADD_INCLUDEDIRS := include
|
||||||
COMPONENT_PRIV_INCLUDEDIRS := include/freertos .
|
COMPONENT_PRIV_INCLUDEDIRS := include/freertos .
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user