katbinaris / NanoD_RatchetH1

FW for Ratchet / NanoD++
6 stars 4 forks source link

Build Error - SimpleFOC needs ESP-IDF version 5 #13

Open cHemingway opened 1 month ago

cHemingway commented 1 month ago

On a fresh install of PlatformIO on WSL2 Debian, running run build I get the following error

.pio/libdeps/nanofoc_d/Simple FOC/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)

I get the same on a fresh windows environment as well.

This seems to be a known issue with SimpleFOC requiring ESP-IDF v5, and PlatformIO using an older version of Arduino-ESP based of ESP-IDF v4.

I'm quite new to platformio, but it seems that SimpleFoc and expressif32 are pinned versions so this shouldn't have changed since this file was committed, so I'm not sure why it would now be broken if it worked initially.

cHemingway commented 1 month ago

Here is a gist of the build log so you can see what versions of packages etc it is installing.

https://gist.github.com/cHemingway/84bd7fc7b5613233709696dc9d849e87