Description
Hardware:
Board: ESP32 Wrover Module
Core Installation/update date: 4/9/2018
IDE name: ESP32 with Arduino component
Flash Frequency: 40Mhz
Upload Speed: 115200
Description:
I am trying to run Arduino code as a component in the esp-idf initially, and then in Eclipse.
I've followed the instructions here carefully :
https://github.com/espressif/arduino-esp32/blob/master/docs/esp-idf_component.md
I got some compilation errors so I referenced this link:
#1142 (comment)
and followed the instructions there carefully (both the 23rd Feb and 14th May posts) and I THINK I've done things correctly.
However I get a build error, as follows:
/home/robert/esp/blink/components/arduino/libraries/SD_MMC/src//SD_MMC.cpp: In member function 'bool fs::SDMMCFS::begin(const char*, bool)':
/home/robert/esp/blink/components/arduino/libraries/SD_MMC/src//SD_MMC.cpp:56:26: error: 'sdmmc_host_io_int_enable' was not declared in this scope
.io_int_enable = sdmmc_host_io_int_enable,
^
/home/robert/esp/blink/components/arduino/libraries/SD_MMC/src//SD_MMC.cpp:57:24: error: 'sdmmc_host_io_int_wait' was not declared in this scope
.io_int_wait = sdmmc_host_io_int_wait,
^
/home/robert/esp/blink/components/arduino/libraries/SD_MMC/src//SD_MMC.cpp:59:5: error: 'sdmmc_host_t' has no non-static data member named 'io_int_enable'
};
^
/home/robert/esp/esp-idf/make/component_wrapper.mk:273: recipe for target 'libraries/SD_MMC/src//SD_MMC.o' failed
make[1]: *** [libraries/SD_MMC/src//SD_MMC.o] Error 1
/home/robert/esp/esp-idf/make/project.mk:453: recipe for target 'component-arduino-build' failed
make: *** [component-arduino-build] Error 2
I have deselected "Autostart Arduino setup and loop on boot" (first link above) so that the main.cpp should be as below.
I'm running on Ubuntu.
Sketch:
extern "C" void app_main()
#include <stdio.h>
#include "sdkconfig.h"
#include "Arduino.h"
extern "C" void app_main()
{
initArduino();
}