This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

On RPC interrupt priority

I encountered problems in developing nrf5340 with nck v1.5.0.

I use nrf_rpc_tr_init(rpc_receive_handler) to initialize an RPC and IRQ_DIRECT_CONNECT(I2S0_IRQn, 0, custom_i2s_irq_handler, 0)  to connect an I2S interrupt. When triggering  interrupt, which one of RPC and I2S has the highest interrupt priority?

Parents Reply
  • RPC is using nRF IPC. 
    In the file zephyr\dts\arm\nordic\nrf5340_cpuapp_peripherals.dtsi you see that 

    ipc: ipc@2a000 {
    	compatible = "nordic,nrf-ipc";
    	reg = <0x2a000 0x1000>;
    	interrupts = <42 NRF_DEFAULT_IRQ_PRIORITY>;
    	status = "okay";
    	label = "IPC";
    };

    in zephyr\dts\arm\nordic\nrf_common.dtsi you have 

    #define NRF_DEFAULT_IRQ_PRIORITY 1
    So RPC are working with driver with interrupt priority 1. You can also read the value from the NVIC registers
Children
Related