Running vxworksrtos on the XUPV2P board Mechatronics Laboratory
TheDigilentXUPV2P board (XilinxUniversityProgramVirtexII-Pro)
The Digilent XUPV2P board Virtex-2 Pro XC2VP30 FPGA with 30,816 Logic Cells, 136 18- bit multipliers, 2,448Kb of block RAM, and two PowerPC Processors. DDR SDRAM DIMM that can accept up to 2Gbytes of RAM. 10/100 Ethernet port. USB2 port. Compact Flash card slot. XSGA Video port. Audio Codec. SATA, and PS/2, RS-232 ports. High and Low Speed expansion connectors with a large collection of available expansion boards.
The Digilent XUPV2P board Testing the board (Step 1) Connect the serial cable between the XUP board and the PC. If you uses an USB- Serial converser verify that the driver is already installed in the PC.
The Digilent XUPV2P board Testing the board (Step 2) Testing the board: Serial port (RS-232), Ethernet port and DDR DIM slot Connect through the Hyperterminal or another TTY program. Use the following port settings:
The Digilent XUPV2P board Testing the board (Step 3) Verify that the board configuration pins are in the positions show in the figure. Turn on the board and verify that the PROM CONFIG light (green) is selected and the DONE light (red) turns on.
The DigilentXUPV2P board Testing the board (Step 4) Connect the Ethernet cable to the board and verify that the PHY lights turns on. Blinking lights indicates that the PHY chip has already negotiate the network link and speed.
The DigilentXUPV2P board Testing the board (Step 5) In the Hyperterminal window, check that the default PROM application menu is shown. To test the Ethernet port, select the option number 2.
The DigilentXUPV2P board Testing the board (Step 6) The PROM test application will ask the assigned board IP Address. Use an IP compatible with your network, avoiding reuse the number if other board is being tested. A message will be shown to indicate that a Web Server was started on port 8080.
The DigilentXUPV2P board Testing the board (Step 7) Open a Web Browser and go to the address: http://<ip_address>:80 80/, Where <ip_address> is the IP address entered in the previous step. Additionally, check the Hyperterminalwindow output messages.
The DigilentXUPV2P board Testing the board (Step 8) Enter a x in the input edit box to stop the Web Server. A Web Server Stopped! Page will be shown. Check that the PROM test menu is shown in the Hyperterminal windows.
The DigilentXUPV2P board Testing the board (Step 9) To test the DDR DIMM, select the option number 5. A set of messages will be show to verify the DIMM functionality compliance. Check that all the messages are SUCCESS!
The XILINX Suite The Xilinx FPGA development suite allows working with the XUP FPGA board. The board needs to be configured before the vxworksoperating system could boot in him. This configuration consists of defining the board type and peripherals and to generate the BSP source files for vxworks.
Configuring the XUPV2P board (Step 1) The board manufacturer (DigilentInc.) provides a set of configuration files: http://www.digilentinc.com/data/products/x UPV2P/EDK-XUP-V2ProPack.zip In this tutorial we are renamed the unpacked folder to lib_xupv2p_edk_10_1_sp3. Put this folder in a visible location and verify that the path does not contains whitespaces.
Configuring the XUPV2P board (Step 2) Additionally, create a new folder called xup_vxworks_01 where the XUPV2P EDK project will be created.
Configuring the XUPV2P board Enter the Xilinx Platform Studio (EDK) application. Select to create a new design and go to the xup_vxworks_01 folder created in the previous step. Use the default system.xmpproject file name. (Step 3)
Configuring the XUPV2P board Select the Set Project Peripheral Repositories check box. Select the \lib folder unpacked in the previous steps (lib_xupv2p_edk_1 0_1_sp3\libin this tutorial). (Step 4)
Configuring the XUPV2P board (Step 5)
Configuring the XUPV2P board (Step 6)
Configuring the XUPV2P board (Step 7)
Configuring the XUPV2P board (Step 8)
Configuring the XUPV2P board (Step 8)
Configuring the XUPV2P board (Step 9)
Configuring the XUPV2P board Finally, we obtain a new system on chip configuration project. The project lists (almost) all the peripherals in the board and the default configurations to each. (Step 10)
Configuring the XUPV2P board Select the xps_uartlite_v1_00_a peripheral and open it. Change the UART Lite Baud rate from 19.200 to 115.000 bps. Press OK. (Step 11)
Configuring the XUPV2P board (Step 12) Build the platform by pressing the Generate Image File toolbar button:
Configuring the XUPV2P board Once the image file (system.bit) is successfully created, proceed to configure the software BSP. Select the Software- >SofwarePlatform Settings menu. (Step 13)
Configuring the XUPV2P board Select the OS: vxworks6_3 in the combo box on the OS Library Settings. This BSP version was already tested, other versions were not verified. (Step 14)
Configuring the XUPV2P board Be sure that all peripherals are selected. Select RS232_Uart_1 for both, STDOUT and STDIN devices. Double click in the Current Value column for the item connected_peripherals. (Step 15)
Configuring the XUPV2P board After configuring the Software settings, we are able to generate the XUPV2P Board Support Package: Select the Software- >Generate Libraries and BPSs option in the main menu. (Step 16)
Configuring the XUPV2P board Configure the board: Press the Download Bistream button on the toolbar. Verify the configuration messages. Check the Ethernet LEDs are turned on. (Step 17)
Creating the vxworksimage (step 1) Enter the Wind River Workbench and select New->VxWorksImage Project option. Name the project as xup_vxworks_01.
Creating the vxworksimage (step 2) A new folder called bsp_ppc405_0was created in the Xilinx project folder (see image). Rename the folder to bsp_ppc405_63 and, Copy it to the /target/configfolder of the vxworksinstallation (see image).
Creating the vxworksimage (step 3) Select the bsp_ppc405_63 in the BSP combo box. Follow the next screen shots.
Creating the vxworksimage (step 4)
Creating the vxworksimage (step 5) Press the Finish button. A new project will be created in the workspace. We now proceed to configure the vxworks 6.7 image generation options.
Creating the vxworksimage (step 6) Open the Kernel Configuration under the project tree. Locate the Hardware -> Peripherals -> Serial item Change the CONSOLE_BAUD_RATE value to 115.000.
Creating the vxworksimage (step 7) Include the WDB Serial Connection component in the tree. This allows a serial connection to the WDB engine. Press OK when asked to include the component.
Creating the vxworksimage (step 8) Configure the WDB serial connection component: Change the WDB_TTY_BAUD parameter to 115.000. Change the WDB_TTY_CHANNEL to 0 (default is 1). We have only a one serial port.
Creating the vxworksimage (step 9) Build the project and check for some errors. Ignore the warning messages. Verify that a vxworks file (without extensions) was created in the default folder.
Putting the vxworksimage in the Return to the EDK and press the Launch XMD button in the toolbar A JTAG configuration window will appear. Select the image configurations and press OK. XUPV2P (Step 1)
Putting the vxworksimage in the A XMD console is opened and the XUPV2 board configuration is shown. Verify that no error messages are shown. XUPV2P (Step 2)
Putting the vxworksimage in the Return to the Hyperterminal window. Hung up the connection. Change the baud rate from 9.600 to 115.200. Press the Connect button. XUPV2P (Step 2)
Putting the vxworksimage in the Copy the vxworks image file created in the workbechto the xup_vxworks_01edk project folder. Verify that it s available running dir vxworks. Type dow vxworks. Type run. XUPV2P (Step 3)
Putting the vxworksimage in the In the Hyperterminal window, verify the output messages. A WDB Ready message must be shown. Important:hung the Hyperterminal connection now. XUPV2P (Step 4)
Putting the vxworksimage in the Return to the Wind River Workbench. Create a new connection. Select the Wind River vxworks6.x Target Server Connection type. XUPV2P (Step 5)
Putting the vxworksimage in the Select the wdbserial Backend and the other parameters as shown in the figure. Remember the 115.000 baud rate in all configurations. XUPV2P (Step 6)
Putting the vxworksimage in the Connect to the target. Open a shell connection under the Target Task -> Host Shell option in the contextual connection menu (right mouse button). Press OK in the next window. XUPV2P (Step 7)
Putting the vxworksimage in the A new Host Shell console appears. Enter the i command to show the running processes. XUPV2P (Step 8)