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

NRF58240 SDK16.0.0 Initializing serial port error

HI,

When I use NRF58240 to develop GPS positioning function, APP_UART_COMMUNICATION_ERROR appears, but when I do not connect the GPS module, there is no such error. What is the reason for this situation?

  • Hi,

    This event is triggered when the UARTE peripheral detects an Error condition. So if you have access to a scope or logic analyzer it should be easy to probe the lines and see what caused it.  The ERRORSRC register will contain the error type as well.

    Does the error keep happening if you ignore the first APP_UART_COMMUNICATION_ERROR event?

  • Hello, I have solved this problem. The root cause is that the SDK puts the receiving pin into a floating state when the serial port is initialized. Changing the floating state to a pull-up state can solve this problem.

  • Hello, thank you for the update. Enabling pull-up is a good way to ensure that the input does not become floating.