Problems related with bluetooth

When there is only a single hardware serial connection you can use it for the bluetooth communications, but as spycatcher2 and golammostafa say,you must disconnect the bluetooth RX/TX when downloading code through USB. Reconnect the bluetooth after the download is complete.You will not be able to use the Serial Monitor when the program with bluetooth on the hardware serial is running.