Create a BOOT.bin, Program an SD Card and Boot a ZC706 using Windows 7

xilinx_logo_1

This post shows you how to create a BOOT.bin with a Hello World bare-metal application and a bitstream created in [Run Hello World on a ZC702], how to program the BOOT.bin onto the SD Card using Windows (copy it to the SD card) and how to boot the ZC702 from the SD card and see output from the serial port.

Before you Start

A. Generate bitstreams, Hello World Binaries and Test Everything

This post assumes you’ve generated the bitstreams, Hello World binaries and have tested everything as listed in [Run Hello World on a ZC702], but on the on the ZC706. All of the instructions are the same except 2 things:

1. You select the ZC706 board instead of the ZC702

2. You need to connect the UART-to-USB and JTAG-to-USB cables to:

board_cable_ports_2

B. Get a License

The ZC706 has a XC7Z045-2FFG900 C SoC. This chip is not support in WebPACK ( see [link]) like the chip on the ZC702. You can get a 30-day license at [link].

Versions Used

  • 2018.2 Vivado and SDK

  • Windows 7 SP1

  • Rufus 3.5 @ [link]

Create Boot Image

The following picks up after the last step listed in [Run Hello World on a ZC702]

Step 1: Create the first stage boot loader (FSBL) that will load the bitstream and the helloworld.elf.

A. Click File

B. Click New

C. Click Application Project

click_application_project_3

D. Type fsbl

E. Ensure the rest of the fields match the picture and click Next >

name_project_fsbl_4

F. Click Zynq FSBL

G. Click Finish

click_zynq_fsbl_5

Step 2: Create the BOOT.bin

A. Select fsbl

select_fsbl_6

B. Click Xilinx

C. Click Create Boot Image

click_create_boot_image_7

D. Ensure that the picture below matches (your paths may be different) and click Add

ensure_picture_matches_8

E. Browse to helloworld.elf in C:\zc706vivado\helloworld\helloworld.sdk\helloworld\Debug or similar and select it

F. Click Open

browse_to_helloworld_elf_9

G. Ensure that this image matches yours (again paths may be a little different) and click OK

ensure_image_matches_10

H. Click Create Image

click_create_image_11

I. You should see Build Finished (took …ms)

J. …and Bootgen command execution is done.

build_finished_12

Prepare the SD Card and Copy the BOOT.bin

Step 1: Insert into a SD card reader/writer on your PC the SD card that came with the ZC706 (see [link]) or find an 8 GB SanDisk class 4 card:

sd_card_13

Step 2: Format the SD card

A. Right-click the SD card

B. Select Format…

format_sd_card_14

C. Click Start

start_formatting_15

D. Click OK

confirm_format_16

E. Click OK again

format_complete_17

F. Click Close

close_format_18

Step 3: Copy the BOOT.bin to the SD card

A. Browse to the BOOT.bin

B. Right-click on BOOT.bin

C. Select Copy

D. Click the SD card

E. Right-click in the empty area of the SD explorer

F. Click Paste

past_boot_to_sd_card_20

G. You should see:

boot_bin_in_sd_card_21

Step 4: Eject the SD card

A. Right-click on the SD card

B. Click Eject

eject_sd_card_22

Step 5: Make sure the ZC706 is off and plug the SD card into the ZC706

A. Off:

zc706_off_23

Step 6: Set the board to SD boot mode

set_board_to_boot_24

Step 7: Ensure the UART connection is connected to the computer

A. Connect the Mini-B port of Mini-B to Type-A USB cable to the port marked “UART”

connect_mini_b_to_usb_25

B. Connect the Type-A port of Mini-B to Type-A USB cable to the port marked “UART”

connect_usb_to_computer_26

Step 8: Set up the terminal on the SDK

This was covered in [Run Hello World on a ZC702]

Step 9: Power on the ZC706

A. Move the switch from:

zc706_off_23

B. To:

turn_board_on_27

You should see Hello World on the console:

hello_world_console_28

…and the DONE LED green which indicates that the FPGA was successfully programmed by the FSBL

done_led_green_29

References

  • Zynq-7000 All Programmable SoC ZC706 Evaluation Kit Getting Started Guide UG961 (v6.0.1) January 28, 2015 @ [link]

  • ZC706 Evaluation Board for the Zynq-7000 XC7Z045 SoC User Guide UG954 (v1.7) July 1, 2018 @ [link]

  • Xilinx logo found via https://twitter.com/xilinxinc at [link]