Headless Build Support for S32K Series

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

Headless Build Support for S32K Series

1,842件の閲覧回数
Chath
Contributor I

Hi,

I’m currently managing a set of products based on the S32K144 and S32K142 (both 100-pin and 64-pin variants). Up to now, I've been using S32 Design Studio along with a custom script to handle builds and releases. However, this approach is becoming increasingly impractical.

I’m now looking to set up a dedicated build machine to manage the process without relying on S32 Design Studio. Does NXP provide any tools, features, or official guidelines for setting up a headless build environment for the S32K series?

Thank you in advance.

S32K1 S32K144EVB  S32DS-ARM 

0 件の賞賛
返信
5 返答(返信)

1,808件の閲覧回数
alejandro_e
NXP TechSupport
NXP TechSupport

Hello @Chath,

The flashing tool does offer a command line interface, you should be able to locate it in your S32DS installation directory, for example: C:\NXP\S32DS.3.5\S32DS\tools\S32FlashTool\bin

you can run the following command for help:

S32FlashTool.exe -h

 You can also open the command line tool using the GUI, this will give you some example command configurations once you have configured your target device:

alejandro_e_0-1744847964375.png

For example:

# Retrieve existing COM ports
# S32FlashTool -i uart -p ?

# Retrieve connected, supported CAN adapters
# S32FlashTool -i can -p ?

# Retrieve Ethernet adapters
# S32FlashTool -i ethernet -p ?

# Load the target binary and read the MCUID
# S32FlashTool -t C:\NXP\S32DS.3.5\S32DS\tools\S32FlashTool\targets\S32G3xxx.bin -i uart -p COM13 -mcuid

# Load the target binary and the flash memory algorithm
# S32FlashTool -t C:\NXP\S32DS.3.5\S32DS\tools\S32FlashTool\targets\S32G3xxx.bin -a C:\NXP\S32DS.3.5\S32DS\tools\S32FlashTool\flash\MX25UW51245G.bin -i uart -p COM13

# Read 0x100 bytes from the address 0x0000_0000 of the flash memory
# S32FlashTool -t C:\NXP\S32DS.3.5\S32DS\tools\S32FlashTool\targets\S32G3xxx.bin -i uart -p COM13 -fread -addr 0x00000000 -size 0x100

# Upload (program) a file [FILE] to the flash memory starting with address 0x0000_0000
# S32FlashTool -t C:\NXP\S32DS.3.5\S32DS\tools\S32FlashTool\targets\S32G3xxx.bin -i uart -p COM13 -fprogram -addr 0x00000000 -f [FILE]

# Upload a binary [FILE] to SRAM at address [ADDRESS] and execute it
# S32FlashTool -t C:\NXP\S32DS.3.5\S32DS\tools\S32FlashTool\targets\S32G3xxx.bin -i uart -p COM13 -addr [ADDRESS] -boot [FILE]

C:\NXP\S32DS.3.5\S32DS\tools\S32FlashTool\bin>

Please also check the available documentation in: C:\NXP\S32DS.3.5\S32DS\tools\S32FlashTool\doc

 

Regarding the S32DS compilation process, getting it to work can be somewhat difficult, I can recommend you check section Build configuration of the S32DS user guide [starting at page 231, C:/NXP/S32DS.3.5/S32DS/help/pdf/S32DS_User_Guide.pdf], in which you will  be able to see all the configurations related to compiler, linker, assembler and all other compilation tools.

 

Let me know if you need more information about this topic.

0 件の賞賛
返信

1,778件の閲覧回数
Chath
Contributor I

Hi @alejandro_e,


Thanks for the quick response. This is for flashing. 

I'm looking for a command-line setup to build source code. 

Currently we have around 12 products, which is in 5 different projects and have to be built for each devices manually from S32DS. I want to automate the build process and generate the released binaries from a command line, with customized scripts etc. 

I am looking for a guideline to set up the above environment from the project generated from the S32DS. 

Thank you. 

0 件の賞賛
返信

1,729件の閲覧回数
alejandro_e
NXP TechSupport
NXP TechSupport

Hello @Chath,

Please check the last part of my previous reply, I did not elaborate a lot since everything is explained in the mentioned document [starting at page 231, C:/NXP/S32DS.3.5/S32DS/help/pdf/S32DS_User_Guide.pdf]:

alejandro_e_0-1745255476804.png

 

With the information in that section you should be able to assemble the needed command to build your project. You can also check the log file generated after a build in S32DS for more information, you can find the path of the lof file in your project settings:

alejandro_e_1-1745256350965.png

 

You can also check the information in this link: 1236995 or search for "command line" in the help section of S32DS:

alejandro_e_0-1745259713124.png

 

 

Let me know if you have specific questions about this topic.

 

0 件の賞賛
返信

1,713件の閲覧回数
Chath
Contributor I

@alejandro_e 

Thanks, this helps a lot. I will try this, and come back here if I need more assistance. 

Regards,
Chath. 

0 件の賞賛
返信

1,711件の閲覧回数
alejandro_e
NXP TechSupport
NXP TechSupport

Hello @Chath,

I understand. if the topic deviates significantly from the original post please create a new one to better keep track  of the topics.

 

Thanks

0 件の賞賛
返信