Interrput line number configuration nRF5340

Hi, 

I faced some issues regarding multiple IRQ_CONNECT being onvoked on the same irq and I went into this post : 

LPUART nRF5340 fatal error - Nordic Q&A - Nordic DevZone - Nordic DevZone (nordicsemi.com)

Does it means that any <PERIPHERAL>X interrput can be re-routed to any <PERIPHERAL>Y line? 

For instance, I use TWIM0, and I assume following code is not valid : 

&i2c0 {
    compatible = "nordic,nrf-twim";
    status = "okay";
    pinctrl-0 = <&i2c0_default>;
    pinctrl-1 = <&i2c0_sleep>;
    pinctrl-names = "default", "sleep";
    // re-route to TWIM1 interrupt
    interrputs: <9 5>
};
What about replace &i2c0 by &i2c? I would need some clarification on this point, as the post doesn't really explain why moving GPIOTE0 interrupt line to GPIOTE1's one works.
Thank you in advance
Parents
  • If you read the PS carefully, you will see that multiple peripherials share address space. That includes the IRQ line.

    You can only use one of the instances - either UART, SPIM,SPIS or TWI.

    The UART0 is used by multiple examples, so try i2c1 or i2c2 in your dts or overlay file.

    You can inspect the combined dts in the build/zephyr subdir, it should enable ("okay") only one of the peripherials with the same address.

Reply
  • If you read the PS carefully, you will see that multiple peripherials share address space. That includes the IRQ line.

    You can only use one of the instances - either UART, SPIM,SPIS or TWI.

    The UART0 is used by multiple examples, so try i2c1 or i2c2 in your dts or overlay file.

    You can inspect the combined dts in the build/zephyr subdir, it should enable ("okay") only one of the peripherials with the same address.

Children
Related