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

UART Does not transmit all data

I am using the example project for Uart Central. I have a lot of messages transmitted out of the Uart. Unfortunately the Uart transmits some characters but does not transmit the entire messages. I have the Fifo enabled, H/W Flow control is off. the project compiles and runs and is able to do most functions but the uart failure is critical. I am also running from RC osciator for my clock and have the following SDK settings 


// <0=> NRF_CLOCK_LF_SRC_RC
// <1=> NRF_CLOCK_LF_SRC_XTAL
// <2=> NRF_CLOCK_LF_SRC_SYNTH

#ifndef NRF_SDH_CLOCK_LF_SRC
#define NRF_SDH_CLOCK_LF_SRC 0
#endif

// <o> NRF_SDH_CLOCK_LF_RC_CTIV - SoftDevice calibration timer interval.
#ifndef NRF_SDH_CLOCK_LF_RC_CTIV
#define NRF_SDH_CLOCK_LF_RC_CTIV 16
#endif

// <o> NRF_SDH_CLOCK_LF_RC_TEMP_CTIV - SoftDevice calibration timer interval under constant temperature.
// <i> How often (in number of calibration intervals) the RC oscillator shall be calibrated
// <i> if the temperature has not changed.

#ifndef NRF_SDH_CLOCK_LF_RC_TEMP_CTIV
#define NRF_SDH_CLOCK_LF_RC_TEMP_CTIV 2
#endif

Also all the Uart settings are standard (from the example project.

Parents
  • If you are using relatively higher baudrate with hardware flow control then there is higher probability of receive errors (or overflows). Please do a retest with either enabling the hardware flow control, and if this is not an option even for testing, then try lower baudrates.

    The actual problem is in how the driver/app is responding to the incoming errors. Check if the app is handling the UART errors gracefully.

Reply
  • If you are using relatively higher baudrate with hardware flow control then there is higher probability of receive errors (or overflows). Please do a retest with either enabling the hardware flow control, and if this is not an option even for testing, then try lower baudrates.

    The actual problem is in how the driver/app is responding to the incoming errors. Check if the app is handling the UART errors gracefully.

Children
No Data
Related