Why eclipse can't recognize the PATH variable?

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

Why eclipse can't recognize the PATH variable?

Jump to solution
1,876 Views
cheney
Contributor III

Dear support team:

    When i use eclipse command line to construct my program, i found that the path variable can't correctly parsed.

    Command line:

    eclipsec.exe -nosplash -application org.eclipse.cdt.managedbuilder.core.headlessbuild -data x import x -cleanBuild x/x --launcher.ini s32ds.ini --launcher.suppressErrors

    IDE: Version: 2018.R1  Build id: 180815

    Configurations: 

pastedImage_1.png

The setting of C compiler:

   

pastedImage_2.png

The setting of path variables:

  • The *.args of a object compile with S32DS is:

-I"C:/NXP/S32DS_ARM_v2018.R1/S32DS/S32SDK_S32K14x_EAR_0.8.6/platform/drivers/src/lin"
-I"C:/NXP/S32DS_ARM_v2018.R1/S32DS/S32SDK_S32K14x_EAR_0.8.6/platform/devices/S32K144/startup"
-I"C:/NXP/S32DS_ARM_v2018.R1/S32DS/S32SDK_S32K14x_EAR_0.8.6/rtos/osif"
-I"C:/NXP/S32DS_ARM_v2018.R1/S32DS/S32SDK_S32K14x_EAR_0.8.6/middleware/sbc/sbc_uja1169/include"
-I"C:/NXP/S32DS_ARM_v2018.R1/S32DS/S32SDK_S32K14x_EAR_0.8.6/platform/devices/common"
-I"C:/NXP/S32DS_ARM_v2018.R1/S32DS/S32SDK_S32K14x_EAR_0.8.6/platform/drivers/src/sai"
-I"C:/NXP/S32DS_ARM_v2018.R1/S32DS/S32SDK_S32K14x_EAR_0.8.6/platform/devices/S32K144/include"

  • The *.args of the object compile with eclipse command line is:

-I"/platform/drivers/src/lin"
-I"/platform/devices/S32K144/startup"
-I"/rtos/osif"
-I"/middleware/sbc/sbc_uja1169/include"
-I"/platform/devices/common"
-I"/platform/drivers/src/sai"
-I"/platform/devices/S32K144/include"

You can see that the path variables can't parsed correctly in command line mode.

Hope you can help me to analyze this issue.

Eagerly awaiting your reply.

0 Kudos
1 Solution
1,566 Views
cheney
Contributor III

Hi, Stan:

Thank you for you reply.

It works when i change your the eclipse option as below:

-Ea S32K144_SDK_GCC_0.8.6_PATH="C:\NXP\S32DS_ARM_v2018.R1\S32DS\S32SDK_S32K14x_EAR_0.8.6"

Now what's keeping me from getting confused is the PATH variable definition.

The SDK path variable what i can see in S32DS is "S32K144_SDK_GCC_0_8_6_PATH". See the picture below:

pastedImage_2.png

Figure 1: Linked Resources

But in the project setting, the SDK path variable used is "S32K144_SDK_GCC_0.8.6_PATH". 

pastedImage_5.png

Figure 2: Project setting

You can see that the '_' is replaced with '.'. Could you tell me the rules of the substitution and why the rules do not work in Eclipse's headless mode.?

And thank you for your reminding me using the new SDK. Our new project is constructed in RTM version of SDK. 

Sincere appreciation.

Cheney

View solution in original post

0 Kudos
3 Replies
1,566 Views
stanish
NXP Employee
NXP Employee

Hi 

could you possibly try to append environment variable to headless build by the Eclipse option below:

-Ea S32K144_SDK_GCC_0_8_6_PATH="C:\NXP\S32DS_ARM_v2018.R1\S32DS\S32SDK_S32K14x_EAR_0.8.6"

Note:

I noticed you are using pretty old EAR version of SDK. 

There is a S32K SDK (production ready) release delivered since update 6: S3214x SDK RTM 2.0.0

I'd recommend you to install the latest update to benefit from RTM SDK verisons:

https://community.nxp.com/docs/DOC-342194 

Hope it helps

Stan

0 Kudos
1,567 Views
cheney
Contributor III

Hi, Stan:

Thank you for you reply.

It works when i change your the eclipse option as below:

-Ea S32K144_SDK_GCC_0.8.6_PATH="C:\NXP\S32DS_ARM_v2018.R1\S32DS\S32SDK_S32K14x_EAR_0.8.6"

Now what's keeping me from getting confused is the PATH variable definition.

The SDK path variable what i can see in S32DS is "S32K144_SDK_GCC_0_8_6_PATH". See the picture below:

pastedImage_2.png

Figure 1: Linked Resources

But in the project setting, the SDK path variable used is "S32K144_SDK_GCC_0.8.6_PATH". 

pastedImage_5.png

Figure 2: Project setting

You can see that the '_' is replaced with '.'. Could you tell me the rules of the substitution and why the rules do not work in Eclipse's headless mode.?

And thank you for your reminding me using the new SDK. Our new project is constructed in RTM version of SDK. 

Sincere appreciation.

Cheney

0 Kudos
1,566 Views
cheney
Contributor III

stanish

Please kindly give me a answer about the PATH variable.

I've marked the question red.

cheney 撰写:

Hi, Stan:

 

Thank you for you reply.

 

It works when i change your the eclipse option as below:

-Ea S32K144_SDK_GCC_0.8.6_PATH="C:\NXP\S32DS_ARM_v2018.R1\S32DS\S32SDK_S32K14x_EAR_0.8.6"

 

Now what's keeping me from getting confused is the PATH variable definition.

 

The SDK path variable what i can see in S32DS is "S32K144_SDK_GCC_0_8_6_PATH". See the picture below:

pastedImage_2.png

Figure 1: Linked Resources

But in the project setting, the SDK path variable used is "S32K144_SDK_GCC_0.8.6_PATH". 

pastedImage_5.png

Figure 2: Project setting

 

You can see that the '_' is replaced with '.'. Could you tell me the rules of the substitution and why the rules do not work in Eclipse's headless mode.?

 

And thank you for your reminding me using the new SDK. Our new project is constructed in RTM version of SDK. 

 

Sincere appreciation.

Cheney

0 Kudos