LIN support for STM32 microcontroller series

32 views (last 30 days)
Hari
Hari on 21 Nov 2025 at 6:31
Edited: Madhu Varshini on 3 Dec 2025 at 14:24
Hello community, I have been working with STM32 peripherals, all peripherals are working fine, then I found out there is no support for LIN communication peripheral in MATLAB simulink. is there any way, Can I get support for the LIN communication block.

Answers (2)

Sanathan
Sanathan on 26 Nov 2025 at 9:23
Hey Hari,
Simulink has LIN Communication. The LIN communications architecture supports a single controller node and up to 16 peripheral nodes on a LIN network.
Configure the LIN node in your model as a controller or peripheral node:
  1. Configure the Target Hardware Resources tab, as described in Configure Target Hardware Resources (Embedded Coder).
  2. In the Target Hardware Resources tab, select the Peripherals tab, and then select LIN.
  3. Set LIN mode to controller or peripheral.
Refer to this link to know more - https://www.mathworks.com/help/slrealtime/lin.html

Madhu Varshini
Madhu Varshini on 3 Dec 2025 at 14:24
Edited: Madhu Varshini on 3 Dec 2025 at 14:24
Hi,
Currently, LIN communication support is not available as a built-in block for STM32 . However, you can create your own custom LIN communication block using the IO Device Builder app workflow. This approach allows you to define custom peripheral interfaces and integrate them into your Simulink model.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!