8 years, 5 months ago.

ethernet for mbed board

I've LPC1768 mBed mounted on application board that has inbuilt RJ45 ethernet connector. I am trying out following code but not getting IP address. It is taking lot of time in connect() and returning blank address then after.

EthernetInterface eth; eth.init(); eth.connect(); printf("IP Address is %s\n", eth.getIPAddress());

Above code I copied from handbook example.

I've also tried below handbook examples, but eth.receive() always returns 0. https://developer.mbed.org/handbook/Ethernet

I've connected via router & direct connection as well. I'm not sure LED should glow as it glows when ethernet cable is connected with PC / laptop.

Please help me to solve this issue.

Thanks for concern.

Be the first to answer this question.