-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Board enters safe mode after disconnect from 1 of 2 BLE connections. #9573
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
Comments
Please retest with the absolute newest build. |
Same issue as described above. Here is the error after it restarts into safe mode:
I appreciate the help! |
Thanks for the retest! It looks like you got the latest of the 9.1.x branch. Please try https://adafruit-circuit-python.s3.amazonaws.com/bin/unexpectedmaker_feathers3/en_US/adafruit-circuitpython-unexpectedmaker_feathers3-en_US-20240913-main-PR9619-64cb762.uf2 which is on the main branch and includes IDF updates. |
Could you try 9.2.0-beta.0? |
9.1.x same behavior. Crashes when connected device disconnects.
9.2.0 beta.0 has a little bit different behavior, can initially connect, and reconnect, but one a message is received it crashes.
|
If you just connect one device, and then restart that device a few times, do you see the same or a similar issue? I am interested in knowing if we need to test with two "paws" or not. |
OK retested with just one connection. Still crashing once a message is sent from the peripheral.
also tried the latest beta and same behavior
|
Could you post or point to the code for the LEFTPAW and RIGHTPAW devices? Confirming that these are CPB's. |
I have been trying this with some similar code, and haven't yet been able to reproduce. I'm moving this forward to 9.x.x for now. |
Same issue. Connecting and disconnecting loop with prior message exchange either alternating between two connections or one connection only. Tried different timings and enhanced double cleanup mechanism. |
Apologies for the late response. Crashing on 9.2.4 when peripheral sends a message. I want to add this: the number of connections the central shows is 1 even after the peripheral turns off / disconnects. Here is the code for one of the paws circuitplayground bluefruit. Hopefully this is enough, as crashes occur with one device restart and message. |
CircuitPython version
Code/REPL
Behavior
Board will connect to 2 devices "LEFTPAW" and "RIGHTPAW" normally, and receive messages as expected. Restarting one of the connected devices once is usually OK, code will reconnect normally. After a number of restarts of a connected device (sometimes up to 3 restarts) this board will hang, and then finally crash to safe mode.
Here is the caught error immediately before safe mode:
Connection has been disconnected and can no longer be used. Create a new connection.
And the safe mode message:
You are in safe mode because:
CircuitPython core code crashed hard. Whoops!
Hard fault: memory access or instruction error.
Please file an issue with your program at github.com/adafruit/circuitpython/issues.
Press reset to exit safe mode.
Description
No response
Additional information
I have similar code running without issue on a Feather NRF52840. The connected devices are Circuit Playground Bluefruit boards running CircuitPython.
The text was updated successfully, but these errors were encountered: