SDK 2.8 lwip example doesn't compile

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

SDK 2.8 lwip example doesn't compile

跳至解决方案
1,932 次查看
alexanderhaenel
Contributor I

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?


    

标签 (1)
0 项奖励
回复
1 解答
1,888 次查看
danielchen
NXP TechSupport
NXP TechSupport

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

在原帖中查看解决方案

0 项奖励
回复
4 回复数
1,888 次查看
danielchen
NXP TechSupport
NXP TechSupport

I compiled this demo successfully with MCUXpresso IDE 11.2.0.

pastedImage_1.png

Regards

Daniel

0 项奖励
回复
1,888 次查看
alexanderhaenel
Contributor I

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

0 项奖励
回复
1,888 次查看
alexanderhaenel
Contributor I

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

0 项奖励
回复
1,889 次查看
danielchen
NXP TechSupport
NXP TechSupport

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

0 项奖励
回复