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

Saturday,April 20, 2024, 00:28:38

Login with username, password and session length

Shoutbox

hoverfly:
17 Apr 2024 17:15:13
 :rolleyes:
Bad Raven:
26 Mar 2024 08:41:05
 :(
Andy7:
25 Mar 2024 14:49:21
An excess of work and rain.  :thumbdown:
Bad Raven:
23 Mar 2024 18:12:38
Almost a personal Blog, it would seem. LOTS of members, but NO posts.  :-/   :shrug:
Gaza07:
06 Mar 2024 16:59:49
Anyone still here  :shrug:
ched:
24 Dec 2023 11:48:48
Hope you all have a Great Christmas and a happy New Year.
Bad Raven:
20 Dec 2023 06:17:47
 ~~   :beer2: 
Gaza07:
19 Dec 2023 22:20:27
Merry Christmas All  :beer2:
Bad Raven:
01 Dec 2023 06:59:57
New Simulator Section started!   :beer2:
Bad Raven:
17 Jun 2023 06:52:23
Yes, smaller, same as lots of things as time passes.
Members
Stats
  • Total Posts: 201,425
  • Total Topics: 20,260
  • Online today: 34
  • Online ever: 530
  • (Tuesday,June 26, 2012, 08:34:46 )
Users Online
Users: 0
Guests: 22
Total: 22

Theme Changer





3d - Printworx

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:
[url="https://www.youtube.com/channel/UCN6zN99iLCIJea5FCQPKf_g"]YouTube[/url]   [url="https://www.printing-3d.co.uk"]printing-3d[/url]  [url="https://www.thingiverse.com/Gaza07/about"]Thingiverse[/url]  [url="https://www.3d-printworx.co.uk"]3d-printworx[/url]

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

#11
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

#13
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  ~~
[url="https://www.youtube.com/channel/UCN6zN99iLCIJea5FCQPKf_g"]YouTube[/url]   [url="https://www.printing-3d.co.uk"]printing-3d[/url]  [url="https://www.thingiverse.com/Gaza07/about"]Thingiverse[/url]  [url="https://www.3d-printworx.co.uk"]3d-printworx[/url]

ericb

#16
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