Ethernet Interrupt Issue

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Ethernet Interrupt Issue

244 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Rakutaro on Tue Mar 13 02:47:54 MST 2012
Hi,

I'd like to know the MAC behavior of LPC1850.
I couldn't find the topic in this forum.

I'm making an ethernet driver with the using ISR.
I'm facing a trouble for the ISR behavior.

In case of PING from PC side, it's working well.(64 bytes)
However, in case of 203bytes PING, the MAC doesn't work.
In case of 202bytes PING, the MAC is working well.

203 bytes means for the following caliculation.
payload 203 bytes
preamble 8 bytes
IP tracks 42 bytes
FCS 4 bytes

total 257 bytes

202 bytes means for the following caliculation.
payload 202 bytes
preamble 8 bytes
IP tracks 42 bytes
FCS 4 bytes

total 256 bytes

I have a concern about internal RXFIFO size limitation as 256 bytes.

I've tried the both ringed buffer and chained buffer, the results were same.

The problem looks like a related both DMA descriptor and size limitation for the internal RxFIFO with the using interrupt.

I've also checked sample code in the lpcware site, the code is using polling technic for the receive side.
It was no trouble found for any byte size. Why?

I'd like to use the interrupt for the performance.

Therefore, I'd like to know the behavior whether the MAC with interrupt is abnormality, or not.

Kindly Regards,
Raku
Labels (1)
0 Kudos
1 Reply

194 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Rakutaro on Wed Mar 14 23:08:50 MST 2012
Hi,

Regarding this issue, I've fixed it.
I've cleared both the RSF and TSF bits in the DMA Operation Mode Register.

When these bits are set to 1, the interrupt didn't occur over 203 bytes PING.
When these bits are set to 0, the interrupt occurs correctly.

Therefore, it is closed for this topic.

Best Regards,
Rakutaro
0 Kudos