Hi,
i'm using EVM c6670 and i'm trying to send packets from it to my laptop. i used the PA emac example project with some modifications to reach my goal
my modifications are:
1- I Set cpswSimTest = 0;
2. I Set cpswLpbkMode = CPSW_LOOPBACK_NONE;
3. I Set cpswEvm6678 = 1 (I'm using C6670, but If set this var to 0, then always got stuck when linking up the emac port0)
Int cpswSimTest = 0;
Int cpswLpbkMode = CPSW_LOOPBACK_NONE;
Int cpswEvm6678 = 1;
4. on Init_CPSW, the EMAC Port initialization start at 1 (EMAC Port-1 connected to RJ-45), because I don't want to use AMC connected EMAC Port-0.
for (macPortNum = 1/*0*/; macPortNum < NUM_MAC_PORTS; macPortNum++)
{
/*.....codes.....*/
}
5. on Send_Packet(), I changed the psFlags to 0x2, because I read that 0x1 would configure EMAC Port-0 and 0x2 for EMAC Port-1.
6. on Send_Packet(), on pktMatch (main data and payload), I changed the MAC header, specifically, I changed the MAC destination with my laptop's NIC MAC Address. I left the rest on default.
but my output is:
an infinite loop started and got stuck .....
any help please . Thanks in advance