I want use RL TCPnet on lpc2368. I use it such as this example: www.keil.com/.../rlarm_tn_using_tcpsoc_example.htm
GSM module connect via COM, because, I implemet next functions in my programm:
void init_serial (void) BOOL com_tx_active (void) int com_getchar (void) BOOL com_putchar (U8 c)
I can tested work thouse functions via send AT-command to GSM module - it's OK!
I have two problem:
1. On run, my program hung on call function "init_TcpNet". Why it's may be?
2. If commented "init_TcpNet", programm is run, but functions com_getchar and com_putchar don't call from TCPnet library. Why? And result of functions "tcp_get_state" is TCP_STATE_SYN_SENT (SYN packet sent to establish a connect) on step 2 and 3 (see "soc_state" in example www.keil.com/.../rlarm_tn_using_tcpsoc_example.htm).
Thank you!
I'm on define PPP_ENABLE to '1', and TCPnet start call "com_getchar", but "init_TcpNet" hung my programm...
Looping on main_TcpNet
getchar result: +CREG: 1,"6C20","A483" CREG: 2,2
Have you made sure you have suitable heap space for the TCP/IP code?
Yes... project compiling and runs...
Not sure what you are answering there. That the project compiles and runs aren't the same thing as it having enough heap or stack space.
On the other hand, your first post most definitely indicates that it does not run correctly - you write "On run, my program hung on call function "init_TcpNet".
Where I can see source code of function "init_eth_link" from TCP_ARM_L.lib? My program is down here...