Code extraction from MATLAB

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

Code extraction from MATLAB

580 Views
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 Kudos
Reply
2 Replies

546 Views
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 Kudos
Reply

545 Views
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 Kudos
Reply