question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Arduino as ESP-IDF component

See original GitHub issue

Hi, Copying issue from https://community.platformio.org/t/arduino-h-not-found-esp32-with-esp-idf-framework/1257 to platform-espressif32.

Currently I am building for ESP32 using PlatformIO + Atom with the ESP-IDF Framework. The Platform.ini file details are as below: [env:esp32dev] platform = espressif32 framework = espidf board = esp32dev

According to the docs https://github.com/espressif/arduino-esp3217 (section: Using as ESP-IDF component) the ESP-IDF Framework can have Arduino as component (and this works with ESP-IDF using make flash). Trying the same with PlatformIO, but compiler throws an error that Arduino.h cannot be found.

Is this an issue or do I need to make some changes which I am not aware of? hope somebody can help here.

------------- Log Start ----------------- Processing esp32dev (platform: espressif32; lib_ldf_mode: deep; board: esp32dev; framework: espidf)

Verbose mode can be enabled via -v, --verbose option Collected 0 compatible libraries Looking for dependencies… Project does not have dependencies Compiling .pioenvs\esp32dev\src\main.o

Generating partitions .pioenvs\esp32dev\partitions_table.bin Generating LD script .pioenvs\esp32dev\esp32_out.ld Compiling .pioenvs\esp32dev\bootloader\bootloader_start.o Compiling .pioenvs\esp32dev\bootloaderSupport\src\bootloader_flash.o Compiling .pioenvs\esp32dev\bootloaderSupport\src\bootloader_random.o Compiling .pioenvs\esp32dev\bootloaderSupport\src\efuse.o Compiling .pioenvs\esp32dev\bootloaderSupport\src\esp_image_format.o Compiling .pioenvs\esp32dev\bootloaderSupport\src\flash_encrypt.o Compiling .pioenvs\esp32dev\bootloaderSupport\src\flash_partitions.o src\main.c:8:52: fatal error: components/arduino/cores/esp32/Arduino.h: No such file or directory compilation terminated. *** [.pioenvs\esp32dev\src\main.o] Error 1 ------------- Log End ------------------

Regards, Andy

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:3
  • Comments:44 (19 by maintainers)

github_iconTop GitHub Comments

7reactions
valeroscommented, Jul 4, 2019

Hi @anilanilb @williamesp2015 @bryanmtdt @radaiko @Redferne @BuzzRage @sticilface @MatheusAbel! Finally, we’ve found some spare time and added initial support for this feature. Many thanks to @atanisoft who did a great job and provided a classy PR that served as the basis for the current implementation. Two new examples blink and wifiscan from @atanisoft PR have been added to this repository. Now, the most of Arduino libraries should be compatible with IDF framework but keep in mind that this feature is still in an early experimental stage and IDF projects that need it must have a special version of sdkconfig.h file (see examples). To test it, just install the platform from the upstream branch.

3reactions
thewizkid87commented, Jul 31, 2019

@valeros

I tried again, removed the platform then put it back.

Finally it works with these configs:

platform = https://github.com/platformio/platform-espressif32.git framework = arduino, espidf monitor_speed = 115200 board_build.partitions = partitions_singleapp.csv

Thanks for the help

Read more comments on GitHub >

github_iconTop Results From Across the Web

Arduino as an ESP-IDF component
Arduino Lib Builder is the tool that integrates ESP-IDF into Arduino. It allows you to customize the default settings used by Espressif and...
Read more >
Successfully built arduino-esp32 as component on esp-idf v4 ...
After a whole afternoon googling around, I was finally able to build an esp-idf project with arduino-esp32 as a component.
Read more >
we can use the Arduino libraries as an ESP-IDF component
hi everyone, i am using ESP32 KIT with framework ESP-IDF on eclipse and i want to know if i can use any librairies...
Read more >
Using Arduino libraries with ESP-IDF : r/esp32 - Reddit
I got the IDF installed and working, but how can download and add the Arduino libraries to it? For example, I want to...
Read more >
Using ESP32 Arduino Core as a Component in ESP-IDF ...
Using ESP32 Arduino Core as a Component in ESP-IDF Projects · Start Visual Studio and open the VisualGDB ESP32 Project Wizard: · On...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found