SD-USB-test

所属分类:单片机开发
开发工具:C/C++
文件大小:5914KB
下载次数:36
上传日期:2013-01-06 12:00:23
上 传 者watrt
说明:  STM32 读卡器实现代码.SPI把SD内容读出.使用USB供电脑操作.使用固件库.
(STM32 card reader realize code. SPI the SD content reading. Use the USB for computer operation. Use the firmware library.)

文件列表:
SD-USB test\EWARMv5\Backup of MassStorageSimpleBuffer.ewd (76845, 2010-07-05)
SD-USB test\EWARMv5\Backup of MassStorageSimpleBuffer.ewp (99336, 2010-07-05)
SD-USB test\EWARMv5\MassStorageSimpleBuffer.dep (43919, 2010-10-18)
SD-USB test\EWARMv5\MassStorageSimpleBuffer.ewd (71028, 2010-10-09)
SD-USB test\EWARMv5\MassStorageSimpleBuffer.ewp (94249, 2010-10-10)
SD-USB test\EWARMv5\MassStorageSimpleBuffer.eww (177, 2010-07-05)
SD-USB test\EWARMv5\MassStorageSimpleBuffer.icf (1341, 2010-10-10)
SD-USB test\EWARMv5\settings\MassStorageSimpleBuffer.cspy.bat (2479, 2010-10-18)
SD-USB test\EWARMv5\settings\MassStorageSimpleBuffer.dbgdt (5574, 2010-10-18)
SD-USB test\EWARMv5\settings\MassStorageSimpleBuffer.dni (704, 2010-10-18)
SD-USB test\EWARMv5\settings\MassStorageSimpleBuffer.wsdt (4817, 2010-10-18)
SD-USB test\EWARMv5\settings\MassStorageSimpleBuffer_STM3210E-EVAL.jlink (205, 2010-10-09)
SD-USB test\EWARMv5\STM3210E-EVAL\Exe\MassStorageSimpleBuffer.out (521828, 2010-10-10)
SD-USB test\EWARMv5\STM3210E-EVAL\Exe\SD读卡器.hex (75897, 2010-10-10)
SD-USB test\EWARMv5\STM3210E-EVAL\Obj\core_cm3.o (20772, 2010-10-10)
SD-USB test\EWARMv5\STM3210E-EVAL\Obj\fsmc_nand.o (29084, 2010-10-10)
SD-USB test\EWARMv5\STM3210E-EVAL\Obj\hw_config.o (39428, 2010-10-10)
SD-USB test\EWARMv5\STM3210E-EVAL\Obj\main.o (6944, 2010-10-10)
SD-USB test\EWARMv5\STM3210E-EVAL\Obj\MassStorageSimpleBuffer.pbd (4711, 2010-10-18)
SD-USB test\EWARMv5\STM3210E-EVAL\Obj\mass_mal.o (15656, 2010-10-10)
SD-USB test\EWARMv5\STM3210E-EVAL\Obj\memory.o (14508, 2010-10-10)
SD-USB test\EWARMv5\STM3210E-EVAL\Obj\misc.o (13580, 2010-10-10)
SD-USB test\EWARMv5\STM3210E-EVAL\Obj\nand_if.o (3992, 2010-10-10)
SD-USB test\EWARMv5\STM3210E-EVAL\Obj\otgd_fs_cal.o (71800, 2010-10-10)
SD-USB test\EWARMv5\STM3210E-EVAL\Obj\otgd_fs_dev.o (38112, 2010-10-10)
SD-USB test\EWARMv5\STM3210E-EVAL\Obj\otgd_fs_int.o (47580, 2010-10-10)
SD-USB test\EWARMv5\STM3210E-EVAL\Obj\otgd_fs_pcd.o (32568, 2010-10-10)
SD-USB test\EWARMv5\STM3210E-EVAL\Obj\Printf.o (9504, 2010-10-10)
SD-USB test\EWARMv5\STM3210E-EVAL\Obj\scsi_data.o (8952, 2010-10-10)
SD-USB test\EWARMv5\STM3210E-EVAL\Obj\startup_stm32f10x_cl.o (45452, 2010-10-10)
SD-USB test\EWARMv5\STM3210E-EVAL\Obj\startup_stm32f10x_hd.o (44812, 2010-10-09)
SD-USB test\EWARMv5\STM3210E-EVAL\Obj\stm32f10x_dma.o (23648, 2010-10-10)
SD-USB test\EWARMv5\STM3210E-EVAL\Obj\stm32f10x_exti.o (18444, 2010-10-10)
SD-USB test\EWARMv5\STM3210E-EVAL\Obj\stm32f10x_flash.o (57636, 2010-10-10)
SD-USB test\EWARMv5\STM3210E-EVAL\Obj\stm32f10x_fsmc.o (42276, 2010-10-10)
SD-USB test\EWARMv5\STM3210E-EVAL\Obj\stm32f10x_gpio.o (38020, 2010-10-10)
SD-USB test\EWARMv5\STM3210E-EVAL\Obj\stm32f10x_it.o (19004, 2010-10-10)
SD-USB test\EWARMv5\STM3210E-EVAL\Obj\stm32f10x_rcc.o (75868, 2010-10-10)
SD-USB test\EWARMv5\STM3210E-EVAL\Obj\stm32f10x_sdio.o (52952, 2010-10-10)
SD-USB test\EWARMv5\STM3210E-EVAL\Obj\stm32f10x_spi.o (46164, 2010-10-10)
... ...

