Hello,
I was using the Arduino-FOC with the STM32 which worked nicely.
Now I set it up with an ESP32 Wrover (board version 1.0.4), trying both the current master-branch and dev-branch (31.08.20) and it does not compile. the …\examples\hardware_specific_examples\ESP32\magnetic_sensor\esp32_position_control .
Arduino throws the following error message:
`C:\Users\Josefin\Documents\Arduino\libraries\Arduino-FOC-dev\src\FOCutils.cpp: In function ‘void _setPwmFrequency(int, int, int)’:
C:\Users\Josefin\Documents\Arduino\libraries\Arduino-FOC-dev\src\FOCutils.cpp:108:55: error: ‘MCPWM_SELECT_SYNC_INT0’ was not declared in this scope
Hi - it looks like the link @David_Gonzalez shared has been changed and no longer has instructions to fix this issue (or maybe I am blind haha). Can anyone share some more info on the file that needs to be changed?
We have removed this as requirement from docs becauser from the version 2.1.1 this should no longer happen. The source code has been updated not to use the ESP32 code that requires the changement.