Open FlyingThings opened 2 months ago
Please retest with the absolute newest build.
Same issue as described above. Here is the error after it restarts into safe mode:
Adafruit CircuitPython 9.1.3-2-gfad755d5e7 on 2024-09-12; FeatherS3 with ESP32S3
>>>
soft reboot
Auto-reload is off.
Running in safe mode! Not running saved code.
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.
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.
Adafruit CircuitPython 9.2.0-alpha.2351-35-g64cb76213f on 2024-09-13; FeatherS3 with ESP32S3
>>>
soft reboot
Auto-reload is off.
Running in safe mode! Not running saved code.
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.
Press any key to enter the REPL. Use CTRL-D to reload.
9.2.0 beta.0 has a little bit different behavior, can initially connect, and reconnect, but one a message is received it crashes.
Adafruit CircuitPython 9.2.0-beta.0 on 2024-09-17; FeatherS3 with ESP32S3
>>>
soft reboot
Auto-reload is off.
Running in safe mode! Not running saved code.
You are in safe mode because:
CircuitPython core code crashed hard. Whoops!
Hard fault: memory access or instruction error.
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.
Adafruit CircuitPython 9.2.0-beta.0 on 2024-09-17; FeatherS3 with ESP32S3
>>>
soft reboot
Auto-reload is off.
Running in safe mode! Not running saved code.
You are in safe mode because:
CircuitPython core code crashed hard. Whoops!
Hard fault: memory access or instruction error.
also tried the latest beta and same behavior
Adafruit CircuitPython 9.2.0-beta.1-1-g55823ba3b0 on 2024-10-11; FeatherS3 with ESP32S3
>>>
soft reboot
Auto-reload is off.
Running in safe mode! Not running saved code.
You are in safe mode because:
CircuitPython core code crashed hard. Whoops!
Hard fault: memory access or instruction error.
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.
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.