Closed nanoparticle closed 9 months ago
I looked into this again today. I have added the line you suggest.
The code compiles for me now using:
It's really confusing with all these different framework versions for the same MCU :-(
Is there a particular Arduino core that is supported/preferred by SimpleFOC?
Well weâd like to support the âofficialâ one but they donât seem to do to good a job of keeping it updated :-( So many people seem to like alternative cores.
the current dev branch code should work with both the official core and the earlephilhower one.
please let me know if you find it doesnât work for you.
Thanks, I'll post an update in a couple of weeks when the new boards arrive and I have had a chance to check compatibility.
Using the Ardiuno IDE 2 with latest SimpleFOC library and latest Arduino-Pico core, with my RP2040 based board, and the current sense code fails to compile with the following error:
Several more errors follow, but they are a consequence of this error and go away when it is resolved.
It looks like rp2040_mcu.cpp in the current_sense folder is missing this include statement:
#include "hardware/adc.h"
When I add this line everything compiles and runs successfully. There is even a drastic improvement in the smoothness of motor compared to last release of SimpleFOC, thanks so much for the development effort! đ