I cannot seem to compile the latest version of SimpleFOC on PlatformIO:
.pio/libdeps/debug/ArduinoFOC/src/current_sense/hardware_specific/esp32/esp32_mcpwm_mcu.cpp:9:2: error: #error SimpleFOC: ESP-IDF version 4 or lower detected. Please update to ESP-IDF 5.x and Arduino-esp32 3.0 (or higher)
It seems this issue happened before (see here), and that it was resolved.
This time, however, things don’t look good. I don’t understand the problem fully, but there seems to be a conflict between PlatformIO and Espressif (see here).
So I’ve tried to replace the default Espressif 32 platform by the Tasmota fork:
platform = https://github.com/tasmota/platform-espressif32/releases/download/2024.07.11/platform-espressif32.zip
framework = arduino
However, I get an odd include error:
.pio/libdeps/debug/ModifiedArduinoFOC/src/current_sense/hardware_specific/teensy/../../../drivers/hardware_specific/teensy/../../hardware_api.h:4:10: fatal error: ../common/foc_utils.h: No such file or directory
(despite the fact that …/common/foc_utils.h is there)
Has anyone experienced this?