# ESP32 S3 compatibility

**URL:** https://community.simplefoc.com/t/esp32-s3-compatibility/1937
**Category:** Uncategorized
**Created:** [April 15, 2022, 10:02pm UTC](https://community.simplefoc.com/t/esp32-s3-compatibility/1937 "2022-04-15T22:02:34Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Geronimo](https://community.simplefoc.com/letter_avatar_proxy/v4/letter/g/ea666f/32.png) [@Geronimo](https://community.simplefoc.com/u/Geronimo)
#### Post date: [April 15, 2022, 10:02pm UTC](https://community.simplefoc.com/t/esp32-s3-compatibility/1937/1 "2022-04-15T22:02:34Z")

</div>

Did anyone tried to run SimpleFoc on the new modules/SOCs from Espressif ESP32 S3?  
These boards boast \* Xtensa® 32-bit LX7 dual-core processor that operates at up to 240 MHz

---

<div class="post-metadata">

### Author: ![runger](https://community.simplefoc.com/user_avatar/community.simplefoc.com/runger/32/395_2.png) [@runger](https://community.simplefoc.com/u/runger)
#### Post date: [April 16, 2022, 10:13am UTC](https://community.simplefoc.com/t/esp32-s3-compatibility/1937/2 "2022-04-16T10:13:22Z")

</div>

Yes, the S3 is supported by SimpleFOC.

Unfortunately this chip does not have the MCPWM peripheral that the older ESP32s have, so it is not as good at motor control. 6-PWM with dead-time insertion is not supported, but you can run 3-PWM setups using the normal PWM peripheral.

Personally I would recommend the WROVER, WROOM or PICO D4 series, also dual core 240MHz ESP32s, but having the MCPWM.

---

<div class="post-metadata">

### Author: ![Geronimo](https://community.simplefoc.com/letter_avatar_proxy/v4/letter/g/ea666f/32.png) [@Geronimo](https://community.simplefoc.com/u/Geronimo)
#### Post date: [April 16, 2022, 12:50pm UTC](https://community.simplefoc.com/t/esp32-s3-compatibility/1937/3 "2022-04-16T12:50:43Z")

</div>

Hi,  
Are you sure? this is from the ESP32 S3 datasheet from Espressif:

 ![es1](https://community.simplefoc.com/uploads/default/original/2X/f/fce1621c3e0390569c78a3e12b2207c5f961d7d8.png)

you can also see a detailed instruction on the manual itself:

 ![es2](https://community.simplefoc.com/uploads/default/original/2X/e/edff2149eb70c4bc2d25fbf9725ebd9a5b30aaab.png)

---

<div class="post-metadata">

### Author: ![runger](https://community.simplefoc.com/user_avatar/community.simplefoc.com/runger/32/395_2.png) [@runger](https://community.simplefoc.com/u/runger)
#### Post date: [April 16, 2022, 3:36pm UTC](https://community.simplefoc.com/t/esp32-s3-compatibility/1937/4 "2022-04-16T15:36:26Z")

</div>

My Bad! You’re absolutely right, the S3 has MCPWM and should work with SimpleFOC in this mode. I was confused, and mixed it up with the C3, which does not.

---

<div class="post-metadata">

### Author: ![Geronimo](https://community.simplefoc.com/letter_avatar_proxy/v4/letter/g/ea666f/32.png) [@Geronimo](https://community.simplefoc.com/u/Geronimo)
#### Post date: [April 17, 2022, 12:14pm UTC](https://community.simplefoc.com/t/esp32-s3-compatibility/1937/5 "2022-04-17T12:14:32Z")

</div>

I have decided to go with the ESP32 first version, because S3 is not supported with the Arduino framework and not on PlatformIO. Not so convenient…

---

<div class="post-metadata">

### Author: ![runger](https://community.simplefoc.com/user_avatar/community.simplefoc.com/runger/32/395_2.png) [@runger](https://community.simplefoc.com/u/runger)
#### Post date: [April 17, 2022, 6:36pm UTC](https://community.simplefoc.com/t/esp32-s3-compatibility/1937/6 "2022-04-17T18:36:21Z")

</div>

PlatformIO official ESP32 framework packages are quite far behind… have you tried with the following in your PlatformIO.ini?

```auto
platform = https://github.com/tasmota/platform-espressif32/releases/download/v2.0.3rc1/platform-espressif32-2.0.3.zip

```

The tasmota version has upgraded the PlatformIO framework to the newer ESP32 framework versions.  
Looking at the release history, I think there might be support for S3. You’d have to try it out.

> **[Releases · tasmota/platform-espressif32](https://github.com/tasmota/platform-espressif32/releases)**
>
> Tasmota Espressif 32: development platform for PlatformIO - tasmota/platform-espressif32

---

<div class="post-metadata">

### Author: ![aokholm](https://community.simplefoc.com/user_avatar/community.simplefoc.com/aokholm/32/2439_2.png) [@aokholm](https://community.simplefoc.com/u/aokholm)
#### Post date: [April 19, 2022, 7:08am UTC](https://community.simplefoc.com/t/esp32-s3-compatibility/1937/7 "2022-04-19T07:08:37Z")

</div>

> [@runger](#):
>
> PlatformIO official ESP32 framework packages are quite far behind… have you tried with the following in your PlatformIO.ini?

Awesome. My ESP32/SimpleFOC project compiles with the above mentioned platform!

Been trying to find a way to get Arduino 2.0+ for platformIO for months (to support SimpleFOC). Been using the Arduino extension for VSCode. It’s been painful!

---

<div class="post-metadata">

### Author: ![Geronimo](https://community.simplefoc.com/letter_avatar_proxy/v4/letter/g/ea666f/32.png) [@Geronimo](https://community.simplefoc.com/u/Geronimo)
#### Post date: [April 19, 2022, 3:53pm UTC](https://community.simplefoc.com/t/esp32-s3-compatibility/1937/8 "2022-04-19T15:53:08Z")

</div>

thanks! very helpful
