**试验目的:**使用STM32F103C8T6 + SPI Flash(WSQ16)实现模拟U盘的功能
SPI Flash读写说明:
Step1 设置SPI1 用于读取SPI Flash;

Step2:设置SPI Flash 的使能信号

Step3:使能USB通信

Step4:使能USB中间件

Step5:堆栈空间大小设置

Step6:生成代码

Step7:加入SPI驱动文件到工程

Step8:改写对应的SPI Flash芯片型号和对应的容量大小

Step9:在USB文件中增加读写函数


Step10:修改USB设备的容量大小设置

Step11:下载到开发板,可以看到出现了U盘的盘符,第一次需要格式化
