I have a Arduino UNO R3, I did not use it for some time and when I plugged it in, it did not show up on the Ports list, I checked the device manager and other boards are showing up, not this one.
The old code is still there, and works properly.
I have a Arduino UNO R3, I did not use it for some time and when I plugged it in, it did not show up on the Ports list, I checked the device manager and other boards are showing up, not this one.
The old code is still there, and works properly.
Might be the serial-to-usb converter that is malfunctioning / damaged; see point (4) above.
It's the chip closest to the USB port. You might have to play with the lighting (tilt board) and need a magnifying glass to read it.
What was/is the project that the board was last used in when you managed to upload in the past?
Its Atmel
the program is a simple lcd counting program that updates a lcd every second
Bad connections on the board is one possible cause. So inspect it.
Else I think it's malfunctioning or maybe broken. You can see if you can revive it with Atmel Flip. Instructions: https://docs.arduino.cc/retired/hacking/software/DFUProgramming8U2/.