STM32 Code Generation

Target Support Package

To generate code for STMicroelectronic (ST) STM32 MCUs, PLECS Standalone or PLECS Blockset, and the PLECS Coder are required. In addition, a Target Support Package (TSP) must be installed.

Type Platform File name
TSP Zip Archive Microsoft Windows 64-bit
TSP Zip Archive Mac / Intel 64-bit

The current version of the TSP requires PLECS version 4.5.8 or newer.
It supports the STM32G431, STM32G474, STM32F303 and STM32F334 microprocessors.


Please download the ZIP archive, extract it, and move the folder st_stm32 to e.g. HOME/Documents/PLECS/CoderTargets. In PLECS, choose the entry Preferences... from the File menu (PLECS menu on Mac OS X) to open the PLECS Preferences dialog.

On the Coder tab click on the Change button and select the folder HOME/Documents/PLECS/CoderTargets. The STM32 Target should now be listed under Installed targets.

Next, select PLECS Documentation from the Help menu and navigate to the STM32 Target Support Online Help section for detailed instructions on how to get started with this target support package.

Release History

Version 1.1: Support for F303 and F334 devices added (requires PLECS 4.5.8 or later).

Version 1.0: Initial release (requires PLECS 4.5.6 or later).