Skip to content

Commit 8791d77

Browse files
AntonZmarlubos
authored andcommitted
tests: zephyr: ram_context_for_isr: Extend Zephyr test
Create the same test as for Zephyr in nrf/tests/application_development directory and disable KMU by default for all the NRF54L and NRF71 devices. This test is incompatible with the KMU because it changes the placement of the RAM in the linker files and this collides with the KMU logic. But it also does not need the KMU so there is no need to be there. The KMU dependency to reserve the top RAM address is planned to be done in dts (NCSDK-31980). Hopefully when this is done this noup can be removed. This commit replaces the following noup commits to sdk-zephyr: 1. e5618fec38e228854881ecc4ff9c993894a705d1 2. 206c0efa9be0b49e1ab7bffb09978da18368ba40 Signed-off-by: Anton Zyma <anton.zyma@nordicsemi.no> Signed-off-by: Georgios Vasilakis <georgios.vasilakis@nordicsemi.no> Signed-off-by: Robert Robinson <robert.robinson@nordicsemi.no>
1 parent f659198 commit 8791d77

18 files changed

Lines changed: 142 additions & 0 deletions

CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1028,6 +1028,7 @@
10281028
/tests/zephyr/modules/tf-m/regression/ @nrfconnect/ncs-aegir
10291029
/tests/zephyr/subsys/sd/ @nrfconnect/ncs-low-level-test
10301030
/tests/zephyr/subsys/secure_storage/ @nrfconnect/ncs-aegir
1031+
/tests/zephyr/application_development/ram_context_for_isr/ @nrfconnect/ncs-aegir
10311032
/tests/zephyr/subsys/settings/performance/ @nrfconnect/ncs-eris @rghaddab
10321033
/tests/zephyr/bluetooth/tester/host/ @nrfconnect/ncs-paladin
10331034

scripts/ci/license_allow_list.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ Apache-2.0: |
5959
^nrf/subsys/mgmt/mcumgr/grp/img_mgmt/src/img_mgmt_state.c
6060
^nrf/tests/zephyr/subsys/settings/
6161
^nrf/tests/zephyr/boards/nrf/rram_throttling/
62+
^nrf/tests/zephyr/application_development/ram_context_for_isr/
6263
^nrf/samples/zephyr/
6364
^nrf/samples/dfu/compressed_update/sysbuild/mcuboot/prj.conf
6465
^nrf/boards/shields/nrf7002eb_interposer_p1/

scripts/ci/tags.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2045,3 +2045,8 @@ ci_tests_zephyr_board_nrf_throttling:
20452045
files:
20462046
- nrf/tests/zephyr/boards/nrf/rram_throttling/
20472047
- zephyr/tests/boards/nrf/rram_throttling/
2048+
2049+
ci_tests_zephyr_application_development_ram_context_for_isr:
2050+
files:
2051+
- nrf/tests/zephyr/application_development/ram_context_for_isr/
2052+
- zephyr/tests/application_development/ram_context_for_isr/

scripts/quarantine_zephyr.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,18 @@
260260
- nrf9160dk@0.14.0/nrf9160/ns
261261
comment: "https://nordicsemi.atlassian.net/browse/NCSDK-39227"
262262

263+
- scenarios:
264+
- application_development.ram_context_for_isr
265+
platforms:
266+
- nrf54l15dk/nrf54l05/cpuapp
267+
- nrf54l15dk/nrf54l10/cpuapp
268+
- nrf54l15dk/nrf54l15/cpuapp
269+
- nrf54lm20dk/nrf54lm20a/cpuapp
270+
- nrf54lm20dk/nrf54lm20b/cpuapp
271+
- nrf54lv10dk/nrf54lv10a/cpuapp
272+
- nrf7120dk/nrf7120/cpuapp
273+
comment: "https://nordicsemi.atlassian.net/browse/NCSDK-31980"
274+
263275
# --------------------------------- Won't fix section -----------------------------------
264276

265277
- scenarios:
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Copyright (c) 2026 Nordic Semiconductor ASA
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
cmake_minimum_required(VERSION 3.20.0)
5+
6+
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
7+
8+
project(ram_context_for_isr)
9+
10+
FILE(GLOB app_sources ${ZEPHYR_BASE}/tests/application_development/ram_context_for_isr/src/*.c)
11+
target_sources(app PRIVATE ${app_sources})
12+
13+
zephyr_include_directories(${ZEPHYR_BASE}/tests/application_development/ram_context_for_isr/include)
14+
15+
if(CONFIG_CPU_CORTEX_M_HAS_VTOR)
16+
zephyr_code_relocate(FILES ${ZEPHYR_BASE}/arch/arm/core/cortex_m/isr_wrapper.c LOCATION RAM)
17+
zephyr_code_relocate(FILES ${ZEPHYR_BASE}/arch/arm/core/cortex_m/exc_exit.c LOCATION RAM)
18+
endif()
19+
20+
zephyr_code_relocate(FILES ${ZEPHYR_BASE}/tests/application_development/ram_context_for_isr/src/main.c FILTER ".test_irq_callback" LOCATION RAM)
21+
zephyr_code_relocate(FILES ${ZEPHYR_BASE}/tests/application_development/ram_context_for_isr/src/fake_driver.c FILTER ".fake_driver_isr" LOCATION RAM)
22+
23+
# Only needed because the fake driver is defined in tests folder
24+
zephyr_linker_sources(SECTIONS ${ZEPHYR_BASE}/tests/application_development/ram_context_for_isr/sections-rom.ld)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
source "tests/application_development/ram_context_for_isr/Kconfig"
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
This sample extends the same-named Zephyr sample to verify it with Nordic development kits.
2+
3+
Source code and basic configuration files can be found in the corresponding folder structure in zephyr/tests/application_development/ram_context_for_isr.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/*
2+
* Copyright (c) 2025 Silicon Laboratories Inc.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/ {
8+
#address-cells = <1>;
9+
#size-cells = <1>;
10+
11+
fakedriver: fakedriver@e0000000 {
12+
compatible = "fakedriver";
13+
reg = <0xe0000000 0x2000>;
14+
zephyr,mutable;
15+
status = "okay";
16+
};
17+
};
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#
2+
# Copyright (c) 2025 Nordic Semiconductor ASA
3+
#
4+
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
#
6+
CONFIG_CRACEN_LIB_KMU=n
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#
2+
# Copyright (c) 2025 Nordic Semiconductor ASA
3+
#
4+
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
#
6+
CONFIG_CRACEN_LIB_KMU=n

0 commit comments

Comments
 (0)