This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Linux UART not responding issue

Hi,

I'm currently developing a firmware running on nRF51-dongles (PCA10028). The dongle communicates with a PC application over UART. Everything is working fine except that, in Linux(Ubuntu 14.04), after a few open/close of the UART terminal the communication is dead. I'm not facing this problem when I'm running the same code and dongle firmware in Windows. In Linux I'm opening a correctly configured UART channel to, for example, /dev/ttyACM0.

My PC application acts as a host and the dongle as a slave sending commands and responses for each message to always be in sync. The UART configuration is using APP_UART_FLOW_CONTROL_ENABLED and I'm detecting a new message by checking the event "APP_UART_DATA". This seems to work fine and I can run this for hours without any failure.

When the problem shows up I need to unplug and re-plug the dongle to make it work again. I have tried to reset the dongle by the reset button with no result. I have also tried the developing board PCA10003 and dongle PCA10000 and getting the same problem. The problem shows up after a random amount of close/open events but usually less than 10 times. Sometimes it is possible to send a command to the dongle but I never get the expected response. And I never got the problem on windows, which I have now switched to.

First I thought that I could solve it by toggling the DTR or RTS signals but nothing seems to help. Except my application I'm having the problem in all tested terminals (CuteCom, Putty, minicom etc..) so I really think it's linux related. I can also mention that my PC has only USB 3.0 ports and I have installed the j-link driver 4.98e.

I need to find the source of my problem in order to be able to run my application on Linux systems. Does anyone have any idea of what it could be?

Best Regards, Niklas

Parents Reply Children
No Data
Related