******************************************************************************* ** Copyright © 2008, Xilinx, Inc. ** This design is confidential and proprietary of Xilinx, Inc. All Rights Reserved. ******************************************************************************* ** ____ ____ ** / /\/ / ** /___/ \ / Vendor: Xilinx ** \ \ \/ Version: 1.0 ** \ \ Filename: testfatfs_readme.txt ** / / ** /___/ /\ ** \ \ / \ ** \___\/\___\ ** **Device: **Purpose: **Reference: ** ******************************************************************************* ** ** Disclaimer: LIMITED WARRANTY AND DISCLAIMER. These designs are ** provided to you "as is." Xilinx and its licensors make and you ** receive no warranties or conditions, express, implied, ** statutory or otherwise, and Xilinx specifically disclaims any ** implied warranties of merchantability, noninfringement, or ** fitness for a particular purpose. Xilinx does not warrant that ** the functions contained in these designs will meet your ** requirements, or that the operation of these designs will be ** uninterrupted or error free, or that defects in the Designs ** will be corrected. Furthermore, Xilinx does not warrant or ** make any representations regarding use or the results of the ** use of the designs in terms of correctness, accuracy, ** reliability, or otherwise. ** ** LIMITATION OF LIABILITY. In no event will Xilinx or its ** licensors be liable for any loss of data, lost profits, cost ** or procurement of substitute goods or services, or for any ** special, incidental, consequential, or indirect damages ** arising from the use or operation of the designs or ** accompanying documentation, however caused and on any theory ** of liability. This limitation will apply even if Xilinx ** has been advised of the possibility of such damage. This ** limitation shall apply notwithstanding the failure of the ** essential purpose of any limited remedies herein. ** ******************************************************************************* Application: testfatfs ----------------------- Read/Write tests to the FAT16 filesystem present on inserted CF card are performed. The xilfatfs library is used by this standalone application. CONFIG Switch Settings: 00010101 1. Connect the Host PC to the ML507 (J1 header) using a PC-IV or Platform USB JTAG cable 2. Connect the Host PC serial port to the ML507 serial port using a null modem cable and launch a terminal program on the Host (eg. TeraTerm) with the settings: 9600 baud, 8-N-1, No flow control 3. Extract the contents of testfatfs.zip onto the root directory of a CF card 5. Insert the CF card into the ML507 and power-up the board 6. Launch XPS and open the ML507 EDK project (ml507_bsb_system.xmp) 7. Launch a Shell window using XPS menu selection: Project > Launch EDK Shell 8. Download bitstream in shell window by typing: impact -batch etc/download.cmd 9. XPS menu selection: Debug > Launch XMD 10. At XMD% prompt type: cd microblaze_0/code 11. At XMD% prompt type: rst 12. At XMD% prompt type: dow testfatfs.elf 13. At XMD% prompt type: con Serial Port Output: ------------------- This program attempts to access the CF card's file system to perform file I/O operations. Please insert a CF card with the contents of the directory /sw/standalone/testfatfs/required_files/ copied onto that CF card. Warning: This program will attempt to create a file and directory on the CF card. Press any key to continue. File I/O Test Program running. Reading file : a:\test.txt This is a test file. 0123456789 abcdefghijklmnopqrstuvwxyz Total bytes read = 60 Reading file : a:\xflow.log dummy log file Total bytes read = 16 Reading file : a:\sysfat.doc Total bytes read = 74752 Failed to open a:\noexist.c: check if file present Total bytes read = 0 read done Writing file contents. # of bytes written: 38 write done executing mkdir talica.. mkdir success