echo design_1_wrapper.bit.bin > /sys/class/fpga_manager/fpga0/firmware
{fpga_manager.PNG}
Note: Check how INIT_DONE led goes from red to green on the ZCU102 when bitstream is loaded
Standalone:
SDK 2016.4
File -> New -> Application Project:
Hardware Platform: ZynqMP_ZCU102_hw_platform(pre-defined)
Processor: psu_cortexa53_0
{new_app.png}
Next, and select Empty Application and Finish.
Rightcreate a new empty application.
{app_project.PNG} {app_empty.PNG}
Right click on the fpga_mananger_bsp, andBSP to select Board Support Package Settings.
EnableSettings, and enable the xilfpga driver, and OK to continue.driver.
{bsp_opts.png}
User will need to provide additional info, like the offset, and the size.
Here, I have setConfigure the offset to 0x100000, and the size of the configuration file (i.e. 0x100000 offset).
Note: Size refers to 26510780.
Note: the size is the bin size in bytes:
{file_size.png} bytes
{file_size_mss.png}
Right click onCreate the src folder in the newly created app, and select New -> Source File:
{file_src.png}
Create the File,File called xfpga_load_bitstream_example.c contents from here:the example file:
<SDK Install>\data\embeddedsw\lib\sw_services\xilfpga_v1_0\examples\xfpga_load_bitstream_example.cInstall>\data\embeddedsw\lib\sw_services\xilfpga_v1_1\examples\xfpga_load_bitstream_example.c
To test the baremetal driver, user can use the XSDB, or they can create a boot image similar to the one used to test the linux driver.
To use the XSDB, user can use the TCL script below: