kStatus_UART_NoiseError is set on line with about 340mV of noise

cancel
Showing results for 
Search instead for 
Did you mean: 

kStatus_UART_NoiseError is set on line with about 340mV of noise

Jump to solution
196 Views
stdcerr
Contributor IV

Hi,

 

I'm attempting to receive data from UART4 on our custom board but UART_ReadBlocking returns kStatus_UART_NoiseError even though there's minimal error on the actual MCU's Rx pin.

The UART in question is receiving data from a RFID reader at 9600bps while I also have a debug UART setup at 115200 bps. They are both configured with the same clock frequency and hence I think that my clocking should be okay. More particular, I pass "CLOCK_GetCoreSysClkFreq()" as uint32_t srcClock_Hz to UART_Init().

Since the noise on the line doesn't seem to cause havoc either, what else might be causing this issue?

Labels (1)
Tags (1)
0 Kudos
1 Solution
189 Views
stdcerr
Contributor IV

If you get here with the same or a similar problem, check your clock source setup, turns out I didn't initialize the UARTs with the correct clock sources myself. I had to use UART4_CLK_SRC to feed into CLOCK_GetFreq() to get the correct frequency for the different UART modules.

View solution in original post

0 Kudos
1 Reply
190 Views
stdcerr
Contributor IV

If you get here with the same or a similar problem, check your clock source setup, turns out I didn't initialize the UARTs with the correct clock sources myself. I had to use UART4_CLK_SRC to feed into CLOCK_GetFreq() to get the correct frequency for the different UART modules.

View solution in original post

0 Kudos