Hardware timer issue with ESP32

Ah @ifconfig, I forgot that you’re not using the stable 1.0.6 core since you have a ESP32-S2 board. So, also the bit about the timer function not supporting edge = true should be invalid for you.

As for the easieset fix, please replace

[env:ESP32-S2-Mini-1] ; See https://community.platformio.org/t/using-the-platformio-and-the-arduino-framework-with-the-esp32-s2-devkitm-1/21930
platform = espressif32
platform_packages =
	toolchain-xtensa32s2
	framework-arduinoespressif32@https://github.com/espressif/arduino-esp32.git#2.0.0-alpha1
framework = arduino

in your platformio.ini with

[env:ESP32-S2-Mini-1] ; See https://community.platformio.org/t/using-the-platformio-and-the-arduino-framework-with-the-esp32-s2-devkitm-1/21930
platform = espressif32
platform_packages =
	toolchain-xtensa32s2
	framework-arduinoespressif32@https://github.com/espressif/arduino-esp32.git#master
	platformio/tool-esptoolpy @ ~1.30100
framework = arduino

to get to the master branch with the fix (along with a necessary esptoolpy update).

Notice that if you have used some master version before, PlatformIO might not do a git update, so it’s best to remove all folders C:\Users\<user>\.platformio\packages\framework-arduinoespressif32* to get a clean build.

1 Like