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

no advertising with ESP32-C6 #645

Open
lyusupov opened this issue Mar 8, 2024 · 6 comments
Open

no advertising with ESP32-C6 #645

lyusupov opened this issue Mar 8, 2024 · 6 comments

Comments

@lyusupov
Copy link

lyusupov commented Mar 8, 2024

This is a follow up for #642 ticket.

Branch: https://github.com/h2zero/NimBLE-Arduino/tree/esp32-c6-test
most recent Arduino Core 3.0.0-alpha3
NimBLE Server sketch from examples folder

The boot sequence is fine:

ESP-ROM:esp32c6-20220919
Build:Sep 19 2022
rst:0x1 (POWERON),boot:0xc (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:DIO, clock div:2
load:0x4086c410,len:0xc24
load:0x4086e610,len:0x2708
load:0x40875728,len:0x594
entry 0x4086c410
Starting NimBLE Server
controller lib commit: [77d09ce]
Advertising Started

However, the ESP32-C6 device is not seen in Nordic tool.



When I build and run the sketch with the same Core but for ESP32-C3 target - everything looks just fine:

@h2zero
Copy link
Owner

h2zero commented Mar 9, 2024

Confirmed, error code 0x0207, BLE_ERR_MEM_CAPACITY when setting the advertisement data.

Will advertise when commenting out the data setting and allow connection but crashes immediately. Looks to be caused by the memory system either not being initialized or missing a step somewhere. I haven't been able to get the debugging to work on the C6 as openocd can't find the config file.

My suspicion is a memory conflict with the controller which is frustratingly closed source so I cannot walk through it.

@xelprep
Copy link

xelprep commented Mar 31, 2024

I am having this same issue as well with the esp32-c6-test branch. I'm using this library with a SparkFun ESP32-C6 Qwiic Pocket Development Board which uses a ESP32-C6 Mini-1 SoC. I'm not much of a C dev and Bluetooth is magic to me but please let me know if there's anything I can do to help here. Happy to test or validate any fixes for this library in Arduino or Platformio if needed.

@h2zero
Copy link
Owner

h2zero commented Apr 6, 2024

This is a pretty major mod to the upstream code and will take time to sort out, I will post here when there are changes pushed for testing.

@btsimonh
Copy link
Contributor

TAS moved to core 3.0.0 for TAS version 14+, and BLE seems broken. I am guessing this could be related?

@Jason2866
Copy link
Contributor

@btsimonh Not fully correct. Tasmota does use esp-nimble-cpp

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

5 participants