[SOLVED] Freeze after 20-90 minutes when using serial communication

Try to "isolate" the issue. Do split the code into smaller chunks with certain functionality, and try to trigger the issue somehow, or just observe until the issue occurs..