Hi Expert,
When I checked the example code in SDK as a reference for our project feature, I found ICSS switch mode is supporting only one Enet Mac Port. But, according to SDK document, it should support 2 ports(ENET_MAC_PORT1, ENET_MAC_PORT2). Does it not support two ports yet?
The example is "examples\networking\lwip\enet_lwip_icssg\am243x-evm". In this example, EMAC Mode is "DUAL MAC" by default. I tried to change it to SWITCH Mode and set numMacPorts as 2 in the example code as below. FYI, when I changed EMAC Mode to SWITCH in syscfg, it didn't change any generated code in my compilation.
void EnetApp_getEnetInstInfo(Enet_Type *enetType,
uint32_t *instId,
Enet_MacPort macPortList[],
uint8_t *numMacPorts)
{
*enetType = ENET_ICSSG_SWITCH;
*instId = 1;
*numMacPorts = 2;
macPortList[0] = ENET_MAC_PORT_1;
macPortList[1] = ENET_MAC_PORT_2;
}
Please see the code below, Here, assert happened. "source\networking\enet\core\lwipif\src\v1\lwipifcb.c” in SDK.
Could you reproduce this at your end with enet_lwip_icssg using EMAC Mode = SWITCH and clarify the problem?
Regards,
Moonil