-
Notifications
You must be signed in to change notification settings - Fork 37
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
Panic on Peripheral::advertise when using esp32c6 #229
Comments
Ok, found the problem! host is not initialized, so advertise breaks, need to wait until Lines 831 to 833 in 419e298
|
I noticed this yesterday, as well. Great to have you on it. |
ok, just for tracking it, after checking deeply, looks like that this exec is what it's failing: Lines 814 to 822 in 419e298
|
@eloycoto Is this command producing an error or just hanging? |
This comment was marked as off-topic.
This comment was marked as off-topic.
In this case, it's not panic (It panics in the example), just return an invalid parameter error. |
And the params are the following:
And this is the error:
|
Was checking the doc for the command: And looks like that Tried this, and also fails :-(
|
I've been having the same issue with the esp32c6 and I noticed that all of the other examples except from /// Size of L2CAP packets
#[cfg(not(feature = "esp"))]
pub const L2CAP_MTU: usize = 128;
#[cfg(feature = "esp")]
// Some esp chips only accept an MTU >= 1017
pub const L2CAP_MTU: usize = 1017; Adding the above to the Note that I'm using a Waveshare ESP32-C6 Development Board that has a ESP32-C6-WROOM-1-N8 Module. |
Yup, this should probably be set for ble_bas_peripheral as well, good catch! Can you create a PR with the fix? |
I had always thought that
That would give an idea already in the |
Agreed to renamed the feature, i prefer the first variant |
Just for context, sometimes when I flash/start again the ble, the init of Mostly here: When interrupt_number 4, cpu_interrupt_number 1 |
Here's my terminal output from running https://gist.github.com/jamessizeland/91cd55d0e80e5995cb413a915ee6849e |
esp-rs/esp-hal#2883 added to esp_wifi issue |
Problem has been fixed upstream: I guess that esp-hal need to be updated to the latest version in examples |
closed by c5c2eab, thanks for fixing! |
When the reaching here:
trouble/host/src/peripheral.rs
Lines 64 to 73 in 419e298
the BleHost:command is called, but if fails on OnceLock on initalized
And the panic:
I might fix it, but I need to check how to use gdb with espflash, etc.. it might take a while, so any hint it's welcome :-)
Using bas_peripheral_example and esp32c6
The text was updated successfully, but these errors were encountered: