Import external code in existing model

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

Import external code in existing model

2,020 次查看
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 项奖励
回复
4 回复数

2,017 次查看
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 项奖励
回复

2,012 次查看
saurabhkulkarni123
Contributor II

Hello @mariuslucianand ,

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

0 项奖励
回复

2,005 次查看
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 项奖励
回复

2,003 次查看
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 项奖励
回复