/******************** (C) COPYRIGHT 2010 STMicroelectronics ******************** * File Name : readme.txt * Author : MCD Application Team * Version : V3.2.1 * Date : 07/05/2010 * Description : Description of the USB Mass_Storage Demo. ******************************************************************************** * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. * AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, * INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE * CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING * INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS. *******************************************************************************/ Example description =================== The Mass Storage Demo gives a typical example of how to use the STM32F10xxx USB-FS-Device peripheral to communicate with the PC host using the bulk transfer. This demo supports the BOT (bulk only transfer) protocol and all needed SCSI (small computer system interface) commands, and is compatible with both Windows XP (SP1/SP2) and Windows 2000 (SP4). More details about this Demo implementation is given in the User manual "UM0424 STM32F10xxx USB development kit", available for download from the ST microcontrollers website: www.st.com/stm32 Directory contents ================== + \inc: contains the Demo firmware header files + \EWARMv5: contains pre-configured projects for EWARM5 toolchain + \RIDE: contains pre-configured projects for RIDE toolchain + \MDK-ARM: contains pre-configured projects for MDK-ARM toolchain + \HiTOP: contains pre-configured projects for HiTOP toolchain + \TrueSTUDIO: contains pre-configured projects for TrueSTUDIO toolchain + \src: contains the Demo firmware source files Hardware environment ==================== This example runs on STMicroelectronics STM3210B-EVAL, STM3210C-EVAL and STM3210E-EVAL evaluation boards and can be easily tailored to any other hardware. To select the STMicroelectronics evaluation board used to run the example, uncomment the corresponding line in platform_config.h file. - STM3210B-EVAL Set-up - Jumper JP1 (USB disconnect) should be connected in position 2-3. - STM3210E-EVAL Set-up - Jumper JP14 (USB disconnect) should be connected in position 2-3. - Jumper JP17 should be connected. - Jumper JP20 should be not connected. - STM3210C-EVAL Set-up - None. How to use it ============= + MDK-ARM - Open the MassStorageSimpleBuffer.uvproj project - In the build toolbar select the project config: - STM3210B-EVAL: to configure the project for STM32 Medium-density devices - STM3210C-EVAL: to configure the project for STM32 Connectivity-Line devices - STM3210E-EVAL: to configure the project for STM32 High-density devices - STM3210E-EVAL_XL: to configure the project for STM32 XL-density devices - Rebuild all files: Project->Rebuild all target files - Load project image: Debug->Start/Stop Debug Session - Run program: Debug->Run (F5) + EWARM5 - Open the MassStorageSimpleBuffer.eww workspace. - In the workspace toolbar select the project config: - STM3210B-EVAL: to configure the project for STM32 Medium-density devices - STM3210C-EVAL: to configure the project for STM32 Connectivity-Line devices - STM3210E-EVAL: to configure the project for STM32 High-density devices - STM3210E-EVAL_XL: to configure the project for STM32 XL-density devices - Rebuild all files: Project->Rebuild all - Load project image: Project->Debug - Run program: Debug->Go(F5) + RIDE - Open the MassStorageSimpleBuffer.rprj project. - In the configuration toolbar(Project->properties) select the project config: - STM3210B-EVAL: to configure the project for STM32 Medium-density devices - STM3210C-EVAL: to configure the project for STM32 Connectivity-Line devices - STM3210E-EVAL: to configure the project for STM32 High-density devices - STM3210E-EVAL_XL: to configure the project for STM32 XL-density devices - Rebuild all files: Project->build project - Load project image: Debug->start(ctrl+D) - Run program: Debug->Run(ctrl+F9) + HiTOP - Open the HiTOP toolchain, a "using projects in HiTOP" window appears. - Select open an existing project. - Browse to open the MassStorageSimpleBuffer.htp: - under STM32F10B_EVAL directory: to select the project for STM32 Medium-density devices. - under STM32F10C_EVAL directory: to select the project for STM32 Connectivity-Line devices. - under STM32F10E_EVAL directory: to select the project for STM32 High-density devices - under STM32F10E_EVAL_XL directory: to select the project for STM32 XL-density devices - "Download application" window is displayed, click "cancel". - Rebuild all files: Project->Rebuild all - Click on ok in the "download project" window. - Run program: Debug->Go(F5). + TrueSTUDIO - Open the TrueSTUDIO toolchain. - Click on File->Switch Workspace->Other and browse to TrueSTUDIO workspace directory. - Click on File->Import, select General->'Existing Projects into Workspace' and then click "Next". - Browse to the TrueSTUDIO workspace directory and select the project: - STM3210B-EVAL: to load the project for STM32 Medium-density devices - STM3210C-EVAL: to load the project for STM32 Connectivity line devices - STM3210E-EVAL: to load the project for STM32 High-density devices - STM3210E_EVAL_XL: to load the project for STM32 XL-density devices - Rebuild all project files: Select the project in the "Project explorer" window then click on Project->build project menu. - Run program: Select the project in the "Project explorer" window then click Run->Debug (F11) NOTE: - Low-density devices are STM32F101xx, STM32F102xx and STM32F103xx microcontrollers where the Flash memory density ranges between 16 and 32 Kbytes. - Medium-density devices are STM32F101xx, STM32F102xx and STM32F103xx microcontrollers where the Flash memory density ranges between *** and 128 Kbytes. - High-density devices are STM32F101xx and STM32F103xx microcontrollers where the Flash memory density ranges between 256 and 512 Kbytes. - XL-density devices are STM32F101xx and STM32F103xx microcontrollers where the Flash memory density ranges between 512 and 1024 Kbytes. - Connectivity line devices are STM32F105xx and STM32F107xx microcontrollers. ******************* (C) COPYRIGHT 2010 STMicroelectronics *****END OF FILE******

近期下载者

相关文件


收藏者