Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
7 years, 5 months ago.
NXP K64 Ethernet example won't compile
Hi I just imported the following example and it does not compile. All of the libs have been updated. https://developer.mbed.org/teams/NXP/code/Ethernet_UDP_client/
The error message I get is Error: Cannot open source input file "fsl_enet.h": No such file or directory in "EthernetInterface/lwip-eth/arch/TARGET_Freescale/k64f_emac_config.h", Line: 33, Col: 23
I do not see this file from the imported source.
Can you please take a look and see how to fix?
Thank you Bill
2 Answers
7 years, 5 months ago.
The EthernetInterface library does not seem to be compatible with latest mbed library. You can remote existing project and re-import the example by uncheck "Update all libraries to the latest revision" box.
7 years, 5 months ago.
I suggest changing from mbed to mbed-os. EthernetInterface is built into mbed-os. I think it is still at v 5.2
...kevin
How do I change to "mbed-os"? I tried importing "mbed-os" but no official libs showed up in the search. I thought that "mbed" *was* the official mbed 5.x release and you had to downgrade to get to the old mbed 2.x?
posted by 15 Dec 2016Start here
https://docs.mbed.com/docs/mbed-os-release-notes/en/latest/5_2/release_note/
https://developer.mbed.org/users/mbed_official/
Download one of the examples from here, then copy mbed-os to your directory. Delete mbed, mbed-rtos and EthernetInterface
posted by 15 Dec 2016If you want to keep the original mbed library, this was the last stable versions I am currently using for the K64F. Anything newer is broken....
mbed.lib v127 (even v131 is broken, just checked it. EthernetInterface probably needs updating))
mbed-rtos v122
EthernetInterface v54
SDFileSystem v26
posted by 16 Dec 2016BTW: I am having trouble with the mbed-os version of UDPClient. Some of the older UDP functions are not available. See my unanswered question:
https://developer.mbed.org/questions/76210/Need-help-with-UDPSocket-with-mbed-os5/
I posted a similar question earlier, but got an unrelated answer:
https://developer.mbed.org/questions/76135/How-does-one-create-and-close-a-UDP-sock/#answer11602
posted by 16 Dec 2016