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 Help with error message "avrdude: can't open input file" (Read 9409 times)
Aerouta
Junior Member
**
Offline


Posts: 16
Location: USA
Joined: Feb 16th, 2013
Help with error message "avrdude: can't open input file"
Jan 17th, 2016 at 4:58pm
Print Post  
Using windows 10, Visual studio 2015, and Arduino 1.6.7, and AVRISP mkII.

I can upload just fine using the mkII programmer and Arduino IDE, however I can the following error message when I attempt to use Visual Studio. 

Uploading to I/O board using 'AVRISP mkII'
The uploader returned an error
avrdude: can't open input file ouchTest.hex: No such file or directory
avrdude: read from file TouchTest.hex' failed


Verbose messages
Uploading to I/O board using 'AVRISP mkII'
Uploader started for board Arduino Mega w/ ATmega2560 (Mega 2560)
Uploader will use programmer name: avrispmkii
D:\Tester Data\Arduino\hardware\tools\avr\bin\avrdude "-CD:\Tester Data\Arduino\hardware\tools\avr/etc/avrdude.conf" -v -patmega2560 -cstk500v2 -Pusb tmega2560/TouchTest.hex:i"
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 "D:\Tester Data\Arduino\hardware\tools\avr/etc/avrdude.conf"
         Using Port                    : usb
         Using Programmer              : stk500v2
avrdude: usbdev_open(): Found AVRISP mkII, serno: 000200208528
         AVR Part                      : ATmega2560
         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    10     8    0 no       4096    8      0  9000  9000 0x00 0x00
           flash         65    10   256    0 yes    262144  256   1024  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 : STK500V2
         Description     : Atmel STK500 Version 2.x firmware
         Programmer Model: AVRISP mkII
         Hardware Version: 1
         Firmware Version Master : 1.23
         Vtarget         : 4.9 V
         SCK period      : 0.50 us
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
avrdude: Device signature = 0x1e9801
avrdude: safemode: lfuse reads as FF
avrdude: safemode: hfuse reads as D8
avrdude: safemode: efuse reads as FD
avrdude: NOTE: "flash" memory has been specified, an erase cycle will be performed
         To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: reading input file TouchTest.hex"
avrdude: can't open input file ouchTest.hex: No such file or directory
avrdude: read from file TouchTest.hex' failed
avrdude: safemode: lfuse reads as FF
avrdude: safemode: hfuse reads as D8
avrdude: safemode: efuse reads as FD
avrdude: safemode: Fuses OK (H:FD, E:D8, L:FF)
Error during upload using programmer
Upload failed

Upload failed
avrdude done.  Thank you.
The uploader returned an error
  
Back to top
 
IP Logged
 
Aerouta
Junior Member
**
Offline


Posts: 16
Location: USA
Joined: Feb 16th, 2013
Re: Help with error message "avrdude: can't open input file"
Reply #1 - Jan 17th, 2016 at 5:42pm
Print Post  
Just tested with the Arduino Uno, it uploaded just fine. problem is with the mega boards.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Help with error message "avrdude: can't open input file"
Reply #2 - Jan 17th, 2016 at 6:07pm
Print Post  
Hi,

Thanks for the post. 

There was a change in the last version where the output file names were made the same as the arduino ide "project.ino.hex". There are some third party boards that are hard-coded to look for this name so the previous name convention of "project_name.hex" failed.

The changed caused a bug in the programmer uploads which will be fixed in a release hopefully later today.
  
Back to top
IP Logged
 
Aerouta
Junior Member
**
Offline


Posts: 16
Location: USA
Joined: Feb 16th, 2013
Re: Help with error message "avrdude: can't open input file"
Reply #3 - Jan 17th, 2016 at 7:55pm
Print Post  
great, i'll be looking forward to it!
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Help with error message "avrdude: can't open input file"
Reply #4 - Jan 18th, 2016 at 12:26am
Print Post  
Fixed in 1601.11 sp4
  
Back to top
IP Logged
 
Aerouta
Junior Member
**
Offline


Posts: 16
Location: USA
Joined: Feb 16th, 2013
Re: Help with error message "avrdude: can't open input file"
Reply #5 - Jan 18th, 2016 at 4:01am
Print Post  
Thanks, that solved it!
  
Back to top
 
IP Logged
 
Gaia
Newbies
*
Offline


Posts: 1
Joined: Feb 17th, 2016
Re: Help with error message "avrdude: can't open input file"
Reply #6 - Feb 18th, 2016 at 1:41am
Print Post  
Tim@Visual Micro wrote on Jan 17th, 2016 at 6:07pm:
Hi,

Thanks for the post. 

There was a change in the last version where the output file names were made the same as the arduino ide "project.ino.hex". There are some third party boards that are hard-coded to look for this name so the previous name convention of "project_name.hex" failed.

The changed caused a bug in the programmer uploads which will be fixed in a release hopefully later today.


I have the exact opposite problem. I use Visual Studio 2015 to compile and it saves as "sample_code.hex". After I updated to latest Visual Micro, it still saves as "sample_code.hex" and avrdude spits out "avrdude: can't open input file" because it tries to load "sample_code.ino.hex". What is the fix?

I'm using the Arduino 1.0.5 classic / gcc4.8.2 / Visual Studio Community 2015 / Visual Micro 1.1601.30

Would it be possible to use an old release and get things working again?
« Last Edit: Feb 18th, 2016 at 1:50am by Gaia »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Help with error message "avrdude: can't open input file"
Reply #7 - Feb 29th, 2016 at 11:11pm
Print Post  
Sorry I missed this message. The latest release fixes this issue.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint