Import external code in existing model

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

Import external code in existing model

637 Views
saurabhkulkarni123
Contributor II

Hello NXP,

Is it possible to integrate an external s32k code file into the existing mbdt model for code generation? If YES then how can we do that?

0 Kudos
4 Replies

634 Views
mariuslucianand
NXP Employee
NXP Employee

Hello @saurabhkulkarni123 ,

It is possible to integrate your own C code or C library into the Simulink model. Please check the following article on our Community: https://community.nxp.com/t5/NXP-Model-Based-Design-Tools/How-to-use-your-own-C-code-in-our-Toolbox-... 

Regards,

Marius

0 Kudos

629 Views
saurabhkulkarni123
Contributor II

Hello @mariuslucianand ,

Is there any other way to integrate code other than this post method?

0 Kudos

622 Views
mariuslucianand
NXP Employee
NXP Employee

Hello @saurabhkulkarni123 ,

I could also recommend this post here, but keep in mind that this has been described for an older version of MATLAB: https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-to-put-S32K-MCU-into-sleep-low-powe... 

Could you please describe the scenario and what kind of C code would you like to embedd? is it a library or some generic C code?

Regards,

Marius

0 Kudos

620 Views
saurabhkulkarni123
Contributor II

Some .h and .c file is there which is designed in s32 IDE for ARM, Now I want to integrate these files into MATLAB NXP MBDT model and then generate code for it. so we can use this file access into the model also.

0 Kudos