Problems including esp-idf library

MarkAnd1
Posts: 2
Joined: Sat Jul 16, 2022 9:23 am

Problems including esp-idf library

Postby MarkAnd1 » Sun Aug 21, 2022 9:52 am

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")

ESP_igrr
Posts: 2071
Joined: Tue Dec 01, 2015 8:37 am

Re: Problems including esp-idf library

Postby ESP_igrr » Tue Aug 23, 2022 8:37 am

Just to check, have you enabled Bluetooth support and the Nimble stack in menuconfig?

mehbstnc
Posts: 8
Joined: Mon Aug 22, 2022 12:15 pm

Re: Problems including esp-idf library

Postby mehbstnc » Thu Nov 03, 2022 4:47 am

Try to open menuconfig and in the menuconfig go to component config->Bluetooth->Bluetootrh Host select BLE only
after that save config then build.

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 96 guests