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.

EVMK2H PA EMAC Problem

hi. everyone
I want to send and receive packets between the PC and the EVM.

=====================================================================
using project : PA_emacExample_K2HC66BiosExampleProject
test environment : The RJ45 of the EVM was connected directly to the PC.
                   PC IP Address => 192.168.1.10
                   RJ-45 Link LED : Orange(GIgabit) and sometimes blinking RX LED
=====================================================================
The example source was modified as follows:

1. cpsw_singlecore.c
   : cpswSimTest = 0
     cpswLpbkMode = CPSW_LOOPBACK_NONE;
  SendPacket(dest_emac_port_id) => SendPacket(0)

2. cpsw_mgmt.c
    NUM_MAC_PORTS : 2
    Init_SGMII_SERDES()  : lpbk_mode = CSL_SERDES_LOOPBACK_DISABLED;

3. pa_mgmt.c
    Add_MACAddress() : ethInfo : des mac{0x10, 0x11, ..., 0x5} => my PC Mac address

4. framework.c
   pktMatch[] : dst mac : 0x10, 0x11, 0x12...  => my PC Mac address
=====================================================================
and build and load/run
Thus, results were as follows:

CSL_CPSW_getStats after Packet Transmission ...
Stats for block number: 0
********************************************
 Good Frames Received                      10
 Total Received Bytes in Good Frames       1260
 Sum of all Octets Tx or Rx on the Network 1260
********************************************
Stats for block number: 1
********************************************
 Good Frames Sent                          10
 Total Transmitted Bytes in Good Frames    1260
 Total Tx&Rx with Octet Size of 65 to 127  10
 Sum of all Octets Tx or Rx on the Network 1260
********************************************

QUESTION
1. not loopback mode
   What means "Good Frame Received"?
  
2. WHY?
   PC does not receive the packet

3. Where is wrong with the source code?


Can anyone help?

Thanks

  • Hi,

    The emacExample on PA LLD examples directory does not program the EVM PHY. That is because the examples are board independent to be able to run on any platform. To use the RJ45 you need to program the PHY. The similar discussion happens in the keystone I based device already,please find the details and solution in the following E2E threads,
    http://e2e.ti.com/support/dsp/c6000_multi-core_dsps/f/639/p/202083/719489.aspx#719489
    http://e2e.ti.com/support/dsp/c6000_multi-core_dsps/f/639/p/196299/700615.aspx#700615
    http://e2e.ti.com/support/dsp/c6000_multi-core_dsps/f/639/t/205299.aspx

  • Hi,
    I believe that, now you understand the MCSDK based PA test code required to modify as per your requirement. And also the mentioned E2E post will help you. You can comeback, If you have further follow-up on this. Otherwise please help to close this thread.