
AN57322
November 4, 2009 Document No. 001-57322 Rev. ** 10
Testing with CyConsole
The functionality of the project created is verified using the
CY3686 Development board and CyConsole host
application.
1. Set the EEPROM Enable switch in the development
board to OFF and plug it into the host.
2. The development board enumerates “Cypress EZ-
USB FX2LP – EEPROM Missing”, which is seen in
the device manager.
3. Start the CyConsole host application. In the Options
menu, select EZ-USB Interface. The following
window is displayed
4. Click the Download button and navigate to the newly
created FX2_to_SRAM.hex file. Wait for the firmware
to re-enumerate and reconnect as a Cypress EZ-USB
sample device.
5. When the device has re-enumerated successfully, it is
possible to connect to the SRAM via the vendor IN
commands 0xBB and 0xBC.
Transfer data to EP2OUT endpoint. This is done in two
ways: use the bulk transfer bar to specify the endpoint to
use data value and request length or use the File Trans
button to transfer a file of known data pattern. Make sure
you select Endpoint 2 OUT in the drop down box. Click
the File Trans button and select 1024_count.hex located
in the path C:\Cypress\USB\Util\Test.
6. On the Vend Req transfer bar, the “Req” field
represents the type of request. Enter either 0xBB or
0xBC in this field, depending on whether you want to
actuate a write or read. The “Value” field specifies the
SRAM address. The “Index” field specifies the
transfer length in HEX. The length field must be the
equivalent HEX value of the transfer length that is
specified in step 7. For example, the figure below
shows how to write 1K (0x0400) bytes starting from
address 0x0000 in the SRAM in the Vend Req
transfer bar.
Click the Vend Req button to trigger the write to the
SRAM. When the request is processed, the output
window displays the vendor request value of 0xBB
7. To read 1K (0x0400) bytes starting from address
0x0000 in the SRAM, specify the following in the
Vend Req transfer bar.
After the request is processed, the output window
displays the vendor request value of 0xBC.
To transfer data to the host via EP6IN (the data read
from the SRAM) endpoint, use the bulk transfer bar to
specify the endpoint to use, data value and request
length.
After the bulk transfer is complete, the data received on
the host end is displayed in the control panel as shown.
10. Now, you can repeat the exercise for any SRAM
address from 0x0000 to 0x1FFF (8K range), and
transfer length from 0x0001 to 0x2000 (1 to 8192
bytes).
[+] Feedback
Comentarios a estos manuales