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.

AM3359: Profinet PRU driver question

Part Number: AM3359

Is it possible with the PRU Driver for Profinet IRT from the industrial development kit PRU-ICSS-Profinet_Slave_01.00.00.00 to disable the CPM Mashine and process all incomming data telegrams by myself ?

I want to build a Profinet RT Device (no IRT) and there I want to be able to handle all telgrams by my own stack. It is not possible to use the EMAC-Switch driver for that purpose, because the switch forwards all mutlicast frames. For Profinet e.g. LLDP Frames must not be forwarded to the other switch port. For this purpose the PRU-Profinet driver has an own forwarding filtering table. Unfortunately this table works only with the profinet driver and not with the emac-driver.

Either it is possible to use the emac-driver with the multicast forwarding table or it is possible to disable the CPM and PPM machine in the profinet driver and get all telgramms delivered to the ARM-Processor

Thanks for your Help

Matthias

  • The software team have been notified. They will respond here.
  • Matthias,

    The CPM/PPM management APs are available at protocols/profinet_slave/docs/doxygen/html/group___p_n___c_p_m___p_p_m___m_a_n_a_g_e_m_e_n_t.html
    And I suspect the PN_cpmIsrHandler will not be triggered if you disable CPM machine in firmware, i.e. the host will not get notification of packets being received, see the Normal CPM RX case graph at protocols/profinet_slave/docs/doxygen/html/i_p_n_drv_8h.html

    The emac switch firmware is now open source at pdk_am335x_1_0_8\packages\ti\drv\icss_emac\firmware\icss_dualemac and firmware\icss_switch, and you may look into it and add multicast filtering table for your application. The design document ICSS_SWITCH_Firmware_Design_Guide.pdf is at C:\ti\pdk_am335x_1_0_8\packages\ti\drv\icss_emac\firmware\icss_switch\docs

    Regards,
    Garrett
  • Thanks for the answer. I will have a look at teh emac driver

    Matthias