This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

RL-ARM http-server

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.

Parents
  • Well here my programm:

    void webServerTsk (void *pvParameters)
    {
            init_TcpNet ();
            socket_tcp = tcp_get_socket (TCP_TYPE_SERVER, 0, 10, tcp_callback);
            if (socket_tcp != 0) tcp_listen (socket_tcp, 80);//PORT_NUM
            for(;;)
            {
                    timer_poll ();
                    main_TcpNet ();
                    if(flag == 1)
                    {
                            send_data (socket_tcp);
                            main_TcpNet ();
                            send_data (socket_tcp);
                            flag = 0;
                    }
                    portYIELD();
            }
    }
    

    It still doesn't work. Any idea?

Reply
  • Well here my programm:

    void webServerTsk (void *pvParameters)
    {
            init_TcpNet ();
            socket_tcp = tcp_get_socket (TCP_TYPE_SERVER, 0, 10, tcp_callback);
            if (socket_tcp != 0) tcp_listen (socket_tcp, 80);//PORT_NUM
            for(;;)
            {
                    timer_poll ();
                    main_TcpNet ();
                    if(flag == 1)
                    {
                            send_data (socket_tcp);
                            main_TcpNet ();
                            send_data (socket_tcp);
                            flag = 0;
                    }
                    portYIELD();
            }
    }
    

    It still doesn't work. Any idea?

Children