Go Down

Topic: Arduino FREEZE (Read 366 times) previous topic - next topic

niky518

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 :)

dc42

Most likely you have a bug in your code, for example a buffer overflow or an out-of-memory condition.
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.

AWOL

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.
"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.

Go Up