This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

downloadImage

Download SD card image or bitstream file

Syntax

downloadImage(dev)
downloadImage(dev,'SDCardLocation',SDCardLocation)
downloadImage(dev,'SDCardImage',SDCardImage)
downloadImage(dev,'SDCardImage',SDCardImage,'SDCardLocation',SDCardLocation)
downloadImage(dev,'FPGAImage','Default')
downloadImage(dev,'FPGAImage',FPGAImage)

Description

example

downloadImage(dev) downloads the default SD card image onto the SD card inserted into the reader of the radio hardware specified by dev.

downloadImage restarts the board with the new image.

An Ethernet connection must be present between the host and the radio hardware.

example

downloadImage(dev,'SDCardLocation',SDCardLocation) downloads the default SD card image onto the SD card inserted into the SD card reader on the host computer specified by SDCardLocation.

After the image is downloaded, insert the SD card into the reader of the radio hardware specified by dev and restart the board.

downloadImage(dev,'SDCardImage',SDCardImage) downloads a custom SD card image onto the SD card inserted into the reader of the radio hardware specified by dev.

downloadImage restarts the board with the new image.

An Ethernet connection must be present between the host and the radio hardware.

downloadImage(dev,'SDCardImage',SDCardImage,'SDCardLocation',SDCardLocation) downloads a custom SD card image onto the SD card inserted into the specified SD card reader of the host computer.

After the image is downloaded, insert the SD card into the reader of the radio hardware specified by dev and restart the board.

downloadImage(dev,'FPGAImage','Default') downloads the default bitstream onto the SD card inserted into the reader on the radio hardware specified by dev.

downloadImage restarts the board and the bitstream is downloaded to the FPGA.

An Ethernet connection must be present between the host and the radio hardware.

downloadImage(dev,'FPGAImage',FPGAImage) downloads a custom bitstream specified by FPGAImage onto the SD card inserted into the reader of the radio hardware specified by dev.

downloadImage restarts the board and the bitstream is downloaded to the radio hardware.

An Ethernet connection must be present between the host and the radio hardware.

Examples

collapse all

  1. Connect the radio hardware to the host over an Ethernet cable.

  2. Insert an SD card into the card reader on the radio hardware.

  3. Download the default SD card image onto the SD card.

    dev = sdrdev('E310');
    downloadImage(dev)
    ## Loading SD card image
    ## Rebooting board
    ## Reboot complete
  1. Insert an SD card into the SD card reader on the host computer.

  2. Download the default SD card image onto the SD card, specifying the drive name of the SD card reader.

    dev = sdrdev('E310');
    downloadImage(dev,'SDCardLocation','Z:')

Input Arguments

collapse all

Interface to radio hardware, specified as a comm.SDRDevE310 radio object. To create this object, use the sdrdev function.

Drive name of the SD card reader on the host, specified as a character vector.

Example: 'SDCardLocation','Z:'

Folder location of a custom SD card image, specified as a character vector. To generate a custom SD card image, see FPGA Targeting Workflow.

Example: 'SDCardImage','C:\mywork\hdl_prj\sdr_prj\sdcard_image'

Name of bitstream file with the extension .bit, specified as a character vector. To generate custom bitstreams, see Step 7. Generate FPGA Bitstream and Program Zynq Hardware of the hardware-software co-design workflow.

Example: 'FPGAImage','C:\mywork\hdl_bitstreams\system_wrapper.bit'

Introduced in R2016b