Page 1 of 1

Problems including esp-idf library

Posted: Sun Aug 21, 2022 9:52 am
by MarkAnd1
Hello!

I'm trying to integrate BLE with nimble into one of my projects. When I try to include sp_nimble_hci.h I get the following error after running "idf.py build":

fatal error: esp_nimble_hci.h: No such file or directory

What is the reason for this?

Here are my include paths:

Code: Select all

 "includePath": [
                "${workspaceFolder}/**",
                "/home/markus/esp/esp-idf/**"
            ]
And here is my main CMakeLists.txt:

Code: Select all

idf_component_register(SRCS "door_lock.c"
                    INCLUDE_DIRS "/home/markus/esp/esp-idf/projects/door_lock/lib")

Re: Problems including esp-idf library

Posted: Tue Aug 23, 2022 8:37 am
by ESP_igrr
Just to check, have you enabled Bluetooth support and the Nimble stack in menuconfig?

Re: Problems including esp-idf library

Posted: Thu Nov 03, 2022 4:47 am
by mehbstnc
Try to open menuconfig and in the menuconfig go to component config->Bluetooth->Bluetootrh Host select BLE only
after that save config then build.