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
已解决! 转到解答。
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.
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.
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.
Hope this helps,
Irina
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.
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.
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.
Hope this helps,
Irina