Failed to write flash memory

Yes, the GPS is wired to the Nano's RX pin. Shall I presume then that I need to upload the sketch before attaching it?