1.此程序模板为stm32F103c8t6所用;
2.编译环境Keil5.14,库函数版本3.5;
3.实现功能:在TF卡/SD卡根目录下创建文件MEng.txt,并把数组bmpheader写入该文件;
4.硬件说明:SPI2读写:
----------------------------------------------
| STM32F10x | MSD Pin |
----------------------------------------------
| PB.12 | ChipSelect 1 |
| PB.15 / MOSI | DataIn 2 |
| | GND 3 (0 V) |
| | VDD 4 (3.3 V) |
| PB.13/ SCLK | Clock 5 |
| | GND 6 (0 V) |
| PB.14/ MISO | DataOut 7 |
-----------------------------------------------
1