What do you mean by testing on Data Link Layer?
I am looking for an explanation for the ethernet communication process in LPC
I tried to figure out the process from the user manual of LPC 1768 but its not very clear for me to debug my issue
Which is very much related to the ethernet MAC driver
As far as I understood the transmission process it works as
/* Save size of packet, descriptor is not last */
lpc_enetif->ptxd[idx].Control = ENET_TCTRL_SIZE(q->len) | ENET_TCTRL_INT |
ENET_TCTRL_LAST;
lpc_enetif->txb[idx] = p;
Activating the packet transfer complete interrupt in control register
Also the last segment interrupt activated
lpc_enetif->ptxd[idx].Packet = (u32_t) q->payload;
Packet section is uploaded by the payload
idx = Chip_ENET_IncTXProduceIndex(LPC_ETHERNET);
and the TXProducer index is incremented to indicate the TXConsumer buffer maintained by the hardware to consume the packet and send it out on the datalink layer
and after the segment is been send by the hardware it triggers an TxDoneInt interrupt which is been handled in the ETH_IRQHandler
My question is :
If the hardware segment transfer is only triggered by increasing the producer index how is it possible than there is an TXunderrun which is according to the user manual
The transmission fragment data is not available when the Ethernet block has already
started sending the frame. This is a nonfatal error. An Underrun status will be returned
on transfer and the TxError bit in IntStatus will be set.
It will be very helpful for mw to debug this issue if you explain me these points
Mit freundlichen Grüßen
Best regards
Ankish Sharma
Software Development
Helmholz GmbH & Co. KG
Hannberger Weg 2
91091 Großenseebach
Germany
Phone: +49 9135 7380 - 0
Fax: +49 9135 7380 - 110
E-Mail: Ankish.Sharma@helmholz.de<mailto:Ankish.Sharma@helmholz.de>
Internet: www.helmholz.de<http://www.helmholz.de>;
Reg. Gericht Fürth (Bay.) HRA 10671
Persönlich haftende Gesellschafterin Helmholz Verwaltungs GmbH
Reg. Gericht Fürth (Bay.) HRB 15642
Geschäftsführer: Carsten Bokholt, Karsten Eichmüller