lpcware

HardFault_Handler in LWIP

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
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

Outcomes