Add wifi example cause build error

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

Add wifi example cause build error

1,337 次查看
yen_chen
Contributor III

Use RT1050 board

I add wifi_iperf source file to some IO expender project.

I add C/C++ Build -> Settings - > MCU C Compiler -> includes and C/C++ Build -> Settings - > MCU Assembler -> General to wifi workspace path.

it will occur undeclared error,but I can find in the another include file.

0111_wifi.png

 

0111_wifi2.png

but #define MAX_PORT can find the wifidriver/incl/mlan_main.h,why it can't link to MAX_PORT.

thanks~

 

0 项奖励
回复
5 回复数

1,320 次查看
danielchen
NXP TechSupport
NXP TechSupport

Hi @yen_chen :

 

Please check the includes paths, you should add all the wifi path into your project include paths.

danielchen_0-1610545414398.png

 

Regards

Daniel

0 项奖励
回复

1,310 次查看
yen_chen
Contributor III

Hi, @danielchen

Could you tell me different folder how to link each other.

some folder I add and include path but it can't link to another file.

Could you tell me how to do ?

thanks ~

0 项奖励
回复

1,314 次查看
yen_chen
Contributor III

Hi @danielchen 

I already included (MCU C compiler -> includes path) and (MCU Assembler -> General)

but it doesn't work .

I find the file (wifi/wifidriver/incl/mlan_main.h) already define :"MAX_PORT",

but error message :(error: 'MAX_PORT' undeclared (first use in this function); did you mean 'MAXSTORE'?)

0114.png

Is anything I need to check?

0 项奖励
回复

1,304 次查看
danielchen
NXP TechSupport
NXP TechSupport

Hi @yen_chen :

 

When you add some source folders into MCUXpresso IDE, the default behavior is the folder is excluded from the project. 

You need to uncheck the "Exclude resource from build".

 
 

 

 

 

0 项奖励
回复

1,303 次查看
danielchen
NXP TechSupport
NXP TechSupport

danielchen_0-1610606487000.png

 

0 项奖励
回复