SPIM4 IRQ Handler in SDK v2.7.0

Hello Nordic Team,

I am currently implementing low-level SPI communication using SDK v2.7.0 and nRF 5340dk . Could you please let me know the name of the IRQ handler for SPIM4?

In version 52 Board , I used the SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1_IRQHandler to handle SPI1 interrupts, but I couldn’t find the corresponding handler for SPIM4 in this version.

Looking forward to your guidance.

Best regards,
kelk.

Parents Reply
  • hello,

    i used this:

    #define SPIM_INST_IDX 4
     
        IRQ_CONNECT(NRFX_IRQ_NUMBER_GET(NRF_SPIM_INST_GET(SPIM_INST_IDX)), IRQ_PRIO_LOWEST,
                    NRFX_SPIM_INST_HANDLER_GET(SPIM_INST_IDX), 0, 0);
        
      
       
    and i received this Error:
    ASSERTION FAIL [p_cb->handler] @ WEST_TOPDIR/modules/hal/nordic/nrfx/drivers/src/nrfx_spim.c:948
    [00:00:00.425,567] <err> os: r0/a1:  0x00000004  r1/a2:  0x000003b4  r2/a3:  0x00000003
    [00:00:00.425,598] <err> os: r3/a4:  0x00000004 r12/ip:  0x00000014 r14/lr:  0x0000612b
    [00:00:00.425,598] <err> os:  xpsr:  0x2900001a
    [00:00:00.425,598] <err> os: Faulting instruction address (r15/pc): 0x0000913e
    [00:00:00.425,628] <err> os: >>> ZEPHYR FATAL ERROR 4: Kernel panic on CPU 0
    [00:00:00.425,659] <err> os: Fault during interrupt handling
    
    [00:00:00.425,659] <err> os: Current thread: 0x20000708 (unknown)
    [00:00:00.493,743] <err> os: Halting system
Children
Related