Kconfig: add config for low-priority debug mon isr
Debug monitor needs to be configured to a low priority in order to be useful for debugging (to prioritize other interrupts when waiting on a breakpoint). Added a config that configures the interrupt this way. Signed-off-by: Piotr Jasiński <piotr.jasinski@nordicsemi.no>
This commit is contained in:
parent
1fe4b1eb90
commit
7fa0af01cf
2 changed files with 10 additions and 2 deletions
|
@ -352,7 +352,13 @@ config CORTEX_M_DWT
|
||||||
Enable and use the Data Watchpoint and Trace (DWT) unit for
|
Enable and use the Data Watchpoint and Trace (DWT) unit for
|
||||||
timing functions.
|
timing functions.
|
||||||
|
|
||||||
# Additional stack for tests when building with FPU_SHARING
|
config CORTEX_M_DEBUG_MONITOR_HOOK
|
||||||
|
bool "Debug monitor interrupt for debugging"
|
||||||
|
depends on !ARMV6_M_ARMV8_M_BASELINE
|
||||||
|
help
|
||||||
|
Enable this option to configure debug monitor exception to low priority
|
||||||
|
for debugging purposes.
|
||||||
|
|
||||||
# enabled, which may increase ESF stacking requirements for
|
# enabled, which may increase ESF stacking requirements for
|
||||||
# threads.
|
# threads.
|
||||||
config TEST_EXTRA_STACK_SIZE
|
config TEST_EXTRA_STACK_SIZE
|
||||||
|
|
|
@ -112,7 +112,9 @@ static ALWAYS_INLINE void z_arm_exc_setup(void)
|
||||||
NVIC_SetPriority(MemoryManagement_IRQn, _EXC_FAULT_PRIO);
|
NVIC_SetPriority(MemoryManagement_IRQn, _EXC_FAULT_PRIO);
|
||||||
NVIC_SetPriority(BusFault_IRQn, _EXC_FAULT_PRIO);
|
NVIC_SetPriority(BusFault_IRQn, _EXC_FAULT_PRIO);
|
||||||
NVIC_SetPriority(UsageFault_IRQn, _EXC_FAULT_PRIO);
|
NVIC_SetPriority(UsageFault_IRQn, _EXC_FAULT_PRIO);
|
||||||
#if defined(CONFIG_CPU_CORTEX_M_HAS_DWT)
|
#if defined(CONFIG_CORTEX_M_DEBUG_MONITOR_HOOK)
|
||||||
|
NVIC_SetPriority(DebugMonitor_IRQn, IRQ_PRIO_LOWEST);
|
||||||
|
#elif defined(CONFIG_CPU_CORTEX_M_HAS_DWT)
|
||||||
NVIC_SetPriority(DebugMonitor_IRQn, _EXC_FAULT_PRIO);
|
NVIC_SetPriority(DebugMonitor_IRQn, _EXC_FAULT_PRIO);
|
||||||
#endif
|
#endif
|
||||||
#if defined(CONFIG_ARM_SECURE_FIRMWARE)
|
#if defined(CONFIG_ARM_SECURE_FIRMWARE)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue