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) AVRDUDE Checksum Fail on MEGA/UNO (Read 12208 times)
nat45929
Junior Member
**
Offline


Posts: 11
Joined: Feb 9th, 2015
AVRDUDE Checksum Fail on MEGA/UNO
Feb 9th, 2015 at 3:13pm
Print Post  
Hey all,

I am using Visual Micro inside visual studio to develop. Recently since I switched I noticed that my MEGA 2560 is getting a checksum error on each upload. The uploads appear to work however as the code changes and functions properly. Error:


Code
Select All
avrdude: stk500v2_recv(): checksum error
avrdude: verification error, first mismatch at byte 0x36bc
         0xbc != 0x9f
avrdude: verification error; content mismatch 





So I tried with one of my uno boards and got the same behavior. The regular Arduino IDE works fine uploading the basic blink sketch on both MUCs.

Any ideas on what is happening?

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


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: AVRDUDE Checksum Fail on MEGA/UNO
Reply #1 - Feb 9th, 2015 at 5:51pm
Print Post  
Hi,

Strange normally you would only see this if you have the wrong board selected or the wrong upload type. 

Visual Micro uses the avrdude.exe from the arduino ide config to upload, so we would expect the same results in Visual Micro as the Arduino Ide.

Can you please switch on "tools>visual micro>compiler verbose" then try upload and post the output. This will show us which version of arduino you are using, which board you have selected and the type of upload etc.

Thanks
« Last Edit: Feb 9th, 2015 at 5:54pm by Tim@Visual Micro »  
Back to top
IP Logged
 
nat45929
Junior Member
**
Offline


Posts: 11
Joined: Feb 9th, 2015
Re: AVRDUDE Checksum Fail on MEGA/UNO
Reply #2 - Feb 9th, 2015 at 6:59pm
Print Post  
I'll post the output later this evening when I am at the board. Off the top of my head, i think things started being funky after playing with the debugger, could a setting in there have messed things up?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: AVRDUDE Checksum Fail on MEGA/UNO
Reply #3 - Feb 9th, 2015 at 7:20pm
Print Post  
No the debugger just uses serial. Look forward to seeing the output thanks
  
Back to top
IP Logged
 
nat45929
Junior Member
**
Offline


Posts: 11
Joined: Feb 9th, 2015
Re: AVRDUDE Checksum Fail on MEGA/UNO
Reply #4 - Feb 9th, 2015 at 10:41pm
Print Post  
Here is the output, I am using a MEGA 2560 on COM7

I had to use OneDrive because the file is 1MB.

http://1drv.ms/1zQqGoz
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: AVRDUDE Checksum Fail on MEGA/UNO
Reply #5 - Feb 9th, 2015 at 11:19pm
Print Post  
Thanks for the output

Does the arduino ide upload your sketch correctly?
Does visual micro upload the blink sketch correctly?

Thanks
  
Back to top
IP Logged
 
nat45929
Junior Member
**
Offline


Posts: 11
Joined: Feb 9th, 2015
Re: AVRDUDE Checksum Fail on MEGA/UNO
Reply #6 - Feb 9th, 2015 at 11:31pm
Print Post  
The blink sketch uploads fine in both the Arduino IDE and a new Visual Micro solution. I am rebuilding my project in a new solution to test something else so I'll see if that fixes things.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: AVRDUDE Checksum Fail on MEGA/UNO
Reply #7 - Feb 9th, 2015 at 11:34pm
Print Post  
Ok, you have not said if the arduino ide can upload your sketch?
  
Back to top
IP Logged
 
nat45929
Junior Member
**
Offline


Posts: 11
Joined: Feb 9th, 2015
Re: AVRDUDE Checksum Fail on MEGA/UNO
Reply #8 - Feb 9th, 2015 at 11:47pm
Print Post  
I Can't really test mine because of the size. I did notice when I upload at the end of the RX cycle back, the pin 13 LED flashes with the RX LED.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: AVRDUDE Checksum Fail on MEGA/UNO
Reply #9 - Feb 9th, 2015 at 11:52pm
Print Post  
Sorry I don't understand. What do you mean by you cant test because of the size?
  
Back to top
IP Logged
 
nat45929
Junior Member
**
Offline


Posts: 11
Joined: Feb 9th, 2015
Re: AVRDUDE Checksum Fail on MEGA/UNO
Reply #10 - Feb 10th, 2015 at 12:03am
Print Post  
Sorry, it was just a pain to move around. It failed in the IDE as well. it seems like the 0x3### blocks always fail.

Thanks for the help and quick replies!  Smiley
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: AVRDUDE Checksum Fail on MEGA/UNO
Reply #11 - Feb 10th, 2015 at 12:06am
Print Post  
Ok thanks for the update. You should be able to open the sketch from any location in either ide?
  
Back to top
IP Logged
 
nat45929
Junior Member
**
Offline


Posts: 11
Joined: Feb 9th, 2015
Re: AVRDUDE Checksum Fail on MEGA/UNO
Reply #12 - Feb 10th, 2015 at 12:08am
Print Post  
I had to adjust sketchbook locations. Either way, it fails in the IDE. Is there a way to test the flash banks?

Side note: rev 1.6.0 of the IDE went out today, imma try it and see what happens. I doubt it will help.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: AVRDUDE Checksum Fail on MEGA/UNO
Reply #13 - Feb 10th, 2015 at 12:14am
Print Post  
Thanks for the update. Maybe they have fixed it in 1.6 but think its same avrdude as 1.5.8

Please post anything you find that might help others
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint