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
Hot Topic (More than 8 Replies) Problems uploading to Tiny85 with TinyISP (Read 9408 times)
MarvinMartian
Junior Member
**
Offline


Posts: 11
Joined: Apr 15th, 2010
Problems uploading to Tiny85 with TinyISP
Mar 7th, 2013 at 8:33pm
Print Post  
I'm trying to upload to an Attiny85 using the TinyISP programmer but I'm getting the following error:

avrdude: verification error, first mismatch at byte 0x00c0
         0xb0 != 0x68
avrdude: verification error; content mismatch


if I run avrdude directly with the following command line, it programs successfully

avrdude -c usbtiny -p attiny85 -U flash:w:Tiny85Test.hex

Is there any way I can see the avrdude command that VM is generating for the upload?

I have the board set to 'ATtiny85 @ 8 MHz  (internal oscillator; BOD disabled)'

Cheers
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Problems uploading to Tiny85 with TinyISP
Reply #1 - Mar 7th, 2013 at 9:08pm
Print Post  
Verbose upload is on the list for the next release

In the meantime you can use the .exe in the zip below to show you the args.

vm_exe_args_explorer.zip

You don't need to re-start VS to use the exe. Rename avrdude.exe to something else then rename the exe to avrdude.exe. Run anything that calls avrdude.exe such as vm upload and a dialog will appear with the args that were passed. Then nothing will happen because the exe doesn't do anything else.
  
Back to top
IP Logged
 
MarvinMartian
Junior Member
**
Offline


Posts: 11
Joined: Apr 15th, 2010
Re: Problems uploading to Tiny85 with TinyISP
Reply #2 - Mar 8th, 2013 at 7:26am
Print Post  
Thanks Tim

I've pulled out the command params - not have to go through them and see what's causing the problem...
  
Back to top
 
IP Logged
 
MarvinMartian
Junior Member
**
Offline


Posts: 11
Joined: Apr 15th, 2010
Re: Problems uploading to Tiny85 with TinyISP
Reply #3 - Mar 8th, 2013 at 7:16pm
Print Post  
Ok this is wierd - the command line has two -q for "really quiet" mode - if I remove both, then verification succeeds. If I add one or 2 back in, verification fails.....

On a separate note - should the fused be being programmed in this upload too? Because there is no command to do that...
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Problems uploading to Tiny85 with TinyISP
Reply #4 - Mar 8th, 2013 at 7:39pm
Print Post  
Please run the upload from the arduino ide so that we can see the params. 

Someone reported the fuses not being set for the Arduino ISP so based on your test I will update the uploader accordingly.

Thanks very much.
  
Back to top
IP Logged
 
MarvinMartian
Junior Member
**
Offline


Posts: 11
Joined: Apr 15th, 2010
Re: Problems uploading to Tiny85 with TinyISP
Reply #5 - Mar 8th, 2013 at 8:14pm
Print Post  
I get the same error through the Arduino ide:

Binary sketch size: 754 bytes (of a 8,192 byte maximum)
avrdude: verification error, first mismatch at byte 0x0080
         0x80 != 0x58
avrdude: verification error; content mismatch

How do I get to see the command line from here?

  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Problems uploading to Tiny85 with TinyISP
Reply #6 - Mar 8th, 2013 at 8:50pm
Print Post  
It runs the same avrdude.exe as vm so you could use the exe from the zip BUT in arduino you can select "File>Preferences" and switch on Verbose Upload. This will show the command line in the Arduino Ide build window.
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Problems uploading to Tiny85 with TinyISP
Reply #7 - Mar 8th, 2013 at 8:51pm
Print Post  
ps: if you get the same error in the arduino ide then you can also ask questions on the arduino.cc forum. You might get a more intelligent response Smiley
  
Back to top
IP Logged
 
MarvinMartian
Junior Member
**
Offline


Posts: 11
Joined: Apr 15th, 2010
Re: Problems uploading to Tiny85 with TinyISP
Reply #8 - Mar 9th, 2013 at 9:28am
Print Post  
Rats! Switching on the verbose logging by definition switches off the quiet logging, and that makes the verification succeed!

But this definitely looks like an avrdude issue so I will persue elsewhere... thanks for your help so far.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Problems uploading to Tiny85 with TinyISP
Reply #9 - Mar 9th, 2013 at 8:11pm
Print Post  
Ok, will be keen to hear the solution thanks
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint