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] [September 2010 Threads]
hey all,
i have made a basic task scheduler with some elements of the RTOS system
for example i use the same SAVE_CONTEXT and RESTORE_CONTEXT and initialise stack
this is my main:
//main includes
#include "Main.h"
#include "Config.h"
#include "Scheduler.h"
//task includes
#include "KnipperLed.h"
/*
* Create task and then start scheduler
*/
void main()
{
createTask(knipperLed, 5);//(address task, priority)
startScheduler();
//here prog never comes
}
but i have one problem: if the scheduler starts, the stack points to
the createTask from my main routine instead of to the task?
how is that possible with the same initialise stack and restore_context?
This forum has enough to do to support its own RTOS without supporting yours too.
I presume you have kept in all the copyright notices?
nervermind...
of course i referenced to freeRTOS
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.