kStatus_UART_NoiseError is set on line with about 340mV of noise

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

kStatus_UART_NoiseError is set on line with about 340mV of noise

跳至解决方案
608 次查看
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?

标签 (1)
标记 (1)
0 项奖励
1 解答
601 次查看
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.

在原帖中查看解决方案

0 项奖励
1 回复
602 次查看
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.

0 项奖励