We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

Showing results for 
Search instead for 
Did you mean: 
Registered: ‎03-04-2018

Beginner - Emulation of bare metal led blinking

Hello everybody!

Sorry in advance for my bad english.

I'm a student that should present a project based on zedboard, but for the moment I cannot use the board, thus, professor told me that I can use a simulation tool, he has not been more detailed.

I'd like to start with a simplest code that make a led blinking. Is this possible?

Until now I launched sdk and generate an hello_world project zedboard-based, i try to start the qemu (I followed a guide) but it ask me about a "dtb" file. Sdk does not provide that file, so I think that I should generate it from "hdf" file like in this GUIDE.

So, that guide seems too long and I'm thinking that I'm completely out of way, could someone indicate me the correct approach to start from the beginning for my purpose? Thanks in advance.

0 Kudos
4 Replies
Scholar jmcclusk
Registered: ‎02-24-2014

Re: Beginner - Emulation of bare metal led blinking

you are on the right track, but there are few shortcuts to getting a simulation of an LED blinking.   It's very easy without the Zynq processor, but much more complicated with the PS included.  You will have the same long process to generate an image and bitstream for the zedboard, as you will to perform a simulation using qemu.


I think this zedboard tutorial on qemu will help you:




Try this with a linux machine (either native linux, or a virtual box machine).   Good luck!

Don't forget to close a thread when possible by accepting a post as a solution.
Registered: ‎03-04-2018

Re: Beginner - Emulation of bare metal led blinking

Thank you very much for your fast reply!


I had visited that link that you indicated (http://zedboard.org/content/qemu-deep-dive-0), but I got stuck when it says to download  tar archive from http://wiki.xilinx.com/zynq-qemu.


I think that guide is a little bit out of date, because I could not find tar archive, instead there is a git repo that I cloned, configured and compiled, but the shell commands to follow in the rest of the tutorial did not work.


Anyway, maybe I think that I have found another tutorial to start the emulation. Instead, what I couldn't understand until now is how to create "dtb" file following THIS guide (that I already mentioned in the first post).


In particular between point 3 and 4 it says:

  • The Device Tree Generator Git repository needs to be cloned from the Xilinx. See the Fetch Sources page for more information on Git.
    # Otherwise for SDK 2014.2 use this repo:
    git clone git://github.com/Xilinx/device-tree-xlnx.git
  • Add the BSP repository in SDK (for SDK 2014.2 and later select "device-tree-xlnx" from the checked out git area):
    SDK Menu: Xilinx Tools > Repositories > New... (<bsp repo>) > OK


It take for granted that one know what "BSP repository" is and how is correlated to git repository could you furtherly help me? Thank you again.


0 Kudos
Scholar vanmierlo
Registered: ‎06-10-2008

Re: Beginner - Emulation of bare metal led blinking

Why is this question in the Embedded Linux forum?

0 Kudos
Registered: ‎03-04-2018

Re: Beginner - Emulation of bare metal led blinking

I realized it only now, it's a mistake, sorry.

0 Kudos