Hi all,
I've made some changes on the current code and wanted to try them on my copter.
I've compiled using arduino IDE as explained in
this tutorial. I did it several times before from master code and everything worked fine.
But, this time, I've got an error message, the sketch size was around 261kB for a max of 258kB.
Leonard told me to disable some functionnalities in APM_Config.h and, this way, I could lower the sketch size under the limit.
Arduino log : Sketch size 255 620 bytes (max 258 048 bytes)
Well, I've started mission planner to load my new .hex file into the APM 2.5
Connection OK, loading complete, Verifying... and, here, an error message. I should have recorded it, it was something like :
exp B got GB at 253165, don't remember exactelly.
I cancelled to retry loading the firmware but, from this moment, I've got always the same error message :
Communication error - no connection
The COM port is enabled in device manager when I plug the USB.
When mission planner tries to connect, the APM orange LED is flashing once per try. Seems it receives communication data but doesn't answer.
The result is the same if I try to load the firmware with arduino.
That's not a software problem nor driver because I have another APM and I can connect it using the same USB port.
So, I wondered if I have not erased (even partially) the ATMega 2560 bootloader
Anybody had this kind of issue?
If that's the bootloader, someone could explain how to reinstall it?
This wiki has to be developped :
http://dev.ardupilot.com/wiki/updating-the-apm2-x-bootloade/I've found topics for flashing ATMega2560
here and
here but I've just an USBASP not upgraded and no AVR ISP MKII :/
To finish, if the firmware size is the problem, we should fix a lower limit in arduino IDE or an alert in mission planner once hex file has been read.
BTW, what does that post mean?
https://groups.google.com/d/msg/drones-discuss/L9vlwqYGijo/OmUO3WpRiEYJShould we use that new GCC compiler?
In advance, thanks for any help.
Julien