-
Notifications
You must be signed in to change notification settings - Fork 536
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Cannot compile with esp32-c3 #428
Comments
Hi @ssaattww, This is interesting. We've got the CI compile check for esp32-c3 in our github repo and it did pass. Could you try compiling for the In any case, we should investigate this. The compile error seems pretty strange though, is should not have compiled for any library version from v2.x if this is the case. You can also try to do a quick fix and make it compile you can navigate to these lines in your code: Arduino-FOC/src/current_sense/hardware_specific/esp32/esp32_mcu.cpp Lines 17 to 20 in c72f063
And replace them by: ESP32CurrentSenseParams* params = new ESP32CurrentSenseParams {
.pins = { pinA, pinB, pinC },
.adc_voltage_conv = (_ADC_VOLTAGE)/(_ADC_RESOLUTION),
.adc_buffer = {0,0,0},
.buffer_index = 0,
.no_adc_channels =0.
}; |
WOW, genius to use whitespaces for an library name
This will work great with Windows
|
Yeah, it's a consequence of an unfortunate decision made at the first library release back at the day. :) Windows should be fine with some quotation marks. :D |
[EDIT]: Rolling back to version 2.3.3 of the SimpleFOC library has fixed this for me and I was able to compile for the S2 and S3 without any changes. Just if anyone else comes across this issue and needs a quick fix. I am trying to compile for a WEMOS S2 Mini and am getting the same error. Unfortunately @askuric's above fix does not work, I just get the same error again.
Any help is greatly appreciated, thanks for the otherwise excellent software! |
It is an interesting one, I was unable to replicate this issue. If anyone has ideas why this could happen, I'm all ears. So another thing that you could try is: ESP32CurrentSenseParams* params = new ESP32CurrentSenseParams();
params->pins = { pinA, pinB, pinC };
params->adc_voltage_conv = (_ADC_VOLTAGE)/(_ADC_RESOLUTION); BTW. Rolling back to 2.3.3 version of the library should not work really, as v2.3.3 uses the Arduino-esp32 v2.x and the v2.3.4 uses the v3.x of the arduino-esp32. So when you rolled back did you roll back with the arduino-esp32 package as well? |
Describe the bug
Build error occurs on both Arduino IDE and Platformio
Additionally, it happens with both versions 2.3.3 and 2.3.4.
Describe the hardware setup
IDE you are using
Tried the Getting started guide? - if applicable
Yes
The text was updated successfully, but these errors were encountered: