Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem


Newbie problems

Posted by Nobody/Anonymous on May 26, 2005

I have just started to learn about RTOS.

I have managed to got the demo for avr work on my atmega128L with stk500 & stk501.

Now i try to add a task to the demo version for avr but the system seems to hang in my taskcreate routine.

Anybody who has the time to explain or has some code that i can add to the demo for example toggle a led connected to porta or something so i can learn how to create a very simple task to start with.


RE: Newbie problems

Posted by Nobody/Anonymous on May 26, 2005
Take a look at the previous thread - http://sourceforge.net/forum/forum.php?thread_id=1290807&forum_id=382005

The Mega128 has more RAM than the 323 - for which the FreeRTOS download is configured. Try increasing the heap size. To do this look in the file FreeRTOS/Demo/AVR_ATMega323_WinAVR/FreeRTOSConfig.h (assuming you are using GCC). In this file you will see the definition configTOTAL_HEAP_SIZE - you can increase this to 2500 (or more). This will give more RAM to the kernel so it can create more tasks.

To see a simple task that simply flashes an LED at a fixed rate look at the file FreeRTOS/Demo/Common/Minimal/Flash.c. This creates three identical tasks that do just this.

RE: Newbie problems

Posted by Nobody/Anonymous on May 27, 2005
Thanks for the help!!!
It works now when i increased the heap size.

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

Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

NXP tweet showing LPC5500 (ARMv8-M Cortex-M33) running FreeRTOS.

Version 10.1.1 of the FreeRTOS kernel is available for immediate download. MIT licensed.

View a recording of the "OTA Update Security and Reliability" webinar, presented by TI and AWS.


FreeRTOS and other embedded software careers at AWS.

FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Espressif ESP32

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers


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

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

OpenRTOS and SafeRTOS

Xilinx Microblaze and Zynq partner