Add wifi example cause build error

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Add wifi example cause build error

958 Views
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 Kudos
Reply
5 Replies

941 Views
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 Kudos
Reply

931 Views
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 Kudos
Reply

935 Views
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 Kudos
Reply

925 Views
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 Kudos
Reply

924 Views
danielchen
NXP TechSupport
NXP TechSupport

danielchen_0-1610606487000.png

 

0 Kudos
Reply