HardFault_Handler in LWIP

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

HardFault_Handler in LWIP

469 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by gbg on Tue Feb 17 14:01:42 MST 2015
Hi
when i add LWIP to my project , i get HardFault_Handler on File Lpc17_emac.c on function lpc_low_level_input and in line :

/* Re-queue the pbuf for receive */
lpc_enetif->rx_free_descs++;


stack size is 0x2500


my SCT file is :

LR_IROM1 0x00000000 0x00080000  {    ; load region size_region
  ER_IROM1 0x00000000 0x00080000  {  ; load address = execution address
   *.o (RESET, +First)
   *(InRoot$$Sections)
   .ANY (+RO)
  }
  RW_IRAM1 0x10000000 0x00010000  {  ; RW data
   .ANY (+RW +ZI)
  }
  RW_RAM1 0xA0000000 UNINIT 0x02000000  {  ; RW data
   * (VRAM, GUI_RAM, GUIDEMO_STACK, FS_RAM, IP_RAM, USB_RAM)
    lpc17_emac.o (+RW, +ZI)
mem.o (+RW, +ZI)
memp.o (+RW, +ZI)
  }
}


LPC1788 and Lan8720 and 32MB ram and lwip 1.4.0 and emwin

Please Help me
Thanks
Labels (1)
0 Kudos
1 Reply

375 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by gbg on Tue Feb 17 17:24:31 MST 2015
I deactive DHCP change this line :
#define LWIP_DHCP                       0

now HardFault happen in line 412 : lpc_enetif->rxb[idx] = NULL;
i read this http://www.lpcware.com/content/forum/lwip-hardfault ,but i dont khow how fix it , in this link not found http://sw.lpcware.com/?p=lwip_lpc.git&a=blobdiff&h=c46e55d351ff4057d6d83e22ccd359e55b31becf&hp=9fb72...


i attach my lpc17_emac.c

0 Kudos