Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request] Support for ESP32-C6 #43

Open
troglodisme opened this issue Aug 20, 2024 · 6 comments
Open

[Feature request] Support for ESP32-C6 #43

troglodisme opened this issue Aug 20, 2024 · 6 comments
Assignees

Comments

@troglodisme
Copy link

I can't compile any of the examples on a ESP32-C6 board (specifically Sparkfun ESP32-C6 Thing Plus). I believe this is due to an issue with NimBLE library you are using. Can you please suggest a solution?

In file included from /Users/giulio/Library/Arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-b6b4727c58/esp32c6/include/bt/include/esp32c6/include/esp_bt.h:17, from /Users/giulio/GitHub/resources/Arduino/libraries/NimBLE-Arduino/src/NimBLEDevice.h:46, from /Users/giulio/GitHub/resources/Arduino/libraries/Sensirion_Gadget_BLE_Arduino_Lib/src/NimBLELibraryWrapper.cpp:2: /Users/giulio/Library/Arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-b6b4727c58/esp32c6/include/bt/common/api/include/api/../../../../controller/esp32c6/esp_bt_cfg.h:19:10: fatal error: syscfg/syscfg.h: No such file or directory 19 | #include "syscfg/syscfg.h" | ^~~~~~~~~~~~~~~~~ compilation terminated.

@LeonieFierz
Copy link
Member

Hi @troglodisme

Your assumption is right, the NimBLE lib unfortunately does not support the ESP32-C6 yet. However, there is a feature request for it and there is already a branch with a test implementation which seems to work. See h2zero/NimBLE-Arduino#642

If this does not work out, you could plug in another BLE lib by implementing the src/IBLELibraryWrapper.h.

Best, Léonie

@davidkreidler
Copy link

I've tried my luck without success on two different esp32-c6 boards using the "esp32-c6-test" branch.
https://github.com/h2zero/NimBLE-Arduino/tree/esp32-c6-test
The gadget simply did not show up in the Sensirion MyAmbience app.

The NimBLE-Arduino example code here worked https://github.com/h2zero/NimBLE-Arduino/tree/esp32-c6-test/examples/NimBLE_Client . I was able to see Bluetooth devices around reported by the esp32-c6 itself via serial.

The same branch but on an esp32-S3 was successful. I will look next into the messages further down in the issue h2zero/NimBLE-Arduino#642.

@troglodisme
Copy link
Author

Thanks @davidkreidler and @LeonieFierz

Interesting that you could get the esp32-c6-test branch to work for the NimBLE_Client example. If my case it doesn't successfully finish compilation process. Could you please share your setup?

@davidkreidler
Copy link

Arduino IDE 2.3.2
esp32 by Espressif Systems 3.0.3
NimBLE-Arduino branch esp32-c6-test
Sensirion core 0.7.1
Sensirion Gadget BLE Arduino Lib 1.3.2
Sensirion I2C SCD4X 0.4.0
Sensirion UTP CORE 0.4.0

@LeonieFierz LeonieFierz self-assigned this Aug 30, 2024
@troglodisme
Copy link
Author

hi @LeonieFierz any updates on this? I noticed you assigned the issue to yourself. Thank you. I have not managed to move forward with it.

@LeonieFierz
Copy link
Member

Hi @troglodisme
As we do not have a esp32-c6 available for testing I cannot test it myself. Did you try running the NimBLE_Server example?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants