Pages: [1]   Go Down
Author Topic: Arduino FREEZE  (Read 349 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 2
Posts: 45
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
Tesla Member
***
Karma: 227
Posts: 6637
Hofstadter's Law: It always takes longer than you expect, even when you take into account Hofstadter's Law.
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. See http://www.eschertech.com. Please do not ask for unpaid help via PM, use the forum.

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 308
Posts: 26471
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." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Pages: [1]   Go Up
Jump to: