NanoSatisfi open sources some of its satellite code, enter atmega2560-xmem.
github.com