4 years, 11 months ago.

EthernetInterface for FRDM-K64F returns -1 for connect with DHCP

I'm using the FRDM-K64F and was aiming to communicate with the device over ethernet by letting my router assign the device's IP address. However, whenever I run the 'connect' function, it always returns -1 and I get a blank IP address. The program I set up to test this functionality can be found here:

https://developer.mbed.org/users/AlexNaylor/code/TCPSocket_HelloWorld_Modified/

I see other people have had issues with this device before, but I haven't been able to find a way to fix it yet. Any help is appreciated.

EDIT: I've decided to use a static IP address instead, but the device still fails when running the 'connect' command

Be the first to answer this question.