I'm running a program on an Arduino Mega, which has been working for a while, but after my most recent edits I got a timeout error while uploading the new version to the board. I thought there might be a problem with the bootloader, but when I went to use an Uno to burn the bootloader back onto the Mega, I got the same error when I tried to upload the ArduinoISP program.
I then tried both boards on a different computer and it worked fine and the program uploaded to the Mega without a problem. Just to be sure I went ahead and burned the bootloader and tried again on the first computer, but got the same error again. I also tried reinstalling the Arduino IDE, but that didn't change the result.
Additionally, I noticed that just before I got this error the serial print had stopped working when I ran the program. The program I was running was supposed to be printing information out at certain points in the code, and this had been working before, but recently I stopped seeing the information being printed out, even in the Arduino serial monitor. The program is also supposed to read serial information, and this was still working. Even when I wasn't getting serial information back, I could send information to the Arduino and it would react accordingly.
My guess is that there's an issue in the computer's ability to receive serial information from any of my Arduino boards, which is causing the timeout error when I try to upload new code. I don't actually know what the source of this problem could be or how to fix it. Does anyone else have an idea?