Enclustra Mars ZX2 User Manual page 18

Soc module
Hide thumbs Also See for Mars ZX2:
Table of Contents

Advertisement

Code snippet 1: Modification to FSBL
/
*
Read bootmode r e g i s t e r
*
/
*
BootModeRegister = X i l _ I n 3 2 ( BOOT_MODE_REG ) ;
BootModeRegister &= BOOT_MODES_MASK ;
/ / add t h i s l i n e t o t r i c k boot mode t o JTAG
BootModeRegister = JTAG_MODE ;
After the modified FSBL is ready, proceed with actually programming the QSPI Flash.
Step
Description
1
Program the boot image from Xilinx Vitis 2022.1 (see Figure 6):
1. Right click on the system project of the application in the Project Explorer
2. Select Program Flash
Vitis will fill out the fields for the selected application automatically.
3. Replace the automatically found FSBL with the FSBL.elf from the generated FSBL project
4. For Flash Type select qspi-x4-single
5. Hit Program and wait for completion
The settings in the pictures are for reference only. Note that the configuration file must be
selected according to your application.
2*
Optional - if Vitis returns errors during flash programming or if the system does not boot
properly, another option is to use Vivado to program the QSPI flash.
1. Flow
2. Click on Open target
3. Right click on the corresponding SoC device in the left bar
Device (see Figure 7)
(a) For Select Configuration Memory Part choose the memory part according to the
Mars ZX2 SoC Module User Manual [3], part type single.
This is in most cases s25fl512s-1.8v-qspi-x4-single.
(b) Hit OK
4. In Program Configuration Memory Device window (see Figure 8):
(a) For Configuration file select the boot image generated as described in Section 4.0.1
(b) For Zynq FSBL select the FSBL binary generated with the Platform as described in
Section 3.4
(c) In Program Operations section:
The settings in the pictures are for reference only. Note that the memory part and the config-
uration file must be selected according to your application.
Continued on next page...
D-0000-489-003
Open Hardware Manager
Auto Connect
For Address Range select Entire Configuration Memory Device
Enable checkboxes Erase, Program and Verify
Hit OK and wait for completion
18 / 25
Add Configuration Memory
Version 2022.1_v2.0.1, 15.10.2022

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Mars ZX2 and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Ma-zx2

Table of Contents