I am running Arduino 1.8.7.
I have Pololu A-Star Boards 4.0.2 installed.
I have Serial1 set to 57600
Serial1 is connected the a Digi Xbee Zigbee module.
My Sketch uses 10810 bytes.
Global variables 878.
The problem i am having is that Serial1 will randomly stop transmitting data. It will receive data with no problems from the Xbee. I have LED’s connected to the TX and RX lines and i can see the data being transmitted and received when it is working. It will work for random amount of time and then just stop. I know that is should be working because i can call a function and all the code in that function runs. It will turn LED’s on and serial out data to the serial monitor, but the tx side of serial1 just doesn’t happen. It doesn’t matter if i reset the 328pb or even do a complete power down with power source disconnected. I can even re-download to the 328PB and same thing happens. But if I leave it set over night its starts working again. I know that sounds bad, but its the honest truth. I cant really find anything online, the closest thing i have found is a post on here from about 10 months ago.
Any ideals or suggestions would be great, let me know what other information my be needed.
UPDATE – lol, in the amount of time it took me to post this, which it type very slowly, the 328PB was powered down and when i powered it up, its started transmitting. So I guess i dont have to wait over night.