Load Program into ZYNQ's FLASH or SD-Card

Load Program into ZYNQ's FLASH or SD-Card

This Document is mended to provide the procedure of programming ZYNQ based FPGAs through FLASH or SD-CARD. The Board used for this demo project is Xilinx Zynq based ZYBO board.

After creating Bare metal application SDK project directory is as follows.

No alt text provided for this image

1st  step: Board Support Package Setting 

1.Right click on Zynq_BareMetal_App_bsp and click Board Support Package Settings.

2.Tick to include xilffs click OK (This is required to create the FSBL which would be used in next step)

No alt text provided for this image

2nd  Step: create the FSBL

Create a first stage bootloader (FSBL).

1.Select File > New > Application Project.

2.Enter zynq_fsbl as the project name, select the Use existing standalone Board Support Package option with hello_world_bsp, and click Next.

3.Select Zynq FSBL in the Available Templates pane and click Finish.

(A zynq_fsbl project will be created which will be used in creating the BOOT.bin) 

No alt text provided for this image

3rd  Step:Create Boot Image

1. You can create a new folder, such as image, to save boot files.

2.In the SDK, select Xilinx > Create Boot Image.

3. Select output bif with bin File path and file. 

No alt text provided for this image

NoteBoot image partitions The order and settings of the three files in the file should be correct, and there will be hints if they are not.  

4th Fourth step:Flash

1.   If it is cured into Flash, first set the jumper to JTAG mode.

The Zybo board supports these configuration options:

No alt text provided for this image

·        PS Configuration: Quad SPI flash memory

·        PS Configuration: Processor System Boot from SD Card

·        PL Configuration: USB JTAG configuration port

2. Select Xilinx > Program Flash.

3. Choose Image Fileoffset Set to 0, Flash Type FSBL File, Click Program

No alt text provided for this image

Blank check after erase with Verify after flash Optional, get lonely. in Console.

There will be a lot of useful information displayed: 

No alt text provided for this image

Power Off the board and set Jumper JP5 to QSPI mode and restart the Board.

5th step: boot from SD card

In order to boot from SD card Just copy BOOT.bin file into your SD card formatted in FAT32.

ZYBO board Boot configurations are already listed earlier in the document.

·        Set the Jumper JP5 to SD

For More Information

contact me: https://www.garudax.id/in/rafi-uzman-088a0711a/


To view or add a comment, sign in

Others also viewed

Explore content categories