Loading...
Pages: [1]   Go Down
Author Topic: Arduino FREEZE  (Read 222 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 2
Posts: 40
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi!

On my arduin, rx led constant blink because he constantly receiving data from pc, and that's OK.

But after a while my Arduino hangs (freeze), probably because it is rx buffer full... How to solve this? Is there any way to flush rx buffer?

Thanks in advance, and sorry on my bad English smiley
Logged

United Kingdom
Offline Offline
Faraday Member
**
Karma: 144
Posts: 4865
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Most likely you have a bug in your code, for example a buffer overflow or an out-of-memory condition.
Logged

Formal verification of safety-critical software, software development, and electronic design and prototyping. http://www.eschertech.com

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 142
Posts: 19338
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Is there any way to flush rx buffer?
You could read all the characters out of it.

It would be useful to see your code.
Never heard of rx buffer overflow happening; it just wraps.
Logged

Pete, it's a fool looks for logic in the chambers of the human heart.

Pages: [1]   Go Up
Print
 
Jump to: