APM 2.24 seems a bit big for atmega1280.

 

When compiling for arduino mega 2560, It gives this memory report:

 

Binary sketch size: 131036 bytes (of a 258048 byte maximum)

 

Any pointers to reducing the code size so it will compile for atmega1280?

Tags: apm, atmega1280, footprint, memory

Views: 321

Reply to This

Replies to This Discussion

explicitly define the type of GPS controller you have, and it'll disable to autodetection code, which in turn disables all the code for all the GPS module/s that are not being used.

Sweet, just under the wire!

 

Binary sketch size: 126844 bytes (of a 126976 byte maximum)

Please sir , can you upload a guideline or a photo with info aboute how to  "define the type of GPS controller you have, and it'll disable to autodetection code"

 

Thank You

Nikos

Add this to APM_Config.h:

// GPS is auto-selected
#define GPS_PROTOCOL         GPS_PROTOCOL_UBLOX

 

Better to read this,

http://www.diydrones.com/profiles/blogs/getting-the-most-out-of-your

 

He might have another GPS than UBLOX...

Another option to reduce the memory footprint is to turn off the DataFlash logging.

RSS

Social Networking

Contests

Season Two of the Trust Time Trial (T3) Contest has now begun. The fourth round is an accuracy round for multicopters, which requires contestants to fly a cube. The deadline is April 14th.

A list of all T3 contests is here

Advertisement

© 2013   Created by Chris Anderson.   Powered by

Badges  |  Report an Issue  |  Terms of Service