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.

connecting a c6670 evm to pc

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  

  • Alaa,

    The PA EMAC examples did not program the EVM PHY. Because the examples are board independent to be able to run on any platform. To use the RJ45 you need to program the PHY.

    In the E2E forum link below you will find information and code on how to modify the multicore example to work with the RJ-45.
    http://e2e.ti.com/support/dsp/c6000_multi-core_dsps/f/639/p/196299/700615.aspx#700615