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.

TMDSICE3359: Disabling one port with PRU-ICSS-EthernetIP Adapter

Part Number: TMDSICE3359

Hi,

I tried to disable a port with the ICSS_EmacUpdatePhyStatus() function to signal the firmware that the port hasn't a link. But I have two problems with it:

  1. the PRU switch is still switching telegramms from one port to the other
  2. the icss driver somehow still tries to send them through the disabled port (discarded packet counter rises)

Is there another solution to disable one port? Maybe something like "deactivating one PHY for the PRUs".

Thanky you in advance and best regards,
Stefan

  • Hi

    • the PRU switch is still switching telegramms from one port to the other
    • the icss driver somehow still tries to send them through the disabled port (discarded packet counter rises)

    If "icssEmacHandle->object->linkStatus" for the appropriate port is 0, the driver should not send packets. Can you confirm this?



    You should also call following IOCTL to disable the port. Use appropriate argument for third argument in ICSS_EmacIoctl() API call.

                ioctlvalue = ICSS_EMAC_IOCTL_PORT_CTRL_DISABLE;
                ioctlParams.ioctlVal = &ioctlvalue;
                ICSS_EmacIoctl(icssEmacHandle, ICSS_EMAC_IOCTL_PORT_CTRL, (uint8_t)ICSS_EMAC_PORT_1, (void*)&ioctlParams);

    Regards
    Dhaval Khandla
  • Hi Dhaval,

    thank you for your swift response. It looks better now, but there is still one small issue:

    • I deactivate port 1
    • no telegrams can be send from port 1 to port 2 --> Expected
    • but the telegrams from port 2 to port 1 can be seen on port 1 --> not expected

    Is there anything I can do to change this behaviour?

    Thank you in advance and best regards
    Stefan

  • Hi
    We are able to recreate this issue on our side. We will respond further after more investigation.

    Regards
    Dhaval Khandla