Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Real time embedded FreeRTOS mailing list 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem TCP & FAT Training




Loading

FreeRTOS atmega8 - problems with compilation

Posted by misiekg on October 27, 2009
Hello,

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.

RE: FreeRTOS atmega8 - problems with compilation

Posted by Dave on October 27, 2009
Sounds like you have simply run our of flash space.

RE: FreeRTOS atmega8 - problems with compilation

Posted by misiekg on October 27, 2009
Ok, it seemd like it for me, but what should I do so? How can i make FreeRTOS smaller than that? It was only example compiled.

RE: FreeRTOS atmega8 - problems with compilation

Posted by misiekg on October 27, 2009
I know that helping this way is hard. My email is misiekg@gmail.com if sb could send compiled and fully working example I would be very grateful.

Greetings.

RE: FreeRTOS atmega8 - problems with compilation

Posted by Richard on October 27, 2009
I would be happy to email you a working project, if you first provide:

1) The required hardware.
2) The required compiler.
3) A small fee.

but I would much rather problems were sorted out on this forum so it provides a valuable resource for other open source users. Moving things to private email helps nobody but yourself.

Somebody emailing you a binary is not going to help you increase the amount of flash your microcontroller has available.

Regards.

RE: FreeRTOS atmega8 - problems with compilation

Posted by misiekg on October 27, 2009
Yes, but its hard to post all code here, maybe could write me what to do. I use atmega8 with 8k flash and compile it with AVR-gcc. I tried to compile provided example, but it tooks too much space in my microcontroler.

Now code to ensure good working of my linefollower takes 4% of total flash, but I didnt tried to implement it to FreeRTOS yet - first tried to compile an example.

How much of flash takes the OS after compiling? I need only 3 simple tasks - 1 to get ADC reads, 2 to show sth on LCD and 3 to realise PID algorithm and stearing engines.


[ Back to the top ]    [ About FreeRTOS ]    [ Sitemap ]    [ ]




Copyright (C) 2004-2010 Richard Barry. Copyright (C) 2010-2016 Real Time Engineers Ltd.
Any and all data, files, source code, html content and documentation included in the FreeRTOSTM distribution or available on this site are the exclusive property of Real Time Engineers Ltd.. See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Real Time Engineers Ltd.

Latest News:

FreeRTOS V9.0.0 is now available for download.


Free TCP/IP and file system demos for the RTOS


Sponsored Links

⇓ Now With No Code Size Limit! ⇓
⇑ Free Download Without Registering ⇑


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Renesas Electronics Gold Alliance RTOS Partner.jpg

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Atmel RTOS partner supporting ARM Cortex-M3 and AVR32 microcontrollers

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Xilinx Microblaze and Zynq partner

Silicon Labs low power RTOS partner

Altera RTOS partner for Nios II and Cortex-A9 SoC

Freescale Alliance RTOS Member supporting ARM and ColdFire microcontrollers

Infineon ARM Cortex-M microcontrollers

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

Cypress RTOS partner supporting ARM Cortex-M3

Fujitsu RTOS partner supporting ARM Cortex-M3 and FM3

Microsemi (previously Actel) RTOS partner supporting ARM Cortex-M3

Atollic Partner

IAR Partner

Keil ARM Partner

Embedded Artists