Skip to content
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

esp32_position_control example does not compile for ESP32 Wrover Module #14

Closed
josefinHeilig opened this issue Aug 31, 2020 · 2 comments

Comments

@josefinHeilig
Copy link

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

mcpwm_sync_enable(m_slot.mcpwm_unit, MCPWM_TIMER_0, MCPWM_SELECT_SYNC_INT0, 0);`

How can I fix this?
Thanks for your help!

@josefinHeilig
Copy link
Author

I received the simple answer on the Community Forum https://community.simplefoc.com/t/esp32-position-control-example-does-not-compile-for-esp32-wrover-module/92 from DGR:

Easy fix! You just need to replace a file in your arduino installation and it will compile.

Here https://docs.simplefoc.com/microcontrollers you can find the steps in the ESP32 section.

@zhuangfengzi
Copy link

@josefinHeilig
Thanks!

@askuric askuric mentioned this issue Nov 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants