Skip to content

Hard Crash after multiple reloads. #5044

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

Closed
ThomasAtBBTF opened this issue Jul 23, 2021 · 5 comments
Closed

Hard Crash after multiple reloads. #5044

ThomasAtBBTF opened this issue Jul 23, 2021 · 5 comments

Comments

@ThomasAtBBTF
Copy link

CircuitPython version

Adafruit CircuitPython 7.0.0-alpha.4 on 2021-07-08; Adafruit ItsyBitsy nRF52840 Express with nRF52840

Code/REPL

print("first line.")
s = input("first input\n")

Behavior

The code above runs fine as expected!
But when you press CTRL-D at the input several times,
there will be a hard crash of the board with no output to repl. (The serial USB-Device "goes-away")
Similar to the crash reported in #5043
Note that once the board with the nRF-52840 is powered several "unknown" Bluetooth devices are advertised.
I would like a possibility (in boot.py ?) to disable Bluetooth until the Application in code.py is ready and initialized.

Description

No response

Additional information

Actually also this code:
print("first line.")
Will after several ctrl-D's in fast sequence hard crash the board!

@ThomasAtBBTF
Copy link
Author

And it seems, that not only ciruitpython and the USB-stack stops working
also, the usual "unknown Device" advertisements of the nRF52840 are not sent anymore.

@dhalbert dhalbert added this to the 7.0.0 milestone Jul 23, 2021
@jepler
Copy link

jepler commented Jul 23, 2021

This is probably the same as #5018.

@ThomasAtBBTF
Copy link
Author

I still would like to be able to actively start Bluetooth in code.py when turned off in boot.py

@jepler
Copy link

jepler commented Jul 23, 2021

@ThomasAtBBTF Thanks! I overlooked this element of the issue because I read it too quickly.

It would be great if you enter a fresh feature request for these items (maybe just one, as they do seem closely related/interdependent). I do agree that we have room to refine how the bluetooth "flow" goes and how to control it from code, though I only know the basics and haven't used it much for myself.

I still would like to be able to actively start Bluetooth in code.py when turned off in boot.py

I would like a possibility (in boot.py ?) to disable Bluetooth until the Application in code.py is ready and initialized.

@ThomasAtBBTF
Copy link
Author

Will do so.
Thank you!
And: My gut feeling tells me, that the "Hit ctrl-d repeatedly bug" is related to communication with the Nordic API when bringing up CircuitPython after a reload or reset.
The advertisement of the "stock-devices" needs somehow be stopped "nicely" and CP needs to take over.

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

No branches or pull requests

3 participants