Hello Ashwin, If you're using Telnet with another NetX feature, you'll have to re-use ip instance created by Telnet. In order to do that insert following lines inside your project: sf_el_nx_comms_on_comms_ctrl_t * p_extend_ctrl = (sf_el_nx_comms_on_comms_ctrl_t *) g_sf_comms.p_ctrl- p_extend; /* Ensure the IP instance has been initialized. */ status = nx_ip_status_check(&p_extend_ctrl- ip, NX_IP_INITIALIZE_DONE, &actual_status, NX_WAIT_FOREVER); if (status) while (1); In this example, status and actual_status are both UINTs. After this line, your IP instance is initialized and attached to the packet pool. Fragmentation, ARP, TCP and ICMP are also enabled so the only thing left for you to do is create FTP/TFTP/HTTP server. Make sure your media pointer is valid before initializing the server. I'm also attaching one of the old examples I did for SK-S7 on 1.0.0. The program is running Telnet server and TCP echo on two ports: (Please visit the site to view this file) Regards, Karol
↧