The reference architecture can be tested in two ways:
To test the USB communication in the Reference Architecture case is necessary
To completely test the Reference Architecture is necessary
The procedures are the following.
Procedure SDK: opening and update SDK project only ('updated' SW on 'NOT updated' HW) | Procedure XPS+SDK: opening and update both XPS and SDK projects ('updated' SW on 'not updated' HW') |
---|---|
Copy IP Cores and drivers used in TE reference projects. | |
Update XPS project from an old version to a new one. | |
Export the HW project to SDK. | |
Open SDK project and (if needed) update the SDK project from an old version to a new one | Recreate SDK project using the new exported HW project; |
Download the bitstream to the FPGA, | |
Check the fiirmware of FX2 microcontroler; | |
run the demo project. | |
USB communication tests + DMA tests |
For old version of Xilinx EDK with older veresion of Project Reference (they do no longer exist on GitHub) the procedure is the folowing
To use the "demo" application contained in TE0xxx-Reference-Designs\reference-TE0xxx\SDK\SDK_Workspace, you should (1) copy GitHub's "TE-EDK-IP" folder (from https://github.com/Trenz-Electronic/TE-EDK-IP) to the folder that contains the folder "reference-TE0xxx":
otherwise you must copy the contents of GitHub's 'TE-EDK-IP' folder inside the already existent empty folder "TE0xxx-Reference-Designs\TE-EDK-IP".
You should not alter folder nesting because is a Xilinx Platform Studio requirements
The FX2 microcontroller on the TE0300, TE0320 or TE0630 family should contain valid firmware before proceeding.
With this application, you can test the PC ↔ USB ↔ JTAG ↔ FPGA communication using a simulated UART (XMD_UART) on JTAG/USB connection.
If you want to input some characters to the XMD UART, then open some terminal emulators,such as
Connect using the following settings:
The UART settings are:
The UART port will output something of tis kind:
Before running the demo application, open the #project_root#\xmd.ini file:
1.rst
2.dow sw/test_hw.elf
3.#dow sw/demo.elf
4.run
5.terminal -jtag_uart_server 4321
To run the demo application
uncomment line 3 (remove "#")
comment line 2 (add "#" as first character)
save xmd.ini.
type "exit" in XMD command window
restart XMD by clicking again the "Start XMD" button in the XPS toolbar.
With this application, you can test the PC ↔ FPGA communication using a provided API.
To use the demo project without the XMD UART, you need to use "RS232" instead of "debug_module" as standard in/out port. Otherwise the application running on the Microblaze processor freezes if you disconnect the XMD. To accomplish that you need to set up the Microblaze "Software Platform Settings".
The UART is then redirected to external pins, which are defined in the data/system.ucf file. The following snippet shows the case of the TE0300 series modules:
Module RS232 constraints*
Net fpga_0_RS232_RX_pin LOC=B13;
Net fpga_0_RS232_TX_pin LOC=B14;
Please refer to the table below for other module series relevant to this application note.
TE series | RS232_RX | RS232_RX | RS232_TX | RS232_TX |
---|---|---|---|---|
TE0300 | R6 | J5-29 | P6 | J5-31 |
TE0320 | V17 | J5-IO18 | W17 | J5-IO19 |
TE0630 | Y7 | J5-29 | AB7 | J5-31 |
TE0304 | It doesn't apply | J1-3 | It doesn't apply | J1-2 |
TE0323 | It doesn't apply | J4-35 | It doesn't apply | J4-37 |
host (PC) | TX | TX | RX | RX |
Sample UART to USB virtual COM port converter.
Sample UART to USB virtual COM port converter: signal detail.