Couple of issues discovered in lwIP port

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

Couple of issues discovered in lwIP port

Jump to solution
746 Views
michaelbrudevo1
Contributor III

Using Kinetis SDKv2 on a K64 dev kit.

 

In function ethernetif_input, status is compared against kStatus_Success in the else case.  The issue is that status can be kStatus_ENET_RxFrameEmpty, which is a valid case of data not ready, not an error.  This was causing me occasional packet loss.  Changing it to check against kStatus_ENET_RxFrameEmpty fixed it.

 

Also in ethernetif_input, the call to ENET_ReadFrame expects a contiguous buffer, which is not guaranteed.  It also incorrectly modifies the length of the packetBuffer.  Either ENET_ReadFrame needs to be aware of the pbuf structure or a temporary buffer needs to be created to fit the entire packet.  Failure to do so causes unintended memory to be overwritten.

Labels (1)
0 Kudos
1 Solution
516 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi :

We will release a new version for K64 in October, and this issue is fixed at this version.

Regards

Daniel

View solution in original post

0 Kudos
3 Replies
517 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi :

We will release a new version for K64 in October, and this issue is fixed at this version.

Regards

Daniel

0 Kudos
516 Views
lawrencemuray
Contributor I

Hi,

Is the fixed release available?

Thx,

Larry

0 Kudos
516 Views
manfredschnell
Contributor IV

Hi Michael,

this issues are already discussed.

Please have a look at https://community.nxp.com/thread/395104‌.

Best regards

Manfred

0 Kudos