gpeyton wrote: ↑
Sun Apr 12, 2020 9:37 pm
I am trying to add the Arduino library as a component, following these instructions:
https://github.com/espressif/arduino-es ... mponent.md
I am able to reproduce the error found here:
- Checkout v4.1-beta1 IDF branch, and reinstall IDF with Eclipse
- Add hello_world project to Eclipse and ensure hello_world builds
- Follow the guide to add arduino-esp32 as a component
- Refresh project in Eclipses and rebuild
It fails with:
Code: Select all
CMake Error at ~/esp/esp-idf/tools/cmake/build.cmake:186 (message):
Failed to resolve component 'ethernet'.
Please can you let me know if there is a fix or workaround for this? At the moment, the Arduino library is completely unusable as a component, but I need to use it.
i am using arduino as a component in esp idf 4.0. I am using the vs code. I use the platform io and the espressif extension in the vs code all goes well.
Please follow these steps:
1. download the arduino compatable with the idf version 4.0. Here is the link
https://github.com/espressif/arduino-es ... lease/v4.0
2. install the esp idf in ecllipse as followed by this link.
3. Now open the hello world project and make a new directory called the "components" (please make the directory of this specific name only). copy the downloaded arduino folder in the components directory.
4. Now we need to configure one more thing only. Now open the sdk configuration editor( as describe in step 2. url). Go to the Component config -> mbedTLS-> TLS Key Exchange Methods->Enable pre-shared-key ciphersuites . enable this option and we are good to go.
5. Now build the project it should be compiled properly.
Please let me know if you need anything more .