This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

uart event handler error

Hi, all.

I'm using nRF52840 pca10056. s140.

I'm communicating with the CO sensor via uart, but there's a problem.

Sensor-side set to send rx steadily, and when debugging starts, an error occurs in certain cases.

If I look at the error, it seems like it's coming from the uart event handler, but it's not accurate. I don't really know the cause of the error.

Any help would be appreciated.

BR,

lyrics

  • Hi,

    It's hard to say what's causing the error just based on the screenshots you posted. Have you tried to enable logging in your project? The log messages will usually tell you where the error occured.

    Steps to enable logging in SES

    1. Make sure you have the following settings in sdk_config.h

    NRF_LOG_BACKEND_RTT_ENABLED 1

    NRF_FPRINTF_FLAG_AUTOMATIC_CR_ON_LF_ENABLED 0

    2.  Select the debug project configuration before building the project

    3. Start a new debug session. The debug messages should now appear in the debug terminal window.

    Best regards,

    Vidar

Related