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

Newbie problems

Posted by Nobody/Anonymous on May 26, 2005
Hi.

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.

/Mattias

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 ]    [ 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