This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[AM335x] Unable to receive PWM interrupt on PRU

Setup:

ARM, PWM and PRUSS

Steps:

1. PWM configured from ARM processor for 125 usec interrupts

2. PRU interrup controller configured to received the PWM interrupt on Host interrupt 0

Issue:

I don't receive any PWM interrupt on the PRU, though  on registering ISR for PWM on  ARM i receive interrupt on ARM.

Details:

For configuration of PRU interrupt controller, i have used PRU DRV library on ARM side. I have tweeked this library to map the PWM interrupt  to Channel 0  => to host 0.

On PRU side i am polling on the Register 31's bit 30 and 31.

I can send/recieve interrupts from ARM to PRU using the examples provided in am335x_pru_package/pru_sw/example_apps) but cannot recived interrupts on PRU from peripherals eg. PWM, CAN.

It looks that for peripheral system events, something more needs to be done which is not done by PRUSS driver library(libprussdrv).

If there is any working example involving the timers interrupts to PRU, that can also help me debug it further.

Rgds,

Anil