I think you have noticed that it is necessary to disconnect the UART communication pins (TX, RX) from the Arduino Nano when they are connected to another module (in my case, a Bluetooth HC-05 module) in order to upload the code.
Is there another way to upload the code to the Arduino without having to disconnect the TX and RX pins?
Before uploading the code to Arduino, I need to disconnect TX and RX :
I don't think there's a way around this. It is just the way a Nano is made. This can hardly be a big deal. It simply means that you leave the connection till the end of the day. You can do all of your debugging before you even buy your HC 05, reasonably secure in the knowledge then that any subsequent glitches are at the other end, and not down to Arduino.
There are resistors in the design to allow you to overdrive it. Youi simply disable the output of the HC-05. That may not be possible on some Nano units as they are not all the same.
You can upload code directly to the Nano via the 6 pin ICSP header. You would need a separate programmer for it (e.g. USBASP) or use "Arduino as ISP". This way of programming will wipe your bootloader, but you can put that back with the command "burn bootloader"
And, after reading posts #3,4,5, you just might conclude that none the above is worth the effort, and you might as well stick with removing the connection....