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 PRU Edge Interrupt

We are in the process of setting up a board running Linux that will support Ethercat and I noticed that the PRU Ethercat firmware is using edge interrupts.  Looking at the am335x_pru_package it supports pulse only.  In order to use edge interrupts is it necessary to map the PRU interrupts to gpio pins?

  • Hi Michael,
     
    This has been escalated to the factory team.
  • Hi,

    >In order to use edge interrupts is it necessary to map the PRU interrupts to gpio pins?

    Not sure I understand this - is there any specific interrupt you are referring to here? It is not required to map interrupts to GPIO pins to use edge interrupt.

    PDI and SYNC0/1 interrupts from PRU-ICSS are directly connected to ARM INTC.

    For your original question, it will be good to adapt am335x_pru_package implementation to align with sdk\os_drivers\src\osdrv_pruss.c or pruss_drv.c (older SDKs). This handles setting edge/pulse interrupt type selection at PRU-ICSS INTC

  • Thank you for the quick response.  I have modified the am335x_pru_package to support edge triggering.  I tested by sending an interrupt when an input put pin on the PRU went high and it worked in both pulse and edge.  Now I'm just in the process of getting the ETHERCAT firmware to work.

     

    Thank you again for your help

    Mike Donahoe