Welcome to Multi-Rotor UK. Please login or sign up.

Friday,September 20, 2019, 21:14:52

Login with username, password and session length

Shoutbox

ched:
31 Aug 2019 20:37:03
Looking forward to BFU #9 footage  :D Hope you all had a great time
Gaza07:
31 Aug 2019 04:46:44
Hope you all have a great day today at the BFU 9  :beer2:
dp106:
29 Aug 2019 11:19:07
try again now, hopefully it should be resolved...
Gaza07:
29 Aug 2019 11:17:40
Should be fixed now
hoverfly:
29 Aug 2019 11:12:33
replies with only a few words are being rejected as file too big.. :hmm:
dp106:
29 Aug 2019 11:09:33
3D Site also affected
dp106:
29 Aug 2019 11:09:11
Gaza is on the case
dp106:
29 Aug 2019 11:09:03
there are currently issues with the forum
dp106:
29 Aug 2019 11:06:07
test
ched:
28 Aug 2019 17:28:19
Cheers Andy7.
Members
Stats
  • Total Posts: 196838
  • Total Topics: 19836
  • Online Today: 53
  • Online Ever: 530
  • (Tuesday,June 26, 2012, 08:34:46 )
Users Online
Users: 3
Guests: 40
Total: 43

Theme Changer





3d - Printworx

Printing 3d Forum

Error compiling sketch with Arduino

Started by ericb, Friday,July 12, 2013, 11:32:50

Previous topic - Next topic

ericb

I have tried to compile a sketch but am getting this error : avrdude: verification error, first mismatch at byte 0x0000
         0x0c != 0x14
avrdude: verification error; content mismatch

Does anyone have an idea of the way forward please ?

Aio V1, Arduino 1.0.3 and Megpirate 2.9.1b.....windows xp

Eric
Alien homemade , 330 homemade wonderful little thing oh and the 250 mini that is wonderful

Gaza07

Hi Eric have you selected the correct board type under tools this will cause an error what board are you using ?
also have you copied the library files from the firmware library folder to the apps library folder ?  :beer2:

Toledodave

^ i also flashed an updated 2.9 r306 last night and have no problems.  My only error was saving it compiled and atempting to edit an already compiled sketch and recompiled again and failed. If your going to save your sketch for later editing dont compile it. Save as is. Once compiled it can be opened and edited but then i couldnt compile again without errors. Other then that its a good release as far as i can tell.

ericb

I always copy and paste the libraries from Arducpoter into Arduino, then alter the bits, set GPS to UBLOX and click the arrow......it then runs through the process and shows the error above. I';ve tried using various versions but no.........Is there a way to clear all the data from the Crius board and start again ?
Alien homemade , 330 homemade wonderful little thing oh and the 250 mini that is wonderful

Jumpy07

Wont be the Crius board that';s causing the issues.. will be Arduino and the libraries on your PC..

Best to delete Arduino etc.. and download Fresh copy of it along with Fresh copy of MegaPirateNG

BNUC-S Pilot with PfCo /PFAW.
UAQ / CAA PfCo Instructor / Flight Assessor

"All that is necessary for the triumph of evil is that good men do nothing"

Toledodave

Quote from: ericb on Friday,July 12, 2013, 15:42:04
I always copy and paste the libraries from Arducpoter into Arduino, then alter the bits, set GPS to UBLOX and click the arrow......it then runs through the process and shows the error above. I';ve tried using various versions but no.........Is there a way to clear all the data from the Crius board and start again ?


Well prior to importing the librarys of megapirates there is an option under eeprom to clear in Arduino librarys. After importing librarys i have been flashing the basic sketch from the librarys and then flashing my sketch. Seems to work for me fine.

Gav

Try downloading the most up to date Arduino software 1.0.5.  It might have some additional libraries used on the sketch you';re trying to run.

http://arduino.cc/en/Main/Software

ericb

Quote from: Gav on Friday,July 12, 2013, 18:01:07
Try downloading the most up to date Arduino software 1.0.5.  It might have some additional libraries used on the sketch you';re trying to run.

http://arduino.cc/en/Main/Software


Could you point me in the right direction for that. I had a look on Arduino, and I see what you , but don';t know how to find that.
Cheers
Alien homemade , 330 homemade wonderful little thing oh and the 250 mini that is wonderful

Toledodave

Quote from: ericb on Saturday,July 13, 2013, 11:21:09
Could you point me in the right direction for that. I had a look on Arduino, and I see what you , but don';t know how to find that.
Cheers


But if hes useing Megapirate he has to import megas librarys which replaced Arduinos no matter the version. If he wants the eeprom clear he just needs to use it and clear it before copying the megapirates library into arduino. Megas library doesnt have an eprom clear. Just a basic sketch that will do 99.9% wipe.

Gav

I think you should just click on the windows installer for a pc or mac os for apple, just underneath the download heading.  As per attached photo




ericb

I think you need to go into the CLI to erase the EEPROM, I just dont know where it is
Alien homemade , 330 homemade wonderful little thing oh and the 250 mini that is wonderful

Toledodave

Saturday,July 13, 2013, 13:19:28 #11 Last Edit: Saturday,July 13, 2013, 13:39:23 by Toledodave
No... Listen :) just dl a new copy of Arduino then connect usb  and when you open sketch its a drop down menu (i think if remember right) under examples you will see Eeprom with arrow for more options , and in them options is a clear Eprom.   Key pt is to do this before bringing mega sketch in because your required to use his library ( by cut and pasting into Arduino folder and overwriting existing librarys folder) for his sketch because his library pack doesnt have the eprom clear and you need to do the clear (for reasons i dont know other then for compiling)  before compiling and flashing mega.

In order to get 2.9 (last i knew as of 3 days ago) you could only obtain it through a SVN host and it will (when setup) flag a red explanation point on the folder telling you that Megapirate has an update so you will always know as i keep my folder on my desktop.  Hope this helps :/

ericb

Thanks for talking the time to help me here. I tried that and still the same error.
Alien homemade , 330 homemade wonderful little thing oh and the 250 mini that is wonderful

Toledodave

Saturday,July 13, 2013, 16:04:08 #13 Last Edit: Saturday,July 13, 2013, 16:09:57 by Toledodave
Quote from: ericb on Saturday,July 13, 2013, 15:08:30
Thanks for talking the time to help me here. I tried that and still the same error.


Which files are you editing? Should be apm_config.h and config.h if running a tri.
Whats the Avrdude from? Your not changing the file name when u save are ya?

Im still a noob at this but normally when code is tweaked it shows which code. Since your error doesnt look like a code error to it looks more like a campatibility issue maybe. Like apm config isnt configured right for your setup. Because your error looks like an adress error not script error, like sketch is configured for a diff board. Again im a noob and i cant be sure. Just trying to help give some ideas.

ericb

There are others getting this error and I see no obvious solution. I';ve compiled the sketch as I have done several times , and this came out of the blue
Alien homemade , 330 homemade wonderful little thing oh and the 250 mini that is wonderful

Gaza07

Eric can you zip the firware up your trying to compile and email it to me and i will have a go  ~~
send it to gaza07@hotmail.co.uk or upload it to one of the free files sites and post a link maybe others can take a look then too  ~~

ericb

Saturday,July 13, 2013, 18:37:32 #16 Last Edit: Sunday,July 14, 2013, 15:31:03 by ericb
Above and beyond the call of duty. I';m currently reclining in the pub, but will send it tomorrow thanks. The Arduino program is 250 meg, so email is out. What if I posted you the board ?
Alien homemade , 330 homemade wonderful little thing oh and the 250 mini that is wonderful