espressif / esp-idf

Espressif IoT Development Framework. Official development framework for Espressif SoCs.
Apache License 2.0
13.7k stars 7.3k forks source link

ESP32C6 unable to use nimble - fatal error: esp_nimble_hci.h: No such file or directory (IDFGH-13708) #14580

Closed rkonopski closed 5 days ago

rkonopski commented 1 month ago

Answers checklist.

IDF version.

v5.3.1

Operating System used.

Linux

How did you build your project?

VSCode

If you are using Windows, please specify command line type.

None

What is the expected behavior?

Load component on ESP32C6

What is the actual behavior?

Error is thrown

fatal error: esp_nimble_hci.h: No such file or directory
   10 | #include "esp_nimble_hci.h"

Steps to reproduce.

  1. Set target platform as ESP32C6
  2. Enable bluetooth
  3. Enable nimble
  4. Build

Build or installation Logs.

No response

More Information.

No response

rahult-github commented 1 month ago

Hi @rkonopski ,

Can you please share more information, since all IDF examples do compile cleanly for ESP32C6.

  1. Please share your sdkconfig
  2. Is this your own application ? if yes , have you ensured that correct files are getting included ?
  3. Please ensure you have synced to latest code and have all needed codebase

Just to add : For your custom project, it should include all the necessary paths, libraries, and compiler options. Please compare the CMakeLists.txt or Makefile between existing IDF example project and your custom project.

rahult-github commented 1 month ago

Hi @rkonopski , did you get a chance to check on this further ?

maksms commented 3 weeks ago

I confirm. OK: esp32s , esp32c3 NO OK: esp32c2 , esp32c6 ESP-IDF Release v5.3.1

rahult-github commented 3 weeks ago

Hi @maksms ,

This is expected. This is because esp-nimble-hci.h includes defination which are needed for VHCI layer between NimBLE host and ESP bluetooth controller. esp32 / c3/ s3 use VHCI interface, rest chips don't.

What functionality do you want to do by including esp_nimble_hci.h file ?

maksms commented 1 week ago

@rahult-github thank you, I really don't need this file for my task

rahult-github commented 5 days ago

Closing issue per above comment . Please feel free to reopen in case issue is still observed.