Free RTOS

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Free RTOS

704件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Sharadanand on Mon Jan 02 22:19:09 MST 2012
We may require multitasking for our project.
I am looking for freeRTOS as an option where can I find examples for freeRTOS?:o
0 件の賞賛
返信
2 返答(返信)

648件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Rob65 on Tue Jan 03 00:01:31 MST 2012
In the FreeRTOS project wizard :eek:

As soon as you create a new LPC1700 project using the project wizard you see that you have the choice to create a FreeRTOS project.
That one will do the trick for you.

There is just one thing I do not like: the FreeRTOS source is placed in a separate source directory in your project. I prefer to have the FreeRTOS code in a separate project, resulting in a static library, such that you can create multiple executable programs within the same FreeRTOS configuration.
This makes it easier to create in one workspace both your application's program and test programs to test parts of your code with the same (FreeRTOS) settings.
In this case, change the default FreeRTOS ways of using the FreeRTOSConfig.h also: by default (that is, as is done in the FreeRTOR projects you find in the FreeRTOS releases) FreeRTOS places this config file in the source folder of your project (resulting in an executable program).

But since FreeRTOS is compiled as a separate static library that can be included in multiple projects in your workspace, it is better to move the config file to the FreeRTOS project.
This way you have a good separation between the Operating System and its settings and your own projects.

If you want an example of this, check out my Platform1754 code.
The PlatformTest project creates an executable program contains a main() that creates one task (SetupTask) which in turn starts the other tasks. For a simple test, remove the tasks started in the SetupTask and perhaps also change the delays in the led blink part of that task.
Although the project is created for an lpc1754 you should be able to reconfigure it for an lpc1769 by just changing the project's MCU properties.

Regards,
[INDENT]Rob
[/INDENT]
0 件の賞賛
返信

648件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by nkarakotas on Mon Jan 02 23:52:52 MST 2012
Hi,

Download the FreeRTOS from the website and look into the Demo folder. It has an example of CodeRed with uip.

Regards,
Nick
0 件の賞賛
返信