Sunday 11 November 2012

Porting FreeRtos on ARM 7

Start by downloading a FreeRtos kernel in this case V5.3.0 , but feel free to use your favorite version from here which is completely free.And the ARM7 is KEIL MCB2100

We shall also be needing Flash Magic from here and Keil uVision Integrated Development Environment.

Start uVision IDE (I have used uVision 4).

Open project.
Select RTOS Demo from FreeRtos folder
Go to Project in uVision and select Device .
Then build the target
Here you may have to set the crystal frequency and other options (Check the data sheet for your ARM), in my case the frequency would be 12Mhz
In the output tab select create HEX file

Now Build Target in Project tab.This creates the hex file in your directory.
Start Flash Magic
     communication settings
        Select Device (mine would be LPC2129)
        COM port COM1(or others)
        Baud rate 115200(your choice)
        Interface none
        Oscillator 12 (Mhz)

Erase All Flash

Select Hex File

Set "Verify after programming"

Start it!

Thats it , FreeRtos is on ARM7 , you are greeted by blinking LED's
Now prior to generation of HEX file you can EDIT the FreeRtos source code , You can even define your own task in its main program; Thus you can execute just any application.

No comments:

Post a Comment