Is there LIN block in Model_based Design Toolbox for S32k144?

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

Is there LIN block in Model_based Design Toolbox for S32k144?

1,882 次查看
victor_song_171
Contributor III

Using Model-based design toolbox in simulink .but there was no LIN model ,check the  <<MBDT-User-Manual-for-S32K>>, there is LINSCI block like below.But in the document ,there is no LIN function or block ,why is that? Is LINSCI not the the LIN-BUS that we known? 

微信截图_20190315160626.png

0 项奖励
回复
5 回复数

1,697 次查看
constantinrazva
NXP Employee
NXP Employee

Hello victor_song_171819@163.com‌,

In the MBDT for S32K we support SCI (Serial Communications Interface) via the LPUART blocks (Low Power Universal Asynchronous Receiver/Transmitter). However, we do not support LIN bus - that is another (software) layer that comes on top of the classic UART. LIN's data link layer provides improved control and error checking over a UART interface and has fixed format message frames.

Kind regards,

Razvan.

1,697 次查看
642142357
Contributor III

can you give a sample run in s32k platform.

0 项奖励
回复

1,697 次查看
constantinrazva
NXP Employee
NXP Employee

Hello 642142357@qq.com ,

I am not sure what you are asking for - do you want an executable file generated so you can run it on your board? Are you using our Simulink toolbox?

Note: this thread was started some time ago, in the meanwhile we have also added LIN support for S32K1xx toolbox.

Kind regards,

Razvan.

0 项奖励
回复

1,697 次查看
642142357
Contributor III

yes, using Simulink toolbox based on s32k platform

0 项奖励
回复

1,697 次查看
constantinrazva
NXP Employee
NXP Employee

Hello 642142357@qq.com,

You can use the LIN example model (lin_master_s32k14x.mdl) -- just open it (found in {TOOLBOX_ROOT}\S32_Examples\s32k14x\lin folder) and click on the Build button. This will generate the C files, compile them and you'll get the executable. Depending on the settings from the main configuration block, you could also download the executable file directly from Simulink automatically (right after the build is done).

Let me know if you need help with any of these steps or if something is unclear.

Kind regards,

Razvan.

0 项奖励
回复