porting FreeRTOS on Zedboard

rohin363 wrote on Friday, June 12, 2015:

i am trying to port freeRTOS on zedboard . i downloaded the FreeRTOSV8.2.1 from the website but from there on i don’t know what to do next. i tried searching a lot but i couldn’t find a source that tells me how to do it from scratch.

rtel wrote on Friday, June 12, 2015:

The demo is somewhat separate from the hardware on which it is running. If you stick to the blinky demo you will probably find the only thing you need to change is the port number used to toggle an LED.

The Xilinx tools keep the hardware definition and BSP separate from the application. So you will need to create a hardware definition project for your hardware (I’m sure you will be able to download one, if indeed, there is not one already built into the SDK), then create a BSP for your project (using the File->new->bsp menu in the SDK), then import the FreeRTOS project and set it to use the BSP you just created.

Alternatively, I think in the SDK you can simply use the File->New->Application project menu option, then you will be presented with some pre-configured hardware platforms, and you may find yours is listed.

These are Xilinx tools questions though, not FreeRTOS questions.


heinbali01 wrote on Friday, June 12, 2015:

Hello Rohin,

I attached a screen-dump called “xilinx_project.png”, hope it’s helpful.

The Xilinx projects in Eclipse are a bit different from what you might be used to. To run a program, you need 3 sub-projects:

  • BSP : these are source files created by and maintained by Xilinx
    Right-click to find a button call “Re-generate BSP sources”

  • MicroZed_hw_platform, containing files like ps7_init.* and system.xml.
    (You can download this sub-project)

  • RTOSDemo or your own source tree.

To run the project you will have to add a debug configuration.
I showed mine in the attachment.
It took me a lot of time to find out that you must use an initialisation file (ps7_init.tcl), and use the options shown (“Reset Entire System”, and “Run ps7_init”).
Under Application you will choose something like “Debug/RTOSDemo.elf”.

Also check the project references, RTOSDemo refers to the 2 other projects that you use: “MicroZed_hw_platform” and the BSP project.