Add wifi example cause build error

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Add wifi example cause build error

959件の閲覧回数
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 返答(返信)

942件の閲覧回数
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 件の賞賛
返信

932件の閲覧回数
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 件の賞賛
返信

936件の閲覧回数
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 件の賞賛
返信

926件の閲覧回数
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 件の賞賛
返信

925件の閲覧回数
danielchen
NXP TechSupport
NXP TechSupport

danielchen_0-1610606487000.png

 

0 件の賞賛
返信