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.
Hi experts,
I already made it to send ethernet packets out of the SGMII1 port of the EVM.
Now I try to receive packets from the ethernet and it seems that the packets I send arrived at the Gigabit Ethernet Switch (receive counter register increases and destination mac is added to the ALE).
But the interrupt does not occure and so I cant reach the data which are send to the DSP.
Can anyone help me?
Best reagrds Frank
Frank,
Did you have to modify the PA_emacExample?
Any other details specific to your setup?
Hi Varada,
I just modified the cpswLpbkMode to cpswLpbkMode = CPSW_LOOPBACK_NONE;
The setup is the following the EVM board is directly connected to an laptop which receives the packets from the DSP (sniffed with wireshark)
I tried to send the same packets back to the DSP with the program packeth.
The pdk i use is the pdk_C6670_1_0_0_21.
regards Frank
Hello Frank,
Has the RX data arrived in the buffer “pHostDesc->buffPtr” ?
Have you disable the interrupts ? In the file ‘cppi_qmss_mgmt.c’, the interrupts are mapped to a vector and enabled. Also in the file ‘cpsw_example.cfg’ , the group is enabled with ECM module.
If not then I do not see why it is not able to trigger interrupts. I will have an expert take a look too.
Hi Varada,
it seems that this problem is solved.
The major failure was between my ears........
I didn't set the ARP-table of the pc which was sending the packets to the DSP so the ethernetcard of the pc discarded the packets I think.
best regards Frank
Frank,
Yes – ARP entry will be needed to map IP to the EVM’s mac address. Glad to know the problem is now resolved.
I expect your program works fine now.
Dear guys,
anyone can give me some detail about how to make PC-to-EVM via RJ45 works when using PA_emacExample?
I have done my step-by-step sequence in here:
http://e2e.ti.com/support/dsp/c6000_multi-core_dsps/f/639/p/196299/917764.aspx#917764
Dear experts,
I've just update my PDK to version 1.1.2.6 and also the CCS to version 5.3.
I noticed several changes on pa_emacExample like:
- c6678mode has been removed
- Init_Cpws:init_SGMII >>> in here, only SGMII-1 (RJ45) which will be initialized when we don't use simulator, so that's a great update, because now everyone don't have to face an SGMII link up error, because now if users only want to use EVM (not simulator), automatically configured for RJ45 port.
- Setup_PASS:Add_MACAddress >>> now, the input EMAC port for the default is pa_EMAC_PORT_1 (RJ45 port)
- SendPacket >>> psFlags now dependent on cpswSimTest state, not hardcoded on 0x1 (AMC Port) or 0x2 (RJ45).
It is easy now for everyone on this PDK revision to send packet to others (PC or EVM) using RJ45 cable just by a little modification to cpswLpbkMode = CPSW_LOOPBACK_NONE. But, it doesn't work otherwise. Still, i can't make the EVM to receive the packet sent by any UDP packet generator I am using (Packeth, Ostinato etc).
Any help appreciated
Thank you