LPC 1788 Ethernet configuration using RTOS

Thread Starter

morethegr8

Joined Feb 14, 2011
31
I am using LPC1788 cortex M3 micro controller and trying to configure its ETHERNET port by using CMSIS RTOS2 RTX5.
Peripherals like UARTS, TIMERS and GPIO's work well using RTOS2 RTX5.
But was unable to start ethernet.
I'm using Waveshare Open1788 Eval board to run the code with LAN8720 ethernet.
Link:https://www.waveshare.com/open1788-standard.htm

microcontroller - LPC1788 M3
Phy IC - LAN8720
Driver - ETH MAC 0
Interface - RMII
IDE and Compiler - Keil microvision-5
software development suite - MDK-Plus
RTOS - RTOS2 RTX5 version 5.5.0

I have attached c files and Configuration setting which i use in my project.

When i call the function netInitialize(); from main() it returns "netOK".

After that i give a call to netTCP_GetSocket function and passing "tcp_cb_server" call back function as an argument it as below

tcp_sock = netTCP_GetSocket(tcp_cb_server);
if (tcp_soo itck > 0) {
netTCP_Listen(tcp_sock, 2000);
}

I am getting tcp_sock = 1,
I am checking status of the socket created "tcp_sock" using function
socket_status = netTCP_GetState(tcp_sock);
it returns me "netTCP_StateLISTEN"
means socket is listen mode.
but when I try to connect through Hyperterminal unable to established a connection
Please find attached code and configuration settings.
HELP NEEDED ON HIGH PRIORITY.

THANK YOU ..
 

Attachments

Top