Skip to content

nrf52 serial port printf causes system hang #4581

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
shayo opened this issue Jun 17, 2017 · 1 comment
Closed

nrf52 serial port printf causes system hang #4581

shayo opened this issue Jun 17, 2017 · 1 comment

Comments

@shayo
Copy link

shayo commented Jun 17, 2017


Bug

I believe the same behavior (serial port not open on PC causing system hang) happens on nrf52 targets as well. As soon as I reach a printf, the cpu hang.
This was reproducible on nrf52DK when trying to open a second serial port on two random I/O pins.
Is there a workaround for nrf52? I saw the related issue on nrf51dk.
This did not pose a problem in older versions of mbed, but seems to be happening with mbed lib v144 (both OS2 and OS5).

Target
NRF52

Toolchain:
GCC_ARM / mbed online compiler

Expected behavior
System should not hang.

Actual behavior
System hangs.

@shayo
Copy link
Author

shayo commented Jun 17, 2017

Confirmed. Adding
"target_overrides": {
"NRF52_DK": {
"target.uart_hwfc": 0
}
To the mbed_app.json solves this problem.

@shayo shayo closed this as completed Jun 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant