Using information in previous post "AM5K2E02: Routing data through NETCP" we have successfully used Switch Port 1 (SGMII-0) on the K2E EVM development board to Tx/Rx Ethernet data without TI firmware. The test setup up is the K2E EVM transmits short UDP packets to a host PC running a UDP Echo server. This returns the packets to the K2E EVM. The configuration is as follows:
The Tx process sets PD Word 1:
strTag.srcTagHi = 0;
strTag.srcTagLo = 0;
strTag.destTagHi = 0;
strTag.destTagLo = PortNum; (where PortNum is the Switch Port number)
The Rx Flow Config Regsiters B & C are set to these values
RX_SRC_TAG_HI_SEL = 4
RX_SRC_TAG_LO_SEL = 4
RX_DEST_TAG_HI_SEL = 5
RX_DEST_TAG_LO_SEL = 4
This works.
However, if we try to Switch Port 3 (SGMII-2), then Rx fails. Tx is okay. We are using the device in a ‘non-standard’ way ie no firmware, and so the documentation does not give many clues on how to proceed. I have tried several combinations of Rx Flow Register B & C without success.
Please advise.