I found that when using ardupilot-arduion ide 1.0.3 , the code can be compiled successfully,but when upload finished it verify failed. "avrdude: verification error, first mismatch at byte",and use this ide to flash bootloader, same issue.
but use arduino ide 1.6, uploading bootload and other sample project succeed. The problem now is that i can't figure out how to use arduino ide 1.6 to compile ardupilot code.
any one can help?
Replies
So there were various imporant changes in Arduino since 1.0.3, so if you want to use an Arduino version different from 1.0.3 you'll need to download the recent version and then port over the patches that were applied to 1.0.3 in https://github.com/diydrones/Arduino
I haven't tried using the Arduino IDE but I'm successfully building latest code with recent Arduino with ardupilot's build system, from command line. That however is broken and I needed to apply this patch: https://github.com/balrog-kun/ardupilot/commit/13b3723b758f3fa6eefb...
Unfortunately the Ardupilot project is working towards dropping APM boards support (and so the Arduino support) and won't accept fixes for the build system.
Thanks. Porblem has been solved. The problem is because that the sketch is too big, but arduino ide thought the size is ok, its the ide's issue. If the size too big, it will lead to verification failed.
What I've read is that the copter build became too big but plane and rover are still Ok. I built copter by disabling a few of the optional features in APM_Config.h