Difficulty connecting bluetooth device

when I tried to upload to the board the sketch appears to update but eventually the green indicator bar reaches the end and just stays there

When you download the program, you should disconnect the HC 05 from the hardware serial pins. Did you do that?