rtel wrote on Friday, November 12, 2004:
Assuming you have already looked at the "To use a microcontroller other than an AVR ATMega323" section of http://www.freertos.org/a00098.html - and followed the instructions there - then in addition to use a part with only 1K of RAM you will have to create less tasks.
To just run the flash tasks (assuming you have an STK500):
1) Remove the lines in demo/ATMega323/main.c that create tasks, other than the flash tasks…so delete the lines :
vStartIntegerMathTasks( tskIDLE_PRIORITY );
vAltStartComTestTasks( mainCOM_TEST_PRIORITY, mainCOM_TEST_BAUD_RATE, mainCOM_TEST_LED );
vStartPolledQueueTasks( mainQUEUE_POLL_PRIORITY );
and
sTaskCreate( vErrorChecks, "Check", portMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );
I tried this in the AVRStudio simulator with portTOTAL_HEAP_SIZE set to 700.
As stated previously, I think the timer setup is slightly different on the 16 than the 323 - so this will require modification in port.c.