AVR and C++

Has anyone succesfully compiled and run FreeRTOS for AVR using C++? I have successfully compiled and linked the demo application, but it will not run. The changes necessary were minor – only a few changes to handler the stricter type checking in C++. /Lars Hamren

AVR and C++

Can you step through the code and find where the problem occurs?

AVR and C++

I started turning the example into a simple program with only one task vErrorChecks . In this task you could toggle a LED as a basic test to see if scheduler is running. Be aware of the low RAM size of the AVR’s. I had only 512 bytes RAM on a AT90S8535 and couldn’t get it running (exits scheduler). If you have configured the heapsize too large it won’t run too. My application runs now on an ATmega32 2kB RAM and have set configTOTAL_HEAP_SIZE to 500 in the config file to get it running.