9 years, 11 months ago.

EthernetInterface on K64F: connect() returns -1

Over the weekend I saw that the EthernetInterface library was updated to include support for the FRDM-K64F device.

I pulled together a project, based on the TCPServerEcho example, provided on the Handbook->Socket page.

I have noticed that the init() function is returning -1, regardless of whether I am attempting to initialize the interface to be static or DHCP.

I have tried extending the default connect() timeout value, from 15 to 60 seconds...no happy.

The funny thing is that I had run this same application late Saturday evening, in my home office, using a cross-over cable connected to my laptop. the Echo server seemed to work. I was using static IP addressing at the time and had no reason to check the return value of connect().

Any thoughts would be greatly appreciated.

Thanks, Cameron

1 Answer

9 years, 11 months ago.

Cameron,

From what I understand, the Ethernet interface to the K64F is not ready yet. Soon I'm told....

http://mbed.org/questions/3101/K64F-EthernetInterface-library-and-Watch/

...kevin

Interesting...Over the weekend I had found the below posting.

http://mbed.org/forum/mbed/topic/4874/

This posting is what had lead me to believe it was up and running. Maybe I need to be more patient...

Thanks for the feedback

posted by Cameron Haegle 28 Apr 2014