FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [May 2005 Threads] Newbie problemsPosted 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 problemsPosted 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 problemsPosted by Nobody/Anonymous on May 27, 2005 Thanks for the help!!! It works now when i increased the heap size.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|