Internet test failure base on Lpc4357+freeRTOS+LWIP

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Internet test failure base on Lpc4357+freeRTOS+LWIP

797件の閲覧回数
lpcware
NXP Employee
NXP Employee
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 .
ラベル(1)
0 件の賞賛
返信
5 返答(返信)

776件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by medake on Mon Apr 28 04:08:52 MST 2014
Dear NXP Support Team,

It is acceptable that behavior differs from toolchain to toolchain and version to version (for same toolchain).

If LPCXpresso uses GCC, then why the stable port of LWIP + FreeROTS for GCC is not provided by the NXP,
so as to develop and run complex TCP and/or threaded applications those can handle bunch of data
transactions without memory failure.

Although NXP has provided a stable port and the examples also execute fine; but it is frequently a question on the list when
it comes to applications like webserver.

I request  NXP Support Team to fix the memory bugs and provide a more stable release of LWIP + FreeRTOS
that can be used with LPCXpresso and GCC to develop more sophisticated applications using NXP platforms.

Thanks in anticipation.

Best Regards,
Mangesh Edake.
0 件の賞賛
返信

776件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by bavarian on Thu Apr 03 02:49:11 MST 2014
Sounds like a stack/heap problem.

But maybe the internet is just unstable. And this is far beyond our control   8-)

The heap managment is different from toolchain to toolchain, so examples working in a software compiled with Keil uVision might not work in software compiled with GCC.
Even different versions of one toolchain could behave differently.

Do some modifications on the heap size and check if the error characteristic changes.

Regards,
NXP Support Team.
0 件の賞賛
返信

776件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by kaikeraut on Wed Apr 02 20:43:59 MST 2014
yes i need all. it will be more helpful.
Thanks in advance :)
0 件の賞賛
返信

776件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lifejoker on Wed Apr 02 18:05:56 MST 2014
do you need all the source i download ?
0 件の賞賛
返信

776件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by kaikeraut on Wed Apr 02 05:14:29 MST 2014
can u send me the code i am going to work on same.
0 件の賞賛
返信