im keep getting ARM_USART_EVENT_RX_OVERFLOW error what should i do?

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

im keep getting ARM_USART_EVENT_RX_OVERFLOW error what should i do?

跳至解决方案
1,560 次查看
navidansari
Contributor III

hi

there is a board that use stm32f0 that sending data via rs485 and i have a board that use lpc1768 that use adm485 as rs485 ic

every 400 ms stm board send me a few byte information and i see it in oscope but in lpc1768 i keep getting this error ARM_USART_EVENT_RX_OVERFLOW

why is that?

can ADM485 5v output to MCU be cause of problem?

what do u think?

标签 (1)
标记 (3)
1 解答
1,099 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hello navid ansari,

  1. error ARM_USART_EVENT_RX_OVERFLOW

    I don't know what the code you are using?

   If you get the error ARM_USART_EVENT_RX_OVERFLOW, from the name, it should be caused by you didn't read the RX buff, then the new data come in again, it caused the problem.

But for the details, I need to check your code.

   2. can ADM485 5v output to MCU be cause of problem?

   From the datasheet, we can get that, the max input voltage is 5V.

pastedImage_1.png

   So, you need to check your output voltage to the MCU, whether it is higher than 5V, because 5V already the max data.

  3. 485 code

   Just as what I have replied you in your another post, you can refer to the sample code which I shared with you.

how to clear buffer in usart1 lpc1768? 

  Wish it helps you!


Have a great day,
Kerry

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

2 回复数
1,100 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hello navid ansari,

  1. error ARM_USART_EVENT_RX_OVERFLOW

    I don't know what the code you are using?

   If you get the error ARM_USART_EVENT_RX_OVERFLOW, from the name, it should be caused by you didn't read the RX buff, then the new data come in again, it caused the problem.

But for the details, I need to check your code.

   2. can ADM485 5v output to MCU be cause of problem?

   From the datasheet, we can get that, the max input voltage is 5V.

pastedImage_1.png

   So, you need to check your output voltage to the MCU, whether it is higher than 5V, because 5V already the max data.

  3. 485 code

   Just as what I have replied you in your another post, you can refer to the sample code which I shared with you.

how to clear buffer in usart1 lpc1768? 

  Wish it helps you!


Have a great day,
Kerry

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

1,099 次查看
navidansari
Contributor III

thanks that was problem 

0 项奖励
回复