lpc_enetif_input HardFault

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

lpc_enetif_input HardFault

998 次查看
elmarwieser
Contributor I

Hello,

 

we have unreproduceable hardfaults in function lpc_enetif_input which occur randomly from 1 to 5 days.

 

void lpc_enetif_input(struct netif *netif)

{

                struct eth_hdr *ethhdr;

 

                struct pbuf *p;

 

                /* move received packet into a new pbuf */

                p = lpc_low_level_input(netif);

                if (p == NULL) {

                               return;

                }

 

The p pointer seems to be valid (0x20003c60) but has an invalid next pointer (0x8e8e1e60).

 

Heap and Stack seems to be okay (half filled while debugging the hardfault).

We are thinking about problems with the DMA controller / configuration, but cannot find the problem yet. Can anybody give us a hint?

 

System Configuration:

NO_SYS  = 1, LPC1778, DMA, no external RAM, IRAM1 0x10000000 Size 0x10000, IRAM2 0x20000000 Size 0x8000, lwip 2.0.3, Stack Size:  0x1E00,Heap Size: 0x6000

 

Lwipopts.h (https://pastebin.com/1vihHC31)

 

 

best regards

Elmar Wieser

标签 (1)
0 项奖励
回复
1 回复

878 次查看
jeremyzhou
NXP Employee
NXP Employee

Hi Elmar Wieser,

Thank you for your interest in NXP Semiconductor products and 
for the opportunity to serve you.

I'd like to know which demo you use, and I was wondering if you can share a build-able demo and it will be appreciated if you can introduce how to replicate the issue.

Have a great day,
TIC

 

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复