Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic avrdude: Can't find programmer id "-P\\.\COM6" (Read 7993 times)
u271D
Newbies
*
Offline


Posts: 4
Joined: Dec 9th, 2014
avrdude: Can't find programmer id "-P\\.\COM6"
Dec 9th, 2014 at 11:10am
Print Post  
I got this error while trying to upload a sketch:
Compiling 'Chalieplexing' for 'ATtiny85 (internal 1 MHz clock)'
crttn85.o:(.init9+0x2): relocation truncated to fit: R_AVR_13_PCREL against symbol `exit' defined in .fini9 section in c:\program files )
Error creating .elf

Solution was found here:
http://forum.arduino.cc/index.php/topic,116674.0.html

Replace ld.exe file with newer version (WinAVR 20090313). File location here (on my machine):
C:\Program Files (x86)\Arduino\hardware\tools\avr\avr\bin

After replacing the ld.exe file I get this message:
avrdude: Can't find programmer id "-P\\.\COM6"

However, after the updated ld.exe file I am able to upload via the Arduino IDE.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: avrdude: Can't find programmer id "-P\\.\COM6"
Reply #1 - Dec 9th, 2014 at 1:05pm
Print Post  
Hi,

Please switch on "tools>visual micro>verbose messages". then try the upload again and post the full output

thanks
  
Back to top
IP Logged
 
u271D
Newbies
*
Offline


Posts: 4
Joined: Dec 9th, 2014
Re: avrdude: Can't find programmer id "-P\\.\COM6"
Reply #2 - Dec 9th, 2014 at 1:47pm
Print Post  
Compiling 'Chalieplexing' for 'ATtiny85 (internal 1 MHz clock)'
Build folder: 
Summary: Header=1 Prototypes=16 Imports=4
Additional Defines: VISUALMICRO_COMPILER_VER=1;
Architecture Tools: C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\
GCC: 4.3.2
Sketchbook: file:///D:/MyFiles/ArduinoSketch
Core Include Paths
Include Path 'C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino'
Include Path 'D:\MyFiles\ArduinoSketch\hardware\attiny\variants\tiny8'
Library Include Paths (1)
Include Path 'C:\Program Files (x86)\Arduino\libraries\EEPROM'
Platform Libraries Root Include Paths
Include Path 'C:\Program Files (x86)\Arduino\libraries'
Include Path 'D:\MyFiles\ArduinoSketch\hardware\attiny\libraries'
Include Path 'C:\Program Files (x86)\Visual Micro\Visual Micro for Arduino\Micro Platforms\default\debuggers'
Include Path 'D:\MyFiles\ArduinoSketch\libraries'
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-g++ -c -g -Os -fno-exceptions -ffunction-sections -fdata-sections -Wall -mmcu=attiny85 -DF_CPU=1000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=106 -I"C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino" -I"D:\MyFiles\ArduinoSketch\hardware\attiny\variants\tiny8" -I"C:\Program Files (x86)\Arduino\libraries\EEPROM" -I"C:\Program Files (x86)\Arduino\libraries" -I"D:\MyFiles\ArduinoSketch\hardware\attiny\libraries" -I"C:\Program Files (x86)\Visual Micro\Visual Micro for Arduino\Micro Platforms\default\debuggers" -I"D:\MyFiles\ArduinoSketch\libraries" -o plexing.cpp.o"  plexing.cpp"  -DVISUALMICRO_COMPILER_VER=1
Stream.h:In file included from
HardwareSerial.h:from
arduino.h:from
Chalieplexing.ino:from
Print.h:32:1: warning: "BIN" redefined
iotn85.h:In file included from
io.h:from
Chalieplexing.ino:from
iotnx5.h:55:1: warning: this is the location of the previous definition
Chalieplexing.ino:In function 'void RandomColorRandomPosition(uint16_t)'
Chalieplexing.ino:158: warning: comparison between signed and unsigned integer expressions
Chalieplexing.ino:In function 'void HueWalk(uint16_t)'
Chalieplexing.ino:170: warning: comparison between signed and unsigned integer expressions
Chalieplexing.ino:In function 'void BrightnessWalk(uint16_t)'
Chalieplexing.ino:182: warning: comparison between signed and unsigned integer expressions
Chalieplexing.ino:In function 'void PrimaryColors(uint16_t)'
Chalieplexing.ino:208: warning: comparison between signed and unsigned integer expressions
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-gcc -Os -Wl,--gc-sections -mmcu=attiny85 -L"C:\Users\xxxx\AppData\Local\VMicro\Arduino\Builds\Chalieplexing\attiny85" -o plexing.elf" plexing.cpp.o" \EEPROM.cpp.o" " -lm
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-objcopy -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 plexing.elf" plexing.eep"
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-objcopy -O ihex -R .eeprom plexing.elf" plexing.hex"
Binary sketch size: 4,884 bytes (used 60% of a 8,192 byte maximum) (0.43 secs)
Uploading to I/O board using 'COM6'
Uploader started for board ATtiny85 (internal 1 MHz clock)
Uploader sometimes uses programmer name: arduinoisp
Upload method will be: bootloader
Uploading via Bootloader 
Flushing the serial port
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avrdude -C"C:\Program Files (x86)\Arduino\hardware/tools/avr/etc/avrdude.conf" -v -v -v -v -pattiny85 -c -P\\.\COM6 -D -V y85\Chalieplexing.hex":i
avrdude: Version 5.11, compiled on Sep  2 2011 at 19:38:36
         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"


avrdude: Can't find programmer id "-P\\.\COM6"

Valid programmers are:
  c2n232i  = serial port banging, reset=dtr sck=!rts mosi=!txd miso=!cts [C:\Program Files (x86)\Arduino\hardware/tools/avr/etc/avrdude.conf:998]
  dasa3    = serial port banging, reset=!dtr sck=rts mosi=txd miso=cts [C:\Program Files (x86)\Arduino\hardware/tools/avr/etc/avrdude.conf:985]
  dasa     = serial port banging, reset=rts sck=dtr mosi=txd miso=cts [C:\Program Files (x86)\Arduino\hardware/tools/avr/etc/avrdude.conf:972]
  siprog   = Lancos SI-Prog <http://www.lancos.com/siprogsch.html>; [C:\Program Files (x86)\Arduino\hardware/tools/avr/etc/avrdude.conf:959]
  ponyser  = design ponyprog serial, reset=!txd sck=rts mosi=dtr miso=cts [C:\Program Files (x86)\Arduino\hardware/tools/avr/etc/avrdude.conf:946]
  89isp    = Atmel at89isp cable            [C:\Program Files (x86)\Arduino\hardware/tools/avr/etc/avrdude.conf:913]
  frank-stk200 = Frank STK200                   [C:\Program Files (x86)\Arduino\hardware/tools/avr/etc/avrdude.conf:899]
  blaster  = Altera ByteBlaster             [C:\Program Files (x86)\Arduino\hardware/tools/avr/etc/avrdude.conf:886]
  ere-isp-avr = ERE ISP-AVR <http://www.ere.co.th/download/sch050713.pdf>; [C:\Program Files (x86)\Arduino\hardware/tools/avr/etc/avrdude.conf:876]
  atisp    = AT-ISP V1.1 programming cable for AVR-SDK1 from <http://micro-research.co.th/>  [C:\Program Files (x86)\Arduino\hardware/tools/avr/etc/avrdude.conf:866]
  dapa     = Direct AVR Parallel Access cable [C:\Program Files (x86)\Arduino\hardware/tools/avr/etc/avrdude.conf:855]
  xil      = Xilinx JTAG cable              [C:\Program Files (x86)\Arduino\hardware/tools/avr/etc/avrdude.conf:842]
  futurlec = Futurlec.com programming cable. [C:\Program Files (x86)\Arduino\hardware/tools/avr/etc/avrdude.conf:824]
  abcmini  = ABCmini Board, aka Dick Smith HOTCHIP [C:\Program Files (x86)\Arduino\hardware/tools/avr/etc/avrdude.conf:814]
  picoweb  = Picoweb Programming Cable, http://www.picoweb.net/ [C:\Program Files (x86)\Arduino\hardware/tools/avr/etc/avrdude.conf:804]
  sp12     = Steve Bolt's Programmer        [C:\Program Files (x86)\Arduino\hardware/tools/avr/etc/avrdude.conf:793]
  alf      = Nightshade ALF-PgmAVR, http://nightshade.homeip.net/ [C:\Program Files (x86)\Arduino\hardware/tools/avr/etc/avrdude.conf:777]
  bascom   = Bascom SAMPLE programming cable [C:\Program Files (x86)\Arduino\hardware/tools/avr/etc/avrdude.conf:767]
  dt006    = Dontronics DT006               [C:\Program Files (x86)\Arduino\hardware/tools/avr/etc/avrdude.conf:757]
  pony-stk200 = Pony Prog STK200               [C:\Program Files (x86)\Arduino\hardware/tools/avr/etc/avrdude.conf:745]
  stk200   = STK200                         [C:\Program Files (x86)\Arduino\hardware/tools/avr/etc/avrdude.conf:729]
  bsd      = Brian Dean's Programmer, http://www.bsdhome.com/avrdude/ [C:\Program Files (x86)\Arduino\hardware/tools/avr/etc/avrdude.conf:718]
  pavr     = Jason Kyle's pAVR Serial Programmer [C:\Program Files (x86)\Arduino\hardware/tools/avr/etc/avrdude.conf:710]
  dragon_pdi = Atmel AVR Dragon in PDI mode   [C:\Program Files (x86)\Arduino\hardware/tools/avr/etc/avrdude.conf:703]
  dragon_dw = Atmel AVR Dragon in debugW
« Last Edit: Dec 9th, 2014 at 1:51pm by u271D »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: avrdude: Can't find programmer id "-P\\.\COM6"
Reply #3 - Dec 9th, 2014 at 1:53pm
Print Post  
Thanks for the info.

For upload, are you expecting to use serial upload via bootloader or "arduino as isp" or some other programmer?

In the Arduino ide what do you click to upload?

Thanks
  
Back to top
IP Logged
 
u271D
Newbies
*
Offline


Posts: 4
Joined: Dec 9th, 2014
Re: avrdude: Can't find programmer id "-P\\.\COM6"
Reply #4 - Dec 9th, 2014 at 2:06pm
Print Post  
arduino as isp

To upload I click on the arrow that says upload.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: avrdude: Can't find programmer id "-P\\.\COM6"
Reply #5 - Dec 9th, 2014 at 2:23pm
Print Post  
Okay, you need to tick "Tools>Visual Micro>Upload Using Programmer" then the standard upload will use your selected programmer instead of normal Arduino serial/bootloader

The board you are using does not support serial.

Thanks
« Last Edit: Dec 9th, 2014 at 4:44pm by Tim@Visual Micro »  
Back to top
IP Logged
 
u271D
Newbies
*
Offline


Posts: 4
Joined: Dec 9th, 2014
Re: avrdude: Can't find programmer id "-P\\.\COM6"
Reply #6 - Dec 9th, 2014 at 4:05pm
Print Post  
Thanks that worked Smiley
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint