From 3786b617bdc65204a65a928124d3b11002315484 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krzysztof=20Chru=C5=9Bci=C5=84ski?= Date: Tue, 24 Sep 2024 08:24:46 +0200 Subject: [PATCH] soc: nordic: Disable asserts on ppr and flpr MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- soc/nordic/nrf54h/Kconfig.defconfig.nrf54h20_cpuflpr | 4 ++++ soc/nordic/nrf54h/Kconfig.defconfig.nrf54h20_cpuppr | 4 ++++ soc/nordic/nrf54l/Kconfig.defconfig.nrf54l15_cpuflpr | 4 ++++ soc/nordic/nrf54l/Kconfig.defconfig.nrf54l15_enga_cpuflpr | 3 +++ soc/nordic/nrf92/Kconfig.defconfig.nrf9280_cpuppr | 4 ++++ 5 files changed, 19 insertions(+) diff --git a/soc/nordic/nrf54h/Kconfig.defconfig.nrf54h20_cpuflpr b/soc/nordic/nrf54h/Kconfig.defconfig.nrf54h20_cpuflpr index 68acc00f79b..2b792e9f1b9 100644 --- a/soc/nordic/nrf54h/Kconfig.defconfig.nrf54h20_cpuflpr +++ b/soc/nordic/nrf54h/Kconfig.defconfig.nrf54h20_cpuflpr @@ -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 diff --git a/soc/nordic/nrf54h/Kconfig.defconfig.nrf54h20_cpuppr b/soc/nordic/nrf54h/Kconfig.defconfig.nrf54h20_cpuppr index ae05e5e89d4..bf7c12a3a69 100644 --- a/soc/nordic/nrf54h/Kconfig.defconfig.nrf54h20_cpuppr +++ b/soc/nordic/nrf54h/Kconfig.defconfig.nrf54h20_cpuppr @@ -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 diff --git a/soc/nordic/nrf54l/Kconfig.defconfig.nrf54l15_cpuflpr b/soc/nordic/nrf54l/Kconfig.defconfig.nrf54l15_cpuflpr index eabd1844c90..7c653d14b93 100644 --- a/soc/nordic/nrf54l/Kconfig.defconfig.nrf54l15_cpuflpr +++ b/soc/nordic/nrf54l/Kconfig.defconfig.nrf54l15_cpuflpr @@ -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 diff --git a/soc/nordic/nrf54l/Kconfig.defconfig.nrf54l15_enga_cpuflpr b/soc/nordic/nrf54l/Kconfig.defconfig.nrf54l15_enga_cpuflpr index de1a8519225..86c80d08fc2 100644 --- a/soc/nordic/nrf54l/Kconfig.defconfig.nrf54l15_enga_cpuflpr +++ b/soc/nordic/nrf54l/Kconfig.defconfig.nrf54l15_enga_cpuflpr @@ -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 diff --git a/soc/nordic/nrf92/Kconfig.defconfig.nrf9280_cpuppr b/soc/nordic/nrf92/Kconfig.defconfig.nrf9280_cpuppr index 1bef8de61ca..8e52b3611aa 100644 --- a/soc/nordic/nrf92/Kconfig.defconfig.nrf9280_cpuppr +++ b/soc/nordic/nrf92/Kconfig.defconfig.nrf9280_cpuppr @@ -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