-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
Problems using arduino-ESP32 as ESP-IDF component #5064
Comments
In IDF 4+, all commands should use idf.py instead of make |
Sorry, I assumed you were compiling with idf 4. |
No matter which esp-idf, logs shows you are using ninja, so you should use The problem is with this part I think you may get better and faster support with this issue when you post it in esp-idf repo. |
Maybe it would be worth trying to remove the project's |
Current Arduino master is building with IDF master. There is a release/v1.0 branch that works with IDF 3.3.5. Instructions need updating. I would recommend you to use the lib builder: https://github.com/espressif/esp32-arduino-lib-builder |
Something is for sure broken somewhere. It's like hot potato on where the latest bug is trying to build this. esp-idf version
project version
arduino component version
If I need to be pegged on some very specific branch/release of:
can the winning example please be documented somewhere? if you follow the current documentation 1:1, you will run into bugs about:
https://github.com/espressif/arduino-esp32/blob/master/docs/esp-idf_component.md#installation Where does it say here that you shouldn't end up on |
I started from scratch and got the same result:
Instead of trying to use
|
Then you need to do
Then it will fail with
you need to change |
Then it will fail with this:
Get around that with |
Then it will fail with this:
|
Replace
Fix is here: #2154 (comment) |
new error lol
Fix: add |
I have docker containers which have all the resources and are ready to build. https://hub.docker.com/r/lbernstone/esp32-arduino-lib-builder |
Apple M1 isn't supported on 1.0.6. Any plans to make a Docker hub image for espressif/arduino-esp32:2.0.0-alpha1? Update: |
Is there a fix for this? |
You can open a new issue on this, but it is going to depend on the upstream guys to build a toolchain. What is the arch on M1 ( |
2.0.0alpha1 |
@brandonros: Thank you for sharing your experience! I just ran into the same issues when following the official documentation building arduino-ESP32 as ESP-IDF component. I was looking forward to finally having a working version with the recent WiFi fixes (e.g. commit ad4cf14). Can we expect the Arduino as ESP-IDF component to work for the upcoming 2.0? |
I was able to get it fully working but boy was it not fun lol https://gist.github.com/brandonros/74cae1694c34368a1181ecad801895de it was something like this, let me know if i need to make any updates/changes |
Thanks @brandonros, yes, I also had a different compilation issue for my specific project, but your recipe works for me with "release/v4.3" branch of ESP-IDF. For the arduino-esp32 CMakelists.txt I added: (ul-gh@a2fbaf8) I also tried ESP-IDF master a few days ago, which compiled, too back then (the cherry-picked ksz8081 patch was not necessary any more in master) |
@brandonros Hi. Thanks for your job! Just a little question, I struggled with error "Failed to resolve component 'arduino_tinyusb'." when running And you suggested to run I tried to run this command just from the project folder. Any advices will be appreciated. |
For what it's worth, |
Failed to resolve component 'arduino_tinyusb'. It seems like arduino_tinyusb exists only arduino-esp32 and not in esp-idf |
why is it so hard to have at least one official arduino-esp32 library that works with any kind of v4+ version of ESP-IDF? |
Well that's good, but it doesn't work with ESP-IDF Master or the referenced version of the last alpha release. |
Thanks. I think it's a good example to visualise what's wrong with this repo and what's needed to even get a build up and running but it doesn't apply to my use-case as I'm not working with sketchbooks/Arduino IDE but merely use this as a library via CMake. Again, I'd gladly take commit hashes that work together. Somehow the maintainers of this repo must get a build up and running? Quite tricky if even the CI on master is red right now (or maybe has always been). |
Please actually look at what I have provided. It has the commit hashes. |
@lbernstone Thanks for the docker file. I checked the instruction on your docker hub. I tried to modify the sdkconfig using "idf.py menuconfig" but there is an error: |
v1.0.x images will use |
change idf_component_register() in CMakeLists.txt to register_component(). |
Unfortunately, the bug still exists.
Replacing 81 with 41 solves the problem issue, but I'm not sure if this is the right way... arduino-esp32 (2.0.0-alpha1) is no longer compiled with esp-idf (release/4.3), even the Does anyone get to compile arduino-esp32 (???) with esp-idf (release/4.3) version without replacing 81 with 41? |
Am 17.06.21 um 12:44 schrieb Sterpa:
Does anyone get to compile arduino-esp32 (???) with esp-idf
(release/4.3) version without replacing 81 with 41?
Hi,
I guess it is best to stay with a fixed commit or tag as long as it works.
There should be a new bug report filed on arduino-esp32 with the title:
"please tag at least one version that actually compiles with current
esp-idf".
|
me-no-dev builds it to what works. It is up to mere mortals to backport his work into "older" aka stable branches. |
I could compile changing the esp_eth_phy_new_ksz8081 |
Actually it looks like
Note that the above is already inside a |
Hi all. |
+1 for the above. I would also like to know if the problem has been fixed. The last I tried to compile (which was about a week back), it would give errors. |
I have this working now. Internet is full of instructions about how to use arduino-esp in a esp-idf environment. As far as I can tell a lot of those instructions is either faulty and or outdateded.
There you have it,, i```
|
@lgLindstrom Do you consider to contribute to Arduino ESP32 online Documentation? We will appreciate your feedback and your modifications to make the docs more straight forward for users. Thanks! |
Thx man this run fine by me with esp32 modules. |
Hello, I'm closing this issue. Right now ESP-IDF v4.4 is supported for using Arduino as ESPIDF component. Related issue #5819. |
Hi
I am trying to follow this instruction https://github.com/espressif/arduino-esp32/blob/master/docs/esp-idf_component.md
This line gives me problem:
make menuconfig
The make command seems to be missing and als the menuconfig file:
My process.
I am running VsCode on Windows 10.
I have installed VsCode ESP-IDF extension.
I have configured the ESP-IDF extension. Downloaded version 3.5
I have installed the Blink example from the ESP-IDG.
I have compiled the example and it worked well.
THEN,
So, what to do?
The text was updated successfully, but these errors were encountered: