Content originally posted in LPCWare by lifejoker on Tue Apr 01 23:53:17 MST 2014
Hi ,i am using Lpc4357+freeRTOS+LWIP. The original source code was download from here. I made some changes in tcpecho_thread to try to test the stability of internet.
Every 1ms, i send 1k bytes data to a PC client. Lpc4357 is server.
but it always goes to HardFault_Handler after sending amount data which are not same every time. Sometimes it was hundreds Million bytes, sometimes just ended with some kilo-bytes, I didnot figure out what made it happened?
anyone could help me?
or is it the RX buffer is not big enough? And in lpc_rx_queue, there is
p = pbuf_alloc(PBUF_RAW, (u16_t) EMAC_ETH_MAX_FLEN, PBUF_RAM);
when and where p is freed?
Thanks so much .