Open kondor1622 opened 1 week ago
Thank you very much for this report, and also finding the solution! We'll incorporate that fix into the next release version.
The C6 is quite new, and I think you're the first to try it out with 2 motors probably! Thanks for reporting it.
I am trying to run two BLDC gimbal motors on ESP32-C6. When using only one of the motors everything works fine.
The problem is with MCPWM setup when using second motor - error log:
After quick investigation I found that SOC_MCPWM_GROUPS=1 on ESP32-C6, however the library tries to configure second group. My quick fix was to change _findBestGroup() in https://github.com/simplefoc/Arduino-FOC/blob/master/src/drivers/hardware_specific/esp32/esp32_driver_mcpwm.cpp to use SOC_MCPWM_GROUPS
After this change both motors work and no error is displayed. I have only tested it in open_loop mode.