Can't overwrite old sketch

I just started working with an Arduino Robot (I've worked with an UNO for the past two years) and after making some simple sketches and uploading them successfully I tried out one of the "explore" programs, specifically Examples>RETIRED>Robot Control>explore>R04_Compass. Now this program can't be removed or overwritten.

I've tried: uploading different and blank sketches, resetting the board while uploading, reinstalling drivers, changing USB and COM ports, uninstalling and reinstalling 1.6.7, and anything else I've come across online. Also, when I try to upload a new sketch the progress bar on the IDE will complete and disappear but it will say "Uploading..." on the bottom left indefinitely. For reference my UNO hasn't had any problems this entire time which leads me to believe its the board that has problems.

Any help is appreciated!

I'd turn on verbose output in File > Preferences and then take a look at the console output and paste it here.

Alright I did that, although I don't really know what this means.

avrdude: Version 6.0.1, compiled on Apr 15 2015 at 19:59:58
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is "C:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"

         Using Port                    : COM3
         Using Programmer              : avr109
         Overriding Baud Rate          : 57600
         AVR Part                      : ATmega32U4
         Chip Erase delay              : 9000 us
         PAGEL                         : PD7
         BS2                           : PA0
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         serial program mode           : yes
         parallel program mode         : yes
         Timeout                       : 200
         StabDelay                     : 100
         CmdexeDelay                   : 25
         SyncLoops                     : 32
         ByteDelay                     : 0
         PollIndex                     : 3
         PollValue                     : 0x53
         Memory Detail                 :

                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           eeprom        65    20     4    0 no       1024    4      0  9000  9000 0x00 0x00
           flash         65     6   128    0 yes     32768  128    256  4500  4500 0x00 0x00
           lfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           hfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           efuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           lock           0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00

         Programmer Type : butterfly
         Description     : Atmel AppNote AVR109 Boot Loader

Connecting to programmer: .Error opening serial port 'COM3'. (Port busy)
avrdude: butterfly_recv(): programmer is not responding
Problem uploading to board.  See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.
Connecting to programmer: .Error opening serial port 'COM3'. (Port busy)

Could be caused by

  • wrong port selected
  • serial monitor open
  • application accessing the port

I just checked those and nothing seems to be wrong or out of the ordinary. But if those were the problem, wouldn't the UNO not work either?

I don’t know why this is so hard answer to answer! Apparently everybody that reply’s to this has never had a problem uploading a new code over the old code.

The reason the he’s getting that error code is because the Arduino is making the port busy, so you can’t upload anything to it.

So, how do we stop Arduino from keeping the port busy, or is this an isolated area that only occurs on Arduino 1.8.9?

Skywalker2000:
I don't know why this is so hard answer to answer! Apparently everybody that reply's to this has never had a problem uploading a new code over the old code.

The reason the he's getting that error code is because the Arduino is making the port busy, so you can't upload anything to it.

So, how do we stop Arduino from keeping the port busy, or is this an isolated area that only occurs on Arduino 1.8.9?

This thread is three years old.
Or it was, until you necro'ed it.

Skywalker2000 also created a dedicated thread for their problem: