例程C:\ti\TivaWare_C_Series-1.0\examples\boards\ek-lm4f232\usb_dev_msc.uvproj
是通过USB读取SD卡的例程
我想问一下我需要改变那些文件可以让这个例程读取flash(W25X)?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
把底层读写SD卡的换成读写Flash的就行了。
你需要把flash模拟成U盘(FAT32文件系统)么?
如果不需要,就不用文件系统了。
你从哪里看到diskio.c还是什么disk.c文件的?
这几个函数是在:
C:\ti\TivaWare_C_Series-2.1.0.12573\third_party\fatfs\port\mmc-dk-tm4c123g.c
我这边直接打开工程就可以编译的。工程路径在C:\ti\TivaWare_C_Series-2.1.0.12573\examples\boards\dk-tm4c123g\sd_card
你的工程是自己建的?