Hello!
I'm trying to run HTTP-server on my LPC1788 board. lwip stack works fine. But when I try to run http-server under RL-ARM programm doesn't start at all. I included to my project follow files: EMAC_LPC177x_8x.c, Net_Config.c, TCP_CM3.lib, TCPD_CM3.lib (and corresponding headers Net_Config.h, EMAC_LPC177x_8x.h). Here my program:
include "LPC177x_8x.h" #include "debug_frmwrk.h" #include "RTL.h" int main (void) { SystemInit(); debug_frmwrk_init(); _DBG_("Started!"); init_TcpNet (); while (1) { main_TcpNet(); } }
I want just to try ping my board from my PC Ethernet. Do you mind to explain to me what is wrong?
Regards, Vasilij.
debug_frmwrk_init();
You're not mixed TCPNet and lwIP, are you (ho, I think you do) ?
I didn't mixed lwip and RL-ARM/ I just checked my hardware with it. debug_frmwrk_init() - it's just some uart routines for debugging. So should I call timer_tick() by timer? But why program don't start at all& I dont see "Started!" in uart (_DBG_("Started!"); send it). If I remove commands init_TcpNet () and main_TcpNet() it does.
You should follow the integration instruction as they appear on this very site. I cannot tell why your controller does not start. Having said that, lwIP is much faster than TCPNet, particularly when uploading (sending) data (on a LPC2478/LPC1788, 220+[KB/s] vs. 5[KB/s]), and it's free...
May be it will be easier to understand if you see my project: dl.dropbox.com/.../rlArmWeb.zip
Thank you for your help! Does there exist some samples project where TcpNet from Rl-arm are implenented?
Of course there are samples - in your own installation path of the Keil toolchain. See here:
..\Keil\ARM\Boards\Keil\MCB2470\RL\TCPnet