Compile the s32k312 project through commands

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

Compile the s32k312 project through commands

1,330 次查看
philip20200426
Contributor II

Hi,

We are currently using S32 Design Studio for S32 Platform(Version: 3.5) to compile the s32k312 project. As follows :build CTRL+B, clean ALT+B,L.

But We now need to autobuild the compilation of s32k312 code projects on the server-side.

Can you provide me with some build commands instead of compiling s32k312 code projects through visual interfaces.

 

Thanks.

13220581559@163.com

philip

0 项奖励
回复
7 回复数

1,295 次查看
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @philip20200426,

You can use command line to generate configuration tools code and to build the project, please refer to the following community posts:

Hope this helps. Best regards,
Julián

0 项奖励
回复

1,218 次查看
philip20200426
Contributor II

Hi,

Firstly, thank you for your reply, but this method requires S32DS. 3.5 to be disabled.

Is there a way to directly compile project code into bin using a compilation tool? For example, using gcc or link, etc.

Thanks.

0 项奖励
回复

1,198 次查看
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @philip20200426,

I am not following your question. Do you need to compile the project through S32DS IDE? The command line method does require S32DS to be closed, but you can generate the config tools code separately, build the project, and open the source code with external text editors.

There is also a section in the "Help" menu titled "Command Line Interface" for different commands within S32DS:

Julin_AragnM_0-1737491223594.png

Please clarify your end goal using commands without visual indications.

Also, the compilation tool is GCC, you can find the build command and C compiler inside "Project Settings":

Julin_AragnM_1-1737491335090.png

Best regards,
Julián

0 项奖励
回复

1,074 次查看
philip20200426
Contributor II

Hi Julian,

Thank you for your reply.

Is there a makefile for compiling the project? I can call the makefile in my script to complete the project compilation.

Best regards,

13220581559@163.com
philip

0 项奖励
回复

1,058 次查看
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @philip20200426

You can generate the makefile automatically when building the project:

Julin_AragnM_1-1739211415348.png

Julin_AragnM_2-1739211489905.png

Or create a Makefile from an existing code. Please refer to this post: HOWTO: Create A New Makefile Project With Existing Code From NXP Vision SDK Example Project - NXP Co....

Best regards,
Julián

 

0 项奖励
回复

1,031 次查看
philip20200426
Contributor II

Hi Julián,

The makefile you mentioned is in the Debug_Flash folder and can be used for incremental compilation, but if it is lost after cleaning, it cannot be fully recompiled.

When recompiling after cleaning, there is no debug directory available.

Best regards,

Philip

0 项奖励
回复

999 次查看
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @philip20200426

You can also create a makefile project from S32DS. You can either use the previous community post I've shared, or refer to these posts:

Hope this helps.

0 项奖励
回复