Pages: [1]   Go Down
Author Topic: Serial Port Com already is use? Try quitting any programs that may be using it''  (Read 3211 times)
0 Members and 1 Guest are viewing this topic.
Brighton
Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello experts,

I am facing a silly problem with the USB port and would much appreciate any help related to the issue.

Although I have downloaded the FTDI drivers from

http://www.ftdichip.com/Drivers/D2XX.htm

and followed the instructions on

http://www.ftdichip.com/Support/Documents/AppNotes/AN_119_FTDI_Drivers_Installation_Guide_for_Windows7.pdf

I still can't upload any sketches as the computer thinks the serial port is already used.

The serial port is recognized as USB Port4 but never recognized the device's name id.

The following message shows up when trying to upload the sketch:

Binary sketch size: 4,824 bytes (of a 258,048 byte maximum)
processing.app.SerialException: Serial port 'COM4' already in use. Try quiting any programs that may be using it.
   at processing.app.Serial.<init>(Serial.java:171)
   at processing.app.Serial.<init>(Serial.java:77)
   at processing.app.debug.Uploader.flushSerialBuffer(Uploader.java:77)
   at processing.app.debug.AvrdudeUploader.uploadViaBootloader(AvrdudeUploader.java:172)
   at processing.app.debug.AvrdudeUploader.uploadUsingPreferences(AvrdudeUploader.java:67)
   at processing.app.Sketch.upload(Sketch.java:1706)
   at processing.app.Sketch.exportApplet(Sketch.java:1662)
   at processing.app.Sketch.exportApplet(Sketch.java:1634)
   at processing.app.Editor$DefaultExportHandler.run(Editor.java:2346)
   at java.lang.Thread.run(Thread.java:619)
processing.app.debug.RunnerException: Serial port 'COM4' already in use. Try quiting any programs that may be using it.
   at processing.app.debug.Uploader.flushSerialBuffer(Uploader.java:101)
   at processing.app.debug.AvrdudeUploader.uploadViaBootloader(AvrdudeUploader.java:172)
   at processing.app.debug.AvrdudeUploader.uploadUsingPreferences(AvrdudeUploader.java:67)
   at processing.app.Sketch.upload(Sketch.java:1706)
   at processing.app.Sketch.exportApplet(Sketch.java:1662)
   at processing.app.Sketch.exportApplet(Sketch.java:1634)
   at processing.app.Editor$DefaultExportHandler.run(Editor.java:2346)
   at java.lang.Thread.run(Thread.java:619)



I am using an Arduino Mega 2560, not that changes anything, but might be helpful to know


Any ideas what to do?

Thank you very much for reading

Stav
Logged

Chile
Offline Offline
Edison Member
*
Karma: 32
Posts: 1233
Arduino rocks?
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Maybe this solves all your problems: http://arduino.cc/forum/index.php/topic,118440.0.html ALL, life problems, etc.
Logged

My website: http://ried.cl

Brighton
Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Awesome!

Thanks a lot, much appreciated


Stav
Logged

Brighton
Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

OK,

Even that it does recognize the board now it still gives me some error when uploading a simple sketch
The error after "Done Uploading"  is :

Binary sketch size: 3,826 bytes (of a 258,048 byte maximum)

Estimated used SRAM memory: 705 bytes (of a 8192 byte maximum)
avrdude.exe: Can't find programmer id "wiring"Valid programmers are:  c2n232i  = serial port banging, reset=dtr sck=!rts mosi=!txd miso=!cts [C:\Program Files (x86)\Arduino\Arduino ERW 1.0.2\hardware/tools/avr/etc/avrdude.conf:876]  dasa3    = serial port banging, reset=!dtr sck=rts mosi=txd miso=cts [C:\Program Files (x86)\Arduino\Arduino ERW 1.0.2\hardware/tools/avr/etc/avrdude.conf:863]  dasa     = serial port banging, reset=rts sck=dtr mosi=txd miso=cts [C:\Program Files (x86)\Arduino\Arduino ERW 1.0.2\hardware/tools/avr/etc/avrdude.conf:850]  siprog   = Lancos SI-Prog <http://www.lancos.com/siprogsch.html> [C:\Program Files (x86)\Arduino\Arduino ERW 1.0.2\hardware/tools/avr/etc/avrdude.conf:837]  ponyser  = design ponyprog serial, reset=!txd sck=rts mosi=dtr miso=cts [C:\Program Files (x86)\Arduino\Arduino ERW 1.0.2\hardware/tools/avr/etc/avrdude.conf:824]  89isp    = Atmel at89isp cable            [C:\Program Files (x86)\Arduino\Arduino ERW 1.0.2\hardware/tools/avr/etc/avrdude.conf:791]  frank-stk200 = Frank STK200                   [C:\Program Files (x86)\Arduino\Arduino ERW 1.0.2\hardware/tools/avr/etc/avrdude.conf:777]  blaster  = Altera ByteBlaster             [C:\Program Files (x86)\Arduino\Arduino ERW 1.0.2\hardware/tools/avr/etc/avrdude.conf:764]  ere-isp-avr = ERE ISP-AVR <http://www.ere.co.th/download/sch050713.pdf> [C:\Program Files (x86)\Arduino\Arduino ERW 1.0.2\hardware/tools/avr/etc/avrdude.conf:754]  atisp    = AT-ISP V1.1 programming cable for AVR-SDK1 from <http://micro-research.co.th/>  [C:\Program Files (x86)\Arduino\Arduino ERW 1.0.2\hardware/tools/avr/etc/avrdude.conf:744]  dapa     = Direct AVR Parallel Access cable [C:\Program Files (x86)\Arduino\Arduino ERW 1.0.2\hardware/tools/avr/etc/avrdude.conf:733]  xil      = Xilinx JTAG cable              [C:\Program Files (x86)\Arduino\Arduino ERW 1.0.2\hardware/tools/avr/etc/avrdude.conf:720]  futurlec = Futurlec.com programming cable. [C:\Program Files (x86)\Arduino\Arduino ERW 1.0.2\hardware/tools/avr/etc/avrdude.conf:703]  abcmini  = ABCmini Board, aka Dick Smith HOTCHIP [C:\Program Files (x86)\Arduino\Arduino ERW 1.0.2\hardware/tools/avr/etc/avrdude.conf:693]  picoweb  = Picoweb Programming Cable, http://www.picoweb.net/ [C:\Program Files (x86)\Arduino\Arduino ERW 1.0.2\hardware/tools/avr/etc/avrdude.conf:683]  sp12     = Steve Bolt's Programmer        [C:\Program Files (x86)\Arduino\Arduino ERW 1.0.2\hardware/tools/avr/etc/avrdude.conf:672]  alf      = Nightshade ALF-PgmAVR, http://nightshade.homeip.net/ [C:\Program Files (x86)\Arduino\Arduino ERW 1.0.2\hardware/tools/avr/etc/avrdude.conf:656]  bascom   = Bascom SAMPLE programming cable [C:\Program Files (x86)\Arduino\Arduino ERW 1.0.2\hardware/tools/avr/etc/avrdude.conf:646]  dt006    = Dontronics DT006               [C:\Program Files (x86)\Arduino\Arduino ERW 1.0.2\hardware/tools/avr/etc/avrdude.conf:636]  pony-stk200 = Pony Prog STK200               [C:\Program Files (x86)\Arduino\Arduino ERW 1.0.2\hardware/tools/avr/etc/avrdude.conf:624]  stk200   = STK200                         [C:\Program Files (x86)\Arduino\Arduino ERW 1.0.2\hardware/tools/avr/etc/avrdude.conf:608]  bsd      = Brian Dean's Programmer, http://www.bsdhome.com/avrdude/ [C:\Program Files (x86)\Arduino\Arduino ERW 1.0.2\hardware/tools/avr/etc/avrdude.conf:597]  pavr     = Jason Kyle's pAVR Serial Programmer [C:\Program Files (x86)\Arduino\Arduino ERW 1.0.2\hardware/tools/avr/etc/avrdude.conf:589]  dragon_pdi = Atmel AVR Dragon in PDI mode   [C:\Program Files (x86)\Arduino\Arduino ERW 1.0.2\hardware/tools/avr/etc/avrdude.conf:582]  dragon_dw = Atmel AVR Dragon in debugWire mode [C:\Program Files (x86)\Arduino\Arduino ERW 1.0.2\hardware/tools/avr/etc/avrdude.conf:574]  dragon_hvsp = Atmel AVR Dragon in HVSP mode  [C:\Program Files (x86)\Arduino\Arduino ERW 1.0.2\hardware/tools/avr/etc/avrdude.conf:566]  dragon_pp = Atmel AVR Dragon in PP mode    [C:\Program Files (x86)\Arduino\Arduino ERW 1.0.2\hardware/tools/avr/etc/avrdude.conf:558]  dragon_isp = Atmel AVR Dragon in ISP mode   [C:\Program Files (x86)\Arduino\Arduino ERW 1.0.2\hardware/tools/avr/etc/avrdude.conf:550]  dragon_jtag = Atmel AVR Dragon in JTAG mode  [C:\Program Files (x86)\Arduino\Arduino ERW 1.0.2\hardware/tools/avr/etc/avrdude.conf:542]  jtag2pdi = Atmel JTAG ICE mkII PDI mode   [C:\Program Files (x86)\Arduino\Arduino ERW 1.0.2\hardware/tools/avr/etc/avrdude.conf:534]  jtag2avr32 = Atmel JTAG ICE mkII im AVR32 mode [C:\Program Files (x86)\Arduino\Arduino ERW 1.0.2\hardware/tools/avr/etc/avrdude.conf:526]  jtagmkII_avr32 = Atmel JTAG ICE mkII im AVR32 mode [C:\Program Files (x86)\Arduino\Arduino ERW 1.0.2\hardware/tools/avr/etc/avrdude.conf:518]  jtag2dw  = Atmel JTAG ICE mkII in debugWire mode [C:\Program Files (x86)\Arduino\Arduino ERW 1.0.2\hardware/tools/avr/etc/avrdude.conf:510]  jtag2isp = Atmel JTAG ICE mkII in ISP mode [C:\Program Files (x86)\Arduino\Arduino ERW 1.0.2\hardware/tools/avr/etc/avrdude.conf:502]  jtag2    = Atmel JTAG ICE mkII            [C:\Program Files (x86)\Arduino\Arduino ERW 1.0.2\hardware/tools/avr/etc/avrdude.conf:494]  jtag2fast = Atmel JTAG ICE mkII            [C:\Program Files (x86)\Arduino\Arduino ERW 1.0.2\hardware/tools/avr/etc/avrdude.conf:486]  jtag2slow = Atmel JTAG ICE mkII            [C:\Program Files (x86)\Arduino\Arduino ERW 1.0.2\hardware/tools/avr/etc/avrdude.conf:478]  jtagmkII = Atmel JTAG ICE mkII            [C:\Program Files (x86)\Arduino\Arduino ERW 1.0.2\hardware/tools/avr/etc/avrdude.conf:470]  jtag1slow = Atmel JTAG ICE (mkI)           [C:\Program Files (x86)\Arduino\Arduino ERW 1.0.2\hardware/tools/avr/etc/avrdude.conf:463]  jtag1    = Atmel JTAG ICE (mkI)           [C:\Program Files (x86)\Arduino\Arduino ERW 1.0.2\hardware/tools/avr/etc/avrdude.conf:455]  jtagmkI  = Atmel JTAG ICE (mkI)           [C:\Program Files (x86)\Arduino\Arduino ERW 1.0.2\hardware/tools/avr/etc/avrdude.conf:447]  avr911   = Atmel AppNote AVR911 AVROSP    [C:\Program Files (x86)\Arduino\Arduino ERW 1.0.2\hardware/tools/avr/etc/avrdude.conf:441]  avr109   = Atmel AppNote AVR109 Boot Loader [C:\Program Files (x86)\Arduino\Arduino ERW 1.0.2\hardware/tools/avr/etc/avrdude.conf:435]  butterfly = Atmel Butterfly Development Board [C:\Program Files (x86)\Arduino\Arduino ERW 1.0.2\hardware/tools/avr/etc/avrdude.conf:429]  usbtiny  = USBtiny simple USB programmer, http://www.ladyada.net/make/usbtinyisp/ [C:\Program Files (x86)\Arduino\Arduino ERW 1.0.2\hardware/tools/avr/etc/avrdude.conf:423]  usbasp   = USBasp, http://www.fischl.de/usbasp/ [C:\Program Files (x86)\Arduino\Arduino ERW 1.0.2\hardware/tools/avr/etc/avrdude.conf:417]  avr910   = Atmel Low Cost Serial Programmer [C:\Program Files (x86)\Arduino\Arduino ERW 1.0.2\hardware/tools/avr/etc/avrdude.conf:411]  stk600hvsp = Atmel STK600 in high-voltage serial programming mode [C:\Program Files (x86)\Arduino\Arduino ERW 1.0.2\hardware/tools/avr/etc/avrdude.conf:405]  stk600pp = Atmel STK600 in parallel programming mode [C:\Program Files (x86)\Arduino\Arduino ERW 1.0.2\hardware/tools/avr/etc/avrdude.conf:399]  stk600   = Atmel STK600                   [C:\Program Files (x86)\Arduino\Arduino ERW 1.0.2\hardware/tools/avr/etc/avrdude.conf:393]  stk500hvsp = Atmel STK500 V2 in high-voltage serial programming mode [C:\Program Files (x86)\Arduino\Arduino ERW 1.0.2\hardware/tools/avr/etc/avrdude.conf:387]  stk500pp = Atmel STK500 V2 in parallel programming mode [C:\Program Files (x86)\Arduino\Arduino ERW 1.0.2\hardware/tools/avr/etc/avrdude.conf:381]  stk500v2 = Atmel STK500 Version 2.x firmware [C:\Program Files (x86)\Arduino\Arduino ERW 1.0.2\hardware/tools/avr/etc/avrdude.conf:375]  mib510   = Crossbow MIB510 programming board [C:\Program Files (x86)\Arduino\Arduino ERW 1.0.2\hardware/tools/avr/etc/avrdude.conf:369]  stk500v1 = Atmel STK500 Version 1.x firmware [C:\Program Files (x86)\Arduino\Arduino ERW 1.0.2\hardware/tools/avr/etc/avrdude.conf:363]  stk500   = Atmel STK500                   [C:\Program Files (x86)\Arduino\Arduino ERW 1.0.2\hardware/tools/avr/etc/avrdude.conf:357]  buspirate = The Bus Pirate                 [C:\Program Files (x86)\Arduino\Arduino ERW 1.0.2\hardware/tools/avr/etc/avrdude.conf:347]  avrisp2  = Atmel AVR ISP mkII             [C:\Program Files (x86)\Arduino\Arduino ERW 1.0.2\hardware/tools/avr/etc/avrdude.conf:341]  avrispmkII = Atmel AVR ISP mkII             [C:\Program Files (x86)\Arduino\Arduino ERW 1.0.2\hardware/tools/avr/etc/avrdude.conf:335]  avrispv2 = Atmel AVR ISP V2               [C:\Program Files (x86)\Arduino\Arduino ERW 1.0.2\hardware/tools/avr/etc/avrdude.conf:329]  avrisp   = Atmel AVR ISP                  [C:\Program Files (x86)\Arduino\Arduino ERW 1.0.2\hardware/tools/avr/etc/avrdude.conf:323]  arduino  = Arduino                        [C:\Program Files (x86)\Arduino\Arduino ERW 1.0.2\hardware/tools/avr/etc/avrdude.conf:317]


Any ideas how to go in fixing that?


Thank you

Stav
Logged

Brighton
Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Ok, it's done

Thank You

I have used the previous arduino version now that the board is recognized

Thank you

Stav
Logged

Pages: [1]   Go Up
Jump to: