Hi
we have downloaded the new sdk 2.8.2 (for IMXRT1062, with #lwip and freertos), then install the zip file in mcuxpresso (SDK 2.7 replaced bei SDK 2.8 was the message from mcuxpresso ide), than import the sdk example "lwip_ping_freertos" and now we can't compile the example.
Ther compiler error is:
.../source/lwip_httpsrv_freertos.c:410:10: error: 'ethernetif_config_t' {aka 'struct ethernetif_config'} has no member named 'clockName'
With example "lwip_httpserv_freertos" the same problem.
And right, the struct ethernetif_config has no member "clockName", but in the old SDK 2.7 the member are present.
What can we do?
Solved! Go to Solution.
Hi Alexander
I would suggest you use the latest IDE 11.2.0.
Since SDK2.8 was compiled and tested with 11.2.0
Regards
Daniel
I compiled this demo successfully with MCUXpresso IDE 11.2.0.
Regards
Daniel
Hi Daniel
thank you for your promt answer.
You are right, i used the older Version IDE V11.1.1. Now i will check the version 11.2
But what is the relationship between the IDE and SDK SW-Example ?
Please can you look in the "lwip_ping_freertos.c" file under source, in the function stack_init().
here you will see the struct init with:
ethernetif_config_t enet_config = {
.phyAddress = EXAMPLE_PHY_ADDRESS,
.clockName = EXAMPLE_CLOCK_NAME,
.macAddress = configMAC_ADDR,
};and in the included file "enet_ethernetif.h" under lwip/port the struct ethernetif_config is defined as:
typedef struct ethernetif_config
{
phy_handle_t *phyHandle;
uint8_t macAddress[NETIF_MAX_HWADDR_LEN];
#if (defined(FSL_FEATURE_SOC_LPC_ENET_COUNT) && (FSL_FEATURE_SOC_LPC_ENET_COUNT > 0))
const mem_range_t *non_dma_memory;
#endif /* FSL_FEATURE_SOC_LPC_ENET_COUNT */
} ethernetif_config_t;So i miss the struct elements: .phyAdress and .clockName in my case.
My question: are thes files different with your files?
Danjel, please can you verify this?
Regards
Alexander
Hi
the solution was : update the IDE from 11.1.1 to 11.2.
Now after delete and import the lwip ping example again, the file "lwip_ping_freertos.c" contains the correct new struct elements and i can compile successfully.
Daniel, thank you for the hint.
Regards
Alexander
Hi Alexander
I would suggest you use the latest IDE 11.2.0.
Since SDK2.8 was compiled and tested with 11.2.0
Regards
Daniel