avrdude: ser_open(): can't open device "\\.\COM5": The semaphore timeout period

Most common cause of the problem, the Uno isn't on COM5. So check the COM number.

And did it work before?

What's connected to the board?