RPMsg not working on PRU1

Hello,

I have problems with receiving remoteproc messages on PRU1. The code works fine when configured and executed on PRU0, but PRU1 never receives any interrupts (event numbers set for each PRU accordingly).
I modified examples PRU_RPMsg_Echo_Interrupt0 and PRU_RPMsg_Echo_Interrupt1 to flip I/O pins with LEDs whenever interrupt comes.

On PRU0 example works as expected. Each time a message comes, the LED switches state. However, example for PRU1 behaves like it never receives any interrupts from ARM host. In my application I’m using interrupts to signal PRU1 from PRU0, and hey work fine.

Has anybody been able to resolve this issue?

I’m running kernel 4.14.94-ti-r93 on Debian Image 2019-01-27, with PRU tools installed by ti-pru-cgt-installer 2.1.5-0rcnee1~stretch+20180514

Regards,
Jacek.

Did you change the interrupt numbers?

`
/* The PRU-ICSS system events used for RPMsg are defined in the Linux device tre
e

  • PRU0 uses system event 16 (To ARM) and 17 (From ARM)
  • PRU1 uses system event 18 (To ARM) and 19 (From ARM)
    */
    #define TO_ARM_HOST 18
    #define FROM_ARM_HOST 19

`

Regards,
Dimitar

I did. I even ran examples provided by TI, and the one for PRU1 does not work.

Jacek.

Did you also update the interrupt map:

`
struct ch_map pru_intc_map[] = { {18, 3},
{19, 1},
};

`

Did you check that your PRU1 core is actually running and can drive the LED? For example, toggle the LED without rpmsg with a simple loop and delay.

Regards,
Dimitar