Code extraction from MATLAB

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

Code extraction from MATLAB

1,005 次查看
shiwani
Contributor I

I m having Issue importing MATLAB generated C code into S32 design studio for ARM Can you please help me with steps to import this code.

 

Thank you.

0 项奖励
回复
2 回复数

971 次查看
Irina_Costachescu
NXP Employee
NXP Employee

Hi @shiwani ,

For achieving your use case, I would propose to you to check the following link of a thread on our community where this issue is explained.

In the referenced post, you could find a step by step procedure of how to import your Simulink generated code into the S32DS environment.

Hope this helps,

Irina

0 项奖励
回复

970 次查看
Kieratucker
Contributor I

Generate C code in MATLAB: Use MATLAB's code generation feature to generate C code from your MATLAB script or model. Make sure to select the appropriate options for generating standalone C code without any MATLAB dependencies. Create a new project in S32 Design Studio: Open S32 Design Studio for ARM and create a new project by selecting the appropriate microcontroller or device you are targeting. Set up project settings: Configure the project settings, including the toolchain, build configurations, and compiler options, to match your requirements. Add the MATLAB-generated C code files: Copy or import the MATLAB-generated C code files into the S32 Design Studio project. You can either create new source files or add the existing C code files to the project structure. Configure project dependencies: If your MATLAB-generated C code has any external library dependencies, make sure to include the necessary library files and configure the project settings accordingly.    UPSers

0 项奖励
回复