Is there LIN block in Model_based Design Toolbox for S32k144?

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there LIN block in Model_based Design Toolbox for S32k144?

196 Views
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 Kudos
5 Replies

11 Views
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.

11 Views
Contributor III

can you give a sample run in s32k platform.

0 Kudos

11 Views
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 Kudos

11 Views
Contributor III

yes, using Simulink toolbox based on s32k platform

0 Kudos

11 Views
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 Kudos