-
Notifications
You must be signed in to change notification settings - Fork 118
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
nRF51-DK printf() causes hang when PC serial port not active / not opened. #25
Comments
Here's the
I've tried with GCC 4.9 and 5.4, both exhibit identical behavior. |
Related issue, possibly: ARMmbed/mbed-os#2474 |
Can you confirm is #2535 resolved this issue? |
I will take a look. |
Confirmed ARMmbed/mbed-os#2535 resolved the issue after adding to
|
Already reported this once in the mbed OS codebase, here's another concrete example of this happening.
The problem is that, with the nRF51-DK hooked up to my computer, if I don't connect to and open the serial port exposed as
/dev/ttyACM0
, whatever software is running on the DK board will just hang. It seems like the Nordic serial port code locks up because it always expects some hardware flow control of some sort, so that if I don't haveminicom
running, it doesn't work. Also, if I runminicom
then exit from it, the DK board will keep running for a while, then eventually hangs.The Nordic serial port code simply does not work properly. Where, in the HAL (pun intended), do I fix that?
Here's a video of this happening.
The video shows the code example from my fork here, which is running:
minicom
open.minicom
, the board starts printing "Alive." again.minicom
, the board eventually hangs again.The text was updated successfully, but these errors were encountered: