I have created a project from the extension template "Arduino-as-component".
When compiling I get error that it failed to to load "tinyusb"
Anyone know what this is about and how to fix it?
Could it be related to not finding the com port
thanks
ESP-IDF extension issue with Arduino Component
-
- Posts: 229
- Joined: Wed May 02, 2018 12:12 pm
Re: ESP-IDF extension issue with Arduino Component
It might be useful to share your build output and extension log for other users to provide feedback or suggestions.
Re: ESP-IDF extension issue with Arduino Component
I have gone back today to create a new project and the function has gone from the menu. Now I only see "Add Arduino ESP32 as ESP-IDF component".
I run this and get message "arduino already exists".
Shouldn't I be able to create an arduino compatible component?
Also, how do I use the command above? I am wanting to create a project that uses arduino cpp + ,h files and write my own main for it.
Here is output when I attempt to compile and flash
> Executing task: cmake -G Ninja .. <
-- ccache will be used for faster recompilation
-- Building ESP-IDF components for target esp32
CMake Error at C:/esp/esp-idf/tools/cmake/build.cmake:186 (message):
Failed to resolve component 'arduino_tinyusb'.
Call Stack (most recent call first):
C:/esp/esp-idf/tools/cmake/build.cmake:217 (__build_resolve_and_add_req)
C:/esp/esp-idf/tools/cmake/build.cmake:426 (__build_expand_requirements)
C:/esp/esp-idf/tools/cmake/project.cmake:395 (idf_build_process)
CMakeLists.txt:6 (project)
-- Configuring incomplete, errors occurred!
See also "D:/Firmware/Cab_Wifi/build/CMakeFiles/CMakeOutput.log".
The terminal process "C:\WINDOWS\System32\cmd.exe /d /c cmake -G Ninja .." terminated with exit code: 1.
I run this and get message "arduino already exists".
Shouldn't I be able to create an arduino compatible component?
Also, how do I use the command above? I am wanting to create a project that uses arduino cpp + ,h files and write my own main for it.
Here is output when I attempt to compile and flash
> Executing task: cmake -G Ninja .. <
-- ccache will be used for faster recompilation
-- Building ESP-IDF components for target esp32
CMake Error at C:/esp/esp-idf/tools/cmake/build.cmake:186 (message):
Failed to resolve component 'arduino_tinyusb'.
Call Stack (most recent call first):
C:/esp/esp-idf/tools/cmake/build.cmake:217 (__build_resolve_and_add_req)
C:/esp/esp-idf/tools/cmake/build.cmake:426 (__build_expand_requirements)
C:/esp/esp-idf/tools/cmake/project.cmake:395 (idf_build_process)
CMakeLists.txt:6 (project)
-- Configuring incomplete, errors occurred!
See also "D:/Firmware/Cab_Wifi/build/CMakeFiles/CMakeOutput.log".
The terminal process "C:\WINDOWS\System32\cmd.exe /d /c cmake -G Ninja .." terminated with exit code: 1.
-
- Posts: 229
- Joined: Wed May 02, 2018 12:12 pm
Re: ESP-IDF extension issue with Arduino Component
In your project components folder there is an existing Arduino folder. Probably you tried to use the command for Arduino as ESP-IDF component but there was some error while cloning the Arduino component.
The build error is because some missing component, probably due to previously described error.
Check this use Arduino libraries as ESP-IDF component and consider that many libraries might not be compatible without additional changes from your side.
The build error is because some missing component, probably due to previously described error.
Check this use Arduino libraries as ESP-IDF component and consider that many libraries might not be compatible without additional changes from your side.
Re: ESP-IDF extension issue with Arduino Component
I started a fresh project and still get same error (even though there is no "components" folder in project folder.
So, I followed the link and created a components folder and cloned the arduino stuff into it and the recursive clone into arduino sub folder.
However, once I got to step to "make menuconfig", the command line did not understand this.
I tried build menuconfig in vscode but it does not have the arduino menu options. I assume I need a kconfig file or something?
The project including the components/arduino folders was too big to zip so I have just attached the project files showing what I want to compile.
All this manual creation of components folder etc, is this because the "Add Arduino ESP32 as ESP component" function does not work yet?
So, I followed the link and created a components folder and cloned the arduino stuff into it and the recursive clone into arduino sub folder.
However, once I got to step to "make menuconfig", the command line did not understand this.
I tried build menuconfig in vscode but it does not have the arduino menu options. I assume I need a kconfig file or something?
The project including the components/arduino folders was too big to zip so I have just attached the project files showing what I want to compile.
All this manual creation of components folder etc, is this because the "Add Arduino ESP32 as ESP component" function does not work yet?
- Attachments
-
- Arduino_project.zip
- (42.79 KiB) Downloaded 459 times
Who is online
Users browsing this forum: No registered users and 30 guests