Skip to content

Commit

Permalink
soc: stm32: Disable null pointer exception detection by default
Browse files Browse the repository at this point in the history
Null pointer exception detection systematically triggers an
assert when program is run with debug mode on, which is currently
systematic when flashed using openocd runner.
Until this is fixed in openocd, make sure this detection is not
enabled by default (which is currently the case in zephyr tests).

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
  • Loading branch information
erwango committed Mar 5, 2021
1 parent 4f0eaad commit 990a67f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions soc/arm/st_stm32/common/Kconfig.defconfig.series
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ config SYS_CLOCK_TICKS_PER_SEC
default 4096 if STM32_LPTIM_TIMER && STM32_LPTIM_CLOCK_LSE
default 4000 if STM32_LPTIM_TIMER && STM32_LPTIM_CLOCK_LSI

# Disable null pointer exception detection by default as long as debug
# mode is left active by west runners (openocd mainly)
# cf https://github.com/zephyrproject-rtos/zephyr/issues/32984
choice CORTEX_M_DEBUG_NULL_POINTER_EXCEPTION_DETECTION
default CORTEX_M_DEBUG_NULL_POINTER_EXCEPTION_DETECTION_NONE
endchoice

config CLOCK_CONTROL_STM32_CUBE
default y
depends on CLOCK_CONTROL
Expand Down

0 comments on commit 990a67f

Please sign in to comment.