Skip to content

Commit

Permalink
[nrf fromtree] soc: nordic: Disable asserts on ppr and flpr
Browse files Browse the repository at this point in the history
Asserts are by default enabled for tests but flpr and ppr are
small cores (<64k) and many tests does not fit in memory with
asserts enabled.

Signed-off-by: Krzysztof Chruściński <[email protected]>

Signed-off-by: Sebastian Głąb <[email protected]>
(cherry picked from commit 3786b61)
  • Loading branch information
nordic-segl authored and nordicjm committed Oct 14, 2024
1 parent 0dc6f1f commit f95f5c6
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 0 deletions.
4 changes: 4 additions & 0 deletions soc/nordic/nrf54h/Kconfig.defconfig.nrf54h20_cpuflpr
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,8 @@ if SOC_NRF54H20_CPUFLPR
config NUM_IRQS
default 496

# As FLPR has limited memory most of tests does not fit with asserts enabled.
config ASSERT
default n

endif # SOC_NRF54H20_CPUFLPR
4 changes: 4 additions & 0 deletions soc/nordic/nrf54h/Kconfig.defconfig.nrf54h20_cpuppr
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,9 @@ config NUM_IRQS

config SYS_CLOCK_TICKS_PER_SEC
default 1000
#
# As PPR has limited memory most of tests does not fit with asserts enabled.
config ASSERT
default n

endif # SOC_NRF54H20_CPUPPR
4 changes: 4 additions & 0 deletions soc/nordic/nrf54l/Kconfig.defconfig.nrf54l15_cpuflpr
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,8 @@ if SOC_NRF54L15_CPUFLPR
config NUM_IRQS
default 287

# As FLPR has limited memory most of tests does not fit with asserts enabled.
config ASSERT
default n

endif # SOC_NRF54L15_CPUFLPR
3 changes: 3 additions & 0 deletions soc/nordic/nrf54l/Kconfig.defconfig.nrf54l15_enga_cpuflpr
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,8 @@ config RISCV_HAS_CPU_IDLE
config NUM_IRQS
int
default 287
# As FLPR has limited memory most of tests does not fit with asserts enabled.
config ASSERT
default n

endif # SOC_NRF54L15_ENGA_CPUFLPR
4 changes: 4 additions & 0 deletions soc/nordic/nrf92/Kconfig.defconfig.nrf9280_cpuppr
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,8 @@ config SYS_CLOCK_TICKS_PER_SEC
config RV_BOOT_HART
default 13 if SOC_NRF9230_ENGB

# As FLPR has limited memory most of tests does not fit with asserts enabled.
config ASSERT
default n

endif # SOC_NRF9280_CPUPPR

0 comments on commit f95f5c6

Please sign in to comment.