Sorry, you need to enable JavaScript to visit this website.

HW Design for FreeRTOS, How to add feature to demo BSP?

Unsolved
5 posts / 0 new
FreeDrive's picture
FreeDrive
Junior(0)
HW Design for FreeRTOS, How to add feature to demo BSP?

Hello everyone!

I am currently running the FreeRTOS demo.
http://www.freertos.org/RTOS-Xilinx-Zynq.html

I would like to use extra functionality from the ARM CPU, like SPI.

In order to do so I would like to modify the HW design (MIO Configuration), and regenerate the BSP.

But the Vivado project is not included in the demo.

Is there any way to coming back from SDK to vivado HW design?

If it is not possible is there any tutorial that explains how to create a HW design for FreeRTOS?

Thanks for any help :)

TroutChaser's picture
TroutChaser
Moderator(18)
I assume you want to use a

I assume you want to use a ZedBoard based on the forum. You could probably start with the Vivado 2014.2 design from Chapter 3 of the Zynq Concepts, Tools and Techniques tutorial here: http://zedboard.org/support/design/1521/11
 
You might need to change the LED targeted from '10' to '9', but the remainder of the base hardware should be a good starting point. You might want to take a look at a couple of the Adam Taylor MicroZed Blog entries on using FreeRTOS:
 
http://forums.xilinx.com/t5/Xcell-Daily-Blog/Adam-Taylor-s-MicroZed-Chro...
http://forums.xilinx.com/t5/Xcell-Daily-Blog/Adam-Taylor-s-MicroZed-Chro...
 
and there is a FreeRTOS demo based on the ZedBoard using Vivado posted here:
http://www.freertos.org/Interactive_Frames/Open_Frames.html?http://inter...
 
-Gary

FreeDrive's picture
FreeDrive
Junior(0)
Yep, I am using zedboard :)

Yep, I am using zedboard :)

Yep, you have understood that I am new to this 

Thanks you for your links, they are really useful!

But they are still confusing in Adam Taylor’s blog he mention this:

“This demo has been developed for the ZC702 development board and comes with a BSP and hardware definition for that particular board. However, as I am using the MicroZed board, I will be using my own hardware definition and BSP to run this demo.”

He did not specify anything about how to create the hardware definition.

So I guess that any HW design and bsp created with vivado will run the FreeRTOS application. Am I correct?
I do not need specific configuration? Like clock speed, DDR?

TroutChaser's picture
TroutChaser
Moderator(18)
In previous posts in Adam

In previous posts in Adam Taylor's blog he has gone through the process of generating a basic Zynq design on his MicroZed. I have not done a FreeRTOS port, but from what I can tell the demo only uses a 'basic' system (like the ones in the Zynq Concepts Tools and Techniques and Adam Taylor's design) that includes DDR memory, a USB-UART interface, an LED interface and I suspect it might need a timer as well.
 
Once you build your own basic system and test with the stock FreeRTOS demo you can then go back and modify your hardware design and try it out in Free RTOS.
 
If you are new to the Zynq and the Xilinx tools you might want to consider downloading the Avnet Zynq Software and Hardware Speedway design courses (in that order) and working through the labs. You can download them here:
 
http://zedboard.org/support/trainings-and-videos
 
Developing Zynq®-7000 All Programmable SoC Software (Vivado 2013.3)
Developing Zynq®-7000 All Programmable SoC Hardware (Vivado 2013.3)
 
-Gary

FreeDrive's picture
FreeDrive
Junior(0)
Cool tnx I will try to do it

Cool tnx I will try to do it :)