Krzysztof Brzeczyszczykiewicz

LPC1788 FreeRTOS+LWIP memory management

Discussion created by Krzysztof Brzeczyszczykiewicz on May 17, 2017
Latest reply on May 19, 2017 by Carlos_Mendoza

Hi, 

 

I'm trying to use webserver_freertos example from LPCOpen_v2.10, but after some requests firmware is landing into HardFault Handler.

 

After searching the internet for answer, I've encountered solution about placing descriptors and buffers into peripherial memory. Could someone tell me where these buffers are located in the source code? I've checked .map (using LPCXpresso IDE) file searching for and found a line that states that whole struct is at proper place:

 

COMMON 0x20000868 0xb4 ./lwip/src/arch/lpc17xx_40xx_emac.o
0x20000868 lpc_enetdata

I'm not entirely sure that this is the cause of the problem. If someone was struggling with packet drop due to insufficient memory with LWIP followed by HardFault, any advice is welcome.

 

Regards

Outcomes