UPGRADE YOUR BROWSER

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!

cancel
Showing results for 
Search instead for 
Did you mean: 
Explorer
Explorer
5,240 Views
Registered: ‎09-08-2014

Virtex-7 boot file (including SDK files)

Jump to solution

Hi 

I have created a MicroBlaze project which I can load and programme via the SDK. However I need to create a boot file that can be loaded into memory and that the Virtex-7 part will boot and run from. How do I do this? I'd also like to be able to load this file into the FPGA via JTAG to be able to test that the file will work correctly. Can someone please point me at something which shows me how to do this please?

Cheers

0 Kudos
1 Solution

Accepted Solutions
Xilinx Employee
Xilinx Employee
9,349 Views
Registered: ‎07-23-2012

Re: Virtex-7 boot file (including SDK files)

Jump to solution
Please use the same download.bit file to generate a .mcs (or .bin) file to program the flash memory.
-----------------------------------------------------------------------------------------------
Please mark the post as "Accept as solution" if the information provided answers your query/resolves your issue.

Give Kudos to a post which you think is helpful.
0 Kudos
6 Replies
Scholar pratham
Scholar
5,211 Views
Registered: ‎06-05-2013

Re: Virtex-7 boot file (including SDK files)

Jump to solution

@pcaddick Go to your project directory, look for folder ****.sdk/hw/design_name_hw_platform/download.bit.

.

This download.bit file have .bit+.elf which can be converted to mcs using write_cfgmem and program flash or same download.bit can be downloaded directly using JTAG.

-Pratham

----------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.

Give Kudos to a post which you think is helpful and reply oriented.
----------------------------------------------------------------------------------------------
Xilinx Employee
Xilinx Employee
5,179 Views
Registered: ‎07-23-2012

Re: Virtex-7 boot file (including SDK files)

Jump to solution
What comprises of your boot image? Is it plain .bit file or .bit & .elf file?

If you have .elf file as well, then there are two ways to go about this-
1. Program FPGA in SDK would generate a download.bit file which is a combination of .bit & .elf file and when you configure the FPGA with this bit file, the application also runs post FPGA configuration. This can be used with both JTAG and other configuration modes (like Master SPI, Master BPI etc).
2. If you want to configure FPGA first and then launch application then you can make use of SREC boot loader. Please refer to http://www.xilinx.com/support/answers/64238.html for more details.
-----------------------------------------------------------------------------------------------
Please mark the post as "Accept as solution" if the information provided answers your query/resolves your issue.

Give Kudos to a post which you think is helpful.
Explorer
Explorer
5,169 Views
Registered: ‎09-08-2014

Re: Virtex-7 boot file (including SDK files)

Jump to solution

Hi @smarell & @pratham

thanks for your replies.

 

@pratham not sure how you combine the bit & elf file. I have always used Create boot image but this appears to be only for the Zynq architecture. I used to use this to create a bin file so I could boot from an SD card. This doesn't appear to be possible for the Virtex 7 part (or is it?)

 

ps I went to project directory and looked for folder ****.sdk/hw/ this doesn't exist. I did find the bit file in ****.sdk/design_name_hw_platform/. I found the elf file in ****.sdk/***_app\Debug

 

Where do you run write_cfgmem. Do you do this in the tcl shell?

 

@smarell I normally program the part using the SDK. I program the part using "program FPGA" under Xilinx Tools (2016.2) and then under the app I select Run As > Launch on Hardware (GDB).

 

What I want is one file that I can create and load into the boot memory that will load both the bit & elf file and run the code.

Cheers

 

 

 

0 Kudos
Xilinx Employee
Xilinx Employee
5,165 Views
Registered: ‎07-23-2012

Re: Virtex-7 boot file (including SDK files)

Jump to solution

Please refer to the below snapshot. You have to select your application in place of "bootloop" to generate download.bit file which is a combination of your .bit and the .elf file specified. 

-----------------------------------------------------------------------------------------------
Please mark the post as "Accept as solution" if the information provided answers your query/resolves your issue.

Give Kudos to a post which you think is helpful.
Capture.PNG
Explorer
Explorer
5,162 Views
Registered: ‎09-08-2014

Re: Virtex-7 boot file (including SDK files)

Jump to solution

@smarell That's great. I'm now able to program it so that its running immediately after its programmed. What I need now is the file that I should load into the boot memory so that it runs immediately after power up.

0 Kudos
Xilinx Employee
Xilinx Employee
9,350 Views
Registered: ‎07-23-2012

Re: Virtex-7 boot file (including SDK files)

Jump to solution
Please use the same download.bit file to generate a .mcs (or .bin) file to program the flash memory.
-----------------------------------------------------------------------------------------------
Please mark the post as "Accept as solution" if the information provided answers your query/resolves your issue.

Give Kudos to a post which you think is helpful.
0 Kudos