Main Content

TFTP/WFTPD Configuration Guide

Configure Trivial File Transfer Protocol (TFTP)

Start the TFTP application by running the following executable: C:\WindRiver\vxworks-7\host\x86-win32\bin\Tftpd32.exe.

Set up the TFTP folder.

  1. In the TFTP application, click Settings.

  2. In the Settings dialog box, click Browse.

  3. In the Base Directory, select the folder.

  4. In the Settings dialog box, click OK.

Configure Winsock File Transfer Protocol Daemon (WFTPD)

Configure a WFTPD on your development computer. This process assumes VxWorks® 7.0 is installed on Windows® in the C:\WindRiver folder.

Start the WFTPD application by running the following executable: C:\WindRiver\vxworks-7\host\x86-win32\bin\wftpd32.exe.

Set up VxWorks user.

  1. In the WFTPD window, select Security > Users/rights.

  2. Click New User.

  3. Set User Name to target and then click OK.

  4. Set the password to vxTarget and then click OK.

  5. In the User/Rights Security dialog box window, set Home Directory to the folder location that you selected in step 2. Click Done.

Set anonymous settings.

  1. In the WFTPD window, select Security > Users/Rights.

  2. In the User/Rights Security dialog box window, set User Name to anonymous.

  3. Set Home Directory to the folder location that you selected in step 2. Click Done.

Enable security settings.

  1. In the WFTPD window, select Security > General.

  2. Select Enable Security, Allow Anonymous, Allow Uploads, and Allow Anonymous Uploads and then click OK.

Connect hardware, update boot arguments, and boot.

  1. Insert the SD Card into your Zynq hardware.

  2. Open the COM port connected to Zynq hardware using PuTTY or a similar terminal client.

  3. When you see the U-Boot loading, hit any key to stop the booting. The u-boot prompt is displayed.

  4. Reset the boot arguments to the default settings.

    zynq-uboot> env default -f -a
    zynq-uboot> setenv modeboot sdboot
    
    zynq-uboot> saveenv
    

    The following output is displayed:

  5. Power cycle the hardware. You will see the boot go through and load the uVxWorks image.

Configure MATLAB® environment with the network settings.

After configuring the target hardware, you must update MATLAB preferences.

In the MATLAB Command window, enter the following command to update the preferences and check the connection with the Xilinx® Zynq® hardware.

>> h = zynq ( 'vxworks','192.168.88.169',...
              'target','vxTarget',...
              'C:\WindRiver\wrworkspace\shared_ftp');
>> checkConnection(h)

If the checkConnection command does not return successfully, check if the Xilinx Zynq hardware is up and all the connections are in place by following the steps in Troubleshoot Xilinx Zynq Platform and Development Computer Connection.