Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

Hello
While trying to get an idea of how your library works, I am trying to run your example codes, but I have been getting an fatal error.
I'm using an esp32 dev module with your example code for an esp32. I have made no modifications to your code.

This is the error I'm getting.

c:\Users\NAME\Documents\Arduino\libraries\Arduino-FOC-master\src\drivers\hardware_specific\esp32_ledc_mcu.cpp:
21:26: fatal error: soc/soc_caps.h: No such file or directory
compilation terminated.

Compilation error: exit status 1

What is the file soc/soc_caps.h supposed to be?
Do I need another library like esp-idf to run code?

Thanks in advance

You must be logged in to vote

This error depends on the Espressif vs. SimpleFOC versions, because Espressif changes their APIs over time.

In terms of the warning, this has now been fixed and will be part of the next release.

Replies: 2 comments

Comment options

Its compiling now. I have no clue what changed, but I did unistall and reinstall the ESP32 board manager. I did get another different warning, but there was an easy fix.

  // add target command T
  command.add('T', doTarget, "target angle");

I got the warning below.

ISO C++11 does not allow conversion from string literal to 'char *'

The easy fix I found was to initialize the the string a char variable before the command.

  // add target command T
  char command_angle [] = "target angle";
  command.add('T', doTarget, command_angle);

You must be logged in to vote
0 replies
Comment options

This error depends on the Espressif vs. SimpleFOC versions, because Espressif changes their APIs over time.

In terms of the warning, this has now been fixed and will be part of the next release.

You must be logged in to vote
0 replies
Answer selected by runger1101001
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
🙏
Q&A
Labels
None yet
2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.