I’m trying to start building for the ESP32 with platformIO (Atom on OSX)
I’m confused as to how to get platformIO to install, or locate the SDK + toolchain.
Following these instructions: http://www.instructables.com/id/Develop-ESP32-With-PlatformIO-IDE/
- It seems that all that is required is to start an ESP32 project and hit ‘build’
I get this error:
src/app_bt.c:13:20: fatal error: esp_bt.h: No such file or directory
and the suggestion:
- Looking for esp_bt.h dependency? Check our library registry!
- CLI > platformio lib search “header:esp_bt.h”
- Web > http://platformio.org/lib/search?query=header:esp_bt.h
Trying the search I get:
Nothing has been found by your request
esp_bt.h is nowhere on my filing system, so I tried downloading the SDK+toolchain myself, and adding to platformio.ini
build_flags = -I/Users/tim/esp/esp-idf/components/bt/include/
(it seems to require the full path?)
…this seemed to locate the header, and I got a new error:
.pioenvs/nodemcu-32s/src/app_bt.o:(.literal.app_main+0x34): undefined referenc
e to `esp_bt_controller_mem_release’
my question is, what’t the correct way to connect the IDE with the SDK+ toolchain? Do I have to locate and include every header and library manually?