cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Explorer
Explorer
5,673 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
Highlighted
Community Manager
Community Manager
9,782 Views
Registered: ‎07-23-2012
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.

View solution in original post

0 Kudos
6 Replies
Highlighted
Scholar
Scholar
5,644 Views
Registered: ‎06-05-2013

@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.
----------------------------------------------------------------------------------------------
Highlighted
Community Manager
Community Manager
5,612 Views
Registered: ‎07-23-2012
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.
Highlighted
Explorer
Explorer
5,602 Views
Registered: ‎09-08-2014

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
Highlighted
Community Manager
Community Manager
5,598 Views
Registered: ‎07-23-2012

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
Highlighted
Explorer
Explorer
5,595 Views
Registered: ‎09-08-2014

@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
Highlighted
Community Manager
Community Manager
9,783 Views
Registered: ‎07-23-2012
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.

View solution in original post

0 Kudos