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.

MCU-PLUS-SDK-AM243X: Using icss-emac with two EthPhy-Ports but each with a different purpose

Part Number: MCU-PLUS-SDK-AM243X
Other Parts Discussed in Thread: SYSCONFIG

Hello,

we are planning to use our currently completely industrial ethernet based devices with two ports in a different way than currently.

At the moment we have two-port-ethernet-devices with Ethernet/IP and Profinet running. For this we use the SDK fwhals for ethernet/IP and Profinet. As I saw they also contain the loaded PRU-Code.

So our plan is to use only one port for Industrial ethernet and the other like a "normal" IP-Port for Webserver and such stuff. This means that the lwIP-Stack will be the only stack accessing this port.

Beforehand please notice we do not use SysConfig anymore but our own driver-configuration-interfaces for the SDK-drivers.This means we are dynamically connecting ICSS-EMAC, PRU and eth-phys in runtime-code. It is not statically created. So we have some more possibilities here.

As I understood the icss-emac is capable of managing two ethernet-phys. but it uses only one pru-instance. So the question is will this even be possible if we have for example loaded a profinet-pru-code into the pru? If so, what needs to be done to achieve this?

Another option I thought about: we are currently only using ICSS1 is it possible without any hardware-change to just also use ICSS0 and load the "ip-only" pru-code into this instance, then only connect ethphy0 to icss0 and ethphy1 to icss1?

Or are there even other options? Maybe also via VLAN?

Best regards

Felix

  • Hi Felix,

    Apologies for delay in response.

    Let me just confirm if I follow you correctly,

    1. You want to use profinet with single port

    2. Second port you want to use with oether than profinet

    As I understood the icss-emac is capable of managing two ethernet-phys. but it uses only one pru-instance. So the question is will this even be possible if we have for example loaded a profinet-pru-code into the pru? If so, what needs to be done to achieve this?

    I am not sure if I folow this , Can you please explain. Also I let me check internally if above two points are possible.

    Another option I thought about: we are currently only using ICSS1 is it possible without any hardware-change to just also use ICSS0 and load the "ip-only" pru-code into this instance, then only connect ethphy0 to icss0 and ethphy1 to icss1?

    No, If you do not have ICSSG0 pins brought out on board then it will not possible without HW change. Do you have CPSW connected to PHY, you can use it have ip port.

    BR

    Nilabh A.

  • Hey Nilabh,

    1. and 2. are right, exactly.

    For explanation:
    In my understanding, the profinet_device_rt_mrp_mii_icss_fwhal.am243x.r5f.ti-arm-clang.release.lib and ethernetip_adapter_mii_icss_fwhal.am243x.r5f.ti-arm-clang.release.lib contain both the pru-code which will be loaded to the pru. I was thinking if it is possible to use the two Eth-Ports differently, one for PNt and one for simple IP with the same already existing PRU-Code.

    Thanks for clarifying that this won't be possible without any hw-change with the other approach.

    Best regards

    Felix

  • Hi Felix,

    thanks for explanation, it aligns with my perception also. profinet fw and EIP fw are switch firmware. The fw loaded in both PRU enable this switching feature. Single port support in these fw is not validated by TI, neither do we have plans.

  • Hey Nilabh,

    ok, if it won't work with these firmwares directly, is it maybe possible to use VLAN for that? I saw in the drivers there are some VLAN-params for the icss-emac

  • Hi Felix, 

    Icss emac does not support vlan feature.

  • hey Nilhab,

    for us this feature is mandatory so we need it to be implemented. In agreement with Ming we decided to escalate this topic.

    Best regards

    Felix

  • Hi Felix,

    I will be closing this ticket please feel free to create a new ticket for other info.

  • Please ignore the previous reply, we are discussing this internally with the teams.

  • Hi Felix,

    We have a JIRA ticket filed for this new feature: MCUREQ-2793. Here is the feedback from the SW team:

    --------------

    Requirement is to use Profinet switch to process packet on one port and MAC firmware on other
    Effort to use Single PRU for TX and RX for profinet and Need to re arrange the Shared memory allocation.
    Need to review any design constraints with Profinet implementation.

    Proposal : To use Two icssg instances for Profinet single port implementation and MAC implementation. Open point is to whether we need standard example showcasing the use case to use two netif with different ICSS instance.

    -------------

    Current this JIRA ticket is schedule for MCU+ SDK for AM243x 09.00.00. The actual schedule may be delayed. We will update you whenever there are new updates.

    Best regards,

    Ming