Serial1 Lockup

Combining the power of the ATmega2560 MCU with onboard Ethernet, a microSD card slot, an efficient switchmode power supply, and a small prototyping area. [Product page]
Post Reply
Joined:Fri Apr 12, 2013 6:27 pm
Serial1 Lockup

Post by JamesBrown » Thu Aug 08, 2013 7:07 am

I have several EtherMega's that are setup to read a serial stream and they all lock up after a few minutes. I have the link rate set at 9600 baud but the problem does not seem to be rate sensitive. The messages are all short, about 36 binary characters.
The code is very straightforward reading one character at a time, processing it and then returning for the next.

Code: Select all

if (  Serial1.available() )
		data =;
      ....Process the byte

Does anyone else have experience with this problem?

Freetronics Staff
Freetronics Staff
Joined:Sun Jul 14, 2013 7:06 am
Location:Melbourne, Australia

Re: Serial1 Lockup

Post by andrew » Thu Aug 08, 2013 7:20 am

Haven't heard of anyone with that specific problem in the past. Would you mind posting your sketch and how you've wired things up?

Post Reply