Couple of issues discovered in lwIP port

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Couple of issues discovered in lwIP port

跳至解决方案
1,602 次查看
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.

标签 (1)
0 项奖励
回复
1 解答
1,372 次查看
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 项奖励
回复
3 回复数
1,373 次查看
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 项奖励
回复
1,372 次查看
lawrencemuray
Contributor I

Hi,

Is the fixed release available?

Thx,

Larry

0 项奖励
回复
1,372 次查看
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 项奖励
回复