nRF9160 receives garbage data on UART sometimes

Hello, 

I closed below case by mistake. 

nRF9160 receives garbage data on UART sometimes - Nordic Q&A - Nordic DevZone - Nordic DevZone (nordicsemi.com)

As per your query I am using nRF9160 DK for testing. 

I have modified "http_application_uodate" example code for my testing. 

Regards,

Smitesh Mali

Parents Reply Children
  • Hello, 

    I debugged the issue further by enabling error interrupt for UART

    uart_irq_err_enable(_uartPc);

    I received "UART_BREAK" (0x08) error when I get "ª*SIM=?\n" (wrong data). 

     

    Interestingly, I am getting error when I receive expected data too which is "UUT*SIM=?\n". 

    But at that time error is different. It is "UART_ERROR_FRAMING" (0x04) error. 

    I get this error after complete data from PC is received. 

    Can you tell me in what case "UART_BREAK" error can come ? 

    As per the comment in "uart.h" it comes in below case. 

    /**
    * @brief Break interrupt
    *
    * A break interrupt was received. This happens when the serial input
    * is held at a logic '0' state for longer than the sum of
    * start time + data bits + parity + stop bits.
    */

    Regards,

    Smitesh Mali

  • Hello,

    Issue is resolved. 

    Pin 0.28 and 0.29 were defined in overlay file for SPI. 

    It was creating issue. 

    UART works properly after removing it.

    Regards,

    Smitesh Mali

Related