-
Notifications
You must be signed in to change notification settings - Fork 3k
nRF5x UART Hang #6824
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
Hey, can you post your custom_target.json, please? |
The only relevant details from my custom target are: The other characteristics are for internal configuration. The program I am running looks like this:
|
I'm testing the same code on a fresh mbed-os program for the actual NRF52_DK board and I'm getting similar results... no serial output. |
Update: I added the following to my mbed_app.json and it fixed the hang: mbed-cli was complaining before that I was trying to override a config parameter that didn't exist (since this was removed from the official mbed targets.json file) but it seems that the code still uses it somewhere? Instead of overriding it, I just added it to the configuration. |
For some reason that doesn't work for my custom_target... the stdio_uart still has HWFC enabled... is there a way to disable hardware flow control??? |
Ah, I see. You probably want to inherit from |
Depending on your chip revision you should add (some of) these macros as well: |
Thank you for the fix @marcuschangarm... I changed over to inheriting from MCU_NRF52832 and added the errata fix macros. |
Description
Hi, I'm recently synced my fork of mbed-os and pulled in the updated nRF5x serial API changes. I also noticed the base class in target.json introduced the following concerning UART HWFC:
mbed-os/targets/targets.json
Lines 15 to 19 in 6361e92
I had to change my custom target to remove the hardware flow control override (I dealt with this issue in the past, see issue ARMmbed/mbed-os-example-ble#25 ) since this is not part of the base class anymore.
I'm now seeing a hang when trying to print to a UART/serial. It's hanging at the following busy-wait loop for the TXend event:
mbed-os/targets/TARGET_NORDIC/TARGET_NRF5x/serial_api.c
Lines 1476 to 1478 in 6361e92
Is there an equivalent fix for this? My custom target does not even have hw flow control pins broken out so that's not an option.
@marcuschangarm
(Sorry for blowing up the issues tab)
The text was updated successfully, but these errors were encountered: