ESP-IDF extension issue with Arduino Component

orbitcoms
Posts: 141
Joined: Fri Aug 03, 2018 10:08 pm
Location: Sydney, Australia

ESP-IDF extension issue with Arduino Component

Postby orbitcoms » Thu May 13, 2021 8:46 pm

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_bignacio
Posts: 213
Joined: Wed May 02, 2018 12:12 pm

Re: ESP-IDF extension issue with Arduino Component

Postby ESP_bignacio » Fri May 14, 2021 8:22 am

It might be useful to share your build output and extension log for other users to provide feedback or suggestions.

orbitcoms
Posts: 141
Joined: Fri Aug 03, 2018 10:08 pm
Location: Sydney, Australia

Re: ESP-IDF extension issue with Arduino Component

Postby orbitcoms » Sat May 15, 2021 12:08 am

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.

ESP_bignacio
Posts: 213
Joined: Wed May 02, 2018 12:12 pm

Re: ESP-IDF extension issue with Arduino Component

Postby ESP_bignacio » Tue May 18, 2021 7:46 am

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.

orbitcoms
Posts: 141
Joined: Fri Aug 03, 2018 10:08 pm
Location: Sydney, Australia

Re: ESP-IDF extension issue with Arduino Component

Postby orbitcoms » Sat May 22, 2021 3:11 am

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?
Attachments
Arduino_project.zip
(42.79 KiB) Downloaded 381 times

Who is online

Users browsing this forum: No registered users and 35 guests