Build S32K3 Model Based Design Toolbox Generated Projects in S32DS3.5

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

Build S32K3 Model Based Design Toolbox Generated Projects in S32DS3.5

Jump to solution
282 Views
noobsplzwin
Contributor I

Hi NXP team,

Can we compile a project generated by the S32k3 Simulink MBD Toolbox in S32DS IDE? We've found that the C code from the embedded coder isn't optimized enough. We want to manually refine and optimize this C code before releasing our product. If this isn't doable, what other options do we have?

I appreciate any help.

Connor

0 Kudos
1 Solution
207 Views
Irina_Costachescu
NXP Employee
NXP Employee

Hi @noobsplzwin 

You have the option of exporting the code generated by your Simulink model in an IDE compatible format. For this, after building your application, you should go to the Hardware Settings and from the opened Configuration Parameters, navigate to the Tools Paths group, and click the Export button.

Irina_Costachescu_0-1713197862492.png

After this, the modelName_Config folder can be imported inside the S32DS IDE, compiled, debugged, and modified as desired.

Please note that you could also optimize the way in which the code is generated from your Simulink model by accessing the Code Generation tab in the same Configuration Parameter window. There are multiple options you could customize, such as the Code generation objectives. You could press the Help button for more information on each option. The Optimization tab under the Code Generation contains other settings that you might find useful as well.

Irina_Costachescu_1-1713198048355.png

Moreover, you could also perform optimizations by customizing the Toolchain flags which control how the compiler generates the final application code. By setting the Build configuration to Specify, you could add/remove flags as your application requires.

Irina_Costachescu_2-1713198261926.png

Hope this helps,

Irina

 

 

View solution in original post

1 Reply
208 Views
Irina_Costachescu
NXP Employee
NXP Employee

Hi @noobsplzwin 

You have the option of exporting the code generated by your Simulink model in an IDE compatible format. For this, after building your application, you should go to the Hardware Settings and from the opened Configuration Parameters, navigate to the Tools Paths group, and click the Export button.

Irina_Costachescu_0-1713197862492.png

After this, the modelName_Config folder can be imported inside the S32DS IDE, compiled, debugged, and modified as desired.

Please note that you could also optimize the way in which the code is generated from your Simulink model by accessing the Code Generation tab in the same Configuration Parameter window. There are multiple options you could customize, such as the Code generation objectives. You could press the Help button for more information on each option. The Optimization tab under the Code Generation contains other settings that you might find useful as well.

Irina_Costachescu_1-1713198048355.png

Moreover, you could also perform optimizations by customizing the Toolchain flags which control how the compiler generates the final application code. By setting the Build configuration to Specify, you could add/remove flags as your application requires.

Irina_Costachescu_2-1713198261926.png

Hope this helps,

Irina