Skip to content

Commit 0359f37

Browse files
nordic-krchkartben
authored andcommitted
tests: kernel: gen_isr_table: Fix test for nRF VPR targets
Test was using interrupt lines which does not exist on nRF VPR targets. nRF54Lx FLPR has interrupts >= 16 and nRF54Hx PPR does not have interrupt 17. Added configuration which works for nrf54h20_cpuppr and nrf54lx_flpr. Signed-off-by: Krzysztof Chruściński <[email protected]>
1 parent db8a47a commit 0359f37

File tree

1 file changed

+15
-4
lines changed
  • tests/kernel/gen_isr_table/src

1 file changed

+15
-4
lines changed

tests/kernel/gen_isr_table/src/main.c

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,21 @@ extern uint32_t _irq_vector_table[];
2020

2121
#if defined(CONFIG_RISCV)
2222
#if defined(CONFIG_NRFX_CLIC)
23-
#define ISR1_OFFSET 15
24-
#define ISR3_OFFSET 16
25-
#define ISR5_OFFSET 17
26-
#define TRIG_CHECK_SIZE 18
23+
24+
#if defined(CONFIG_SOC_SERIES_NRF54LX) && defined(CONFIG_RISCV_CORE_NORDIC_VPR)
25+
#define ISR1_OFFSET 16
26+
#define ISR3_OFFSET 17
27+
#define ISR5_OFFSET 18
28+
#define TRIG_CHECK_SIZE 19
29+
#elif defined(CONFIG_SOC_NRF54H20_CPUPPR)
30+
#define ISR1_OFFSET 14
31+
#define ISR3_OFFSET 15
32+
#define ISR5_OFFSET 16
33+
#define TRIG_CHECK_SIZE 17
34+
#else
35+
#error "Target not supported"
36+
#endif
37+
2738
#elif defined(CONFIG_RISCV_HAS_CLIC)
2839
#define ISR1_OFFSET 3
2940
#define ISR3_OFFSET 17

0 commit comments

Comments
 (0)