This seems unbelievable but true. Fellow John Sloan on linkedin posted his experience and a few links to his work. See below the direct links to the blogs. Lots of wisdom! Enjoy!
(Update July 10 2012: John’s post covers many common embedded programming topics, full of useful informatioon!)
- Atmel ATmega2560 eight-bit AVR microcontroller
- GCC 4.5.1
- AVR libc 1.8.0
- FreeRTOS 7.1.0
- Arduino Mega ADK with Ethernet Shield and Freetronics EtherMega2560
I’d like to get a subset of my unit test suite (which is kinda large) running on the ATmega328P but paring down the multitasking stuff to fit on that tiny uC is taking some time that I don’t have right now. But it’s the multitasking (specifically the task stacks) that’s the issue there, not C++.
I’ve written about this (including using templates) in my blog here: http://coverclock.blogspot.com/2012/04/learning-by-doing.html and http://coverclock.blogspot.com/2012/03/small-town-big-city.html. And a link to a tar ball of all my code can be found on the web page here: http://www.diag.com/navigation/downloads/Amigo.html