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

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

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

跳至解决方案
506 次查看
noobsplzwin
Contributor III

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 项奖励
回复
1 解答
431 次查看
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

 

 

在原帖中查看解决方案

1 回复
432 次查看
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