Import external code in existing model

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Import external code in existing model

2,012件の閲覧回数
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,009件の閲覧回数
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,004件の閲覧回数
saurabhkulkarni123
Contributor II

Hello @mariuslucianand ,

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

0 件の賞賛
返信

1,997件の閲覧回数
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 件の賞賛
返信

1,995件の閲覧回数
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 件の賞賛
返信