7 years, 4 months ago.

EthernetInterface library compile error for FRDM-K64F board.

I am trying to compile ethernet udp server and client example given for FRDM-K64F but it gives me compile error. I took latest library but no success.

I am getting following error. Error: Struct "_enet_handle" has no field "rxBdDirty" in "EthernetInterface/lwip-eth/arch/TARGET_Freescale/k64f_emac.c", Line: 86, Col: 19

Can anyone help me on this?

Question relating to:

The Freedom-K64F is an ultra-low-cost development platform for Kinetis K64, K63, and K24 MCUs.

3 Answers

7 years, 4 months ago.

Try to rool back mbed.h to some version ago, it comes from time to time that something is missing. And make sure that ethernet.h is the same version/date as mbed liberary

Accepted Answer
7 years, 4 months ago.

Looks like you might not be using the right mbed-os code that goes with this ENET driver. K64 ENET driver was updated to use Kinetis SDK 2.0 ENET drivers.

I am using the example given in following link without any changes. https://developer.mbed.org/platforms/FRDM-K64F/

posted by Nilesh Vora 13 Dec 2016

I tried the Ethernet_UDP_Server and Ethernet_UDP_client projects available and did not encounter build failures.

posted by Mahesh Mahadevan 13 Dec 2016
7 years, 4 months ago.

I had this issue too, did a search through thr project and rxBdDirty is only used in k64f_emac.c and is pretty pointless as its value isnt used anywhere, i just removed them and it worked.

In one of my latest programs, I user mbed version 126 and the lasted ethernetnet (1/5 2016) rtos is from auf 2016

posted by Gert Lauritsen 20 Dec 2016