# Code an ESP for STM

**URL:** https://forum.plexim.com/t/code-an-esp-for-stm/2710
**Category:** General
**Created:** [November 17, 2025, 11:56am UTC](https://forum.plexim.com/t/code-an-esp-for-stm/2710 "2025-11-17T11:56:43Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![Jeroen\_Buitendijk](https://dub1.discourse-cdn.com/flex006/user_avatar/forum.plexim.com/jeroen_buitendijk/32/1540_2.png) [@Jeroen\_Buitendijk](https://forum.plexim.com/u/Jeroen_Buitendijk)
#### Post date: [November 17, 2025, 9:26pm UTC](https://forum.plexim.com/t/code-an-esp-for-stm/2710/4 "2025-11-17T21:26:19Z")

</div>

Hello Ranieri!

ESP32-specific code cannot execute on STM32. Generic C code can be integrated in a PLECS model using the C-script block. This is an advanced block that is difficult to use.

Reading signals from a quadrature encoder should necessitate only the QEP block from the STM32 Target Support Package, and not additional code ported from an ESP32. Is this post related to your previous post ( [Encoder with stm32 - #14 by Ranieri.Mazzini](https://forum.plexim.com/t/encoder-with-stm32/2434/14) )? If that is the case, it would probably best to schedule a web meeting to investigate the issue.

---

_[View the full topic](https://forum.plexim.com/t/code-an-esp-for-stm/2710)._
