I tried to compile and run FreeRTOS for atmega8 yesterday. I’m going to implement RT operating system in my linefollower robot.
I tried to change, build amd run an axample for atmega323. I changed MCU in makefile to atmega8, next edited FreeRTOSConfig.h:
#define configMINIMAL_STACK_SIZE ( ( unsigned short ) 80 )
#define configTOTAL_HEAP_SIZE ( (size_t ) ( 800 ) )
And tried to rebuild it but i finally get following error:
c:/winavr-20090313/bin/../lib/gcc/avr/4.3.2/../../../../avr/bin/ld.exe: rtosdemo.elf section .text will not fit in region text
c:/winavr-20090313/bin/../lib/gcc/avr/4.3.2/../../../../avr/bin/ld.exe: region text overflowed by 1148 bytes
When for example I took into a comment all main in example, region text is overflowed by 648 bytes for example.
What I’m doing wrong, what should be changed to build project for atmega8? I dont need many tasks, 2-3 so atmega8 will be enough?
Maybe somebody have it prepared and ready for compilation on atmega8? Could u send me it on mail or upload to some free service if you have?
I’m not nevbie in programming, I have my robot fully working now with single C code based hex, but need to implement FreeRTOS in it. I spent few days on it and couldnt to get it working – also searched much in web, but noone told directly what to do and all tips didn’t have much effect.
Please help me and thanks you very much in advance.