Hi guys
I am having some trouble uploading the APM firmware via Arduino IDE.
The code does not compile as the “sketch is too big”.
I'm using the APM2.2 firmware where the HIL stuff is already commented out. I did not change the code at all.
It is not a board problem as when I upload the code via the mission planner everything works perfectly.
It is not a wrong setting on Arduino IDE as I successfully tested the board with some of the test codes provided in APM wiki
The strange thing is that the code compiles fine if HIL is enabled.
Any suggestions?
Regards
Replies
I am trying to load APM 2.2 for an aircraft autopilot through APM Mission Planner but it keeps getting stuck on "Checking APM version". I am using a APM v1.0 blue board and also tried it on v1.0 red board - both with oilpan. So I cannot just try APM MP as suggested.
Just to confirm that everything is setup OK (cables, ports, board) I tried uploading the APM_RC sketch via Adruino IDE and that works well.
So I thought I would try compiling APM 2.2 via the Arduino IDE, it compiles OK but I get the same error as June at the begining of this thread namely:
Binary sketch size: 131608 bytes (of a 126976 byte maximum)
processing.app.debug.RunnerException: Sketch too big;
I followed Chris's instructions in the http://diydrones.com/profiles/blogs/getting-the-most-out-of-your to try and reduce the size but still get 131608 bytes. Also going through the code it appears that most code is already to set to only compile if required so size should already be less than the max for APM 1280.
From various posts it is stated that up to APM 2.3 it will remain compatible both with Mega 1280 and Mega 2560.
I really need help as totally stuck and badly need to get it working especially in HIL_XPLANE mode for some important tests.
http://diydrones.com/profiles/blogs/getting-the-most-out-of-your