Explain how to use SDCard configuration in the README.txt
This commit is contained in:
parent
adb32e31a0
commit
0227de3e4d
@ -276,6 +276,35 @@ Quadrature Encoder:
|
||||
In this configuration, the QEncoder inputs will be on the TIM4 inputs of
|
||||
PB6 and PB7.
|
||||
|
||||
SDCard support:
|
||||
===============
|
||||
|
||||
Only STM32F103xx High-density devices has SDIO controller. STM32F103C8T6 is a
|
||||
Medium-density device, but we can use SDCard over SPI.
|
||||
|
||||
You can do that enabling these options:
|
||||
|
||||
CONFIG_FS_FAT=y
|
||||
|
||||
CONFIG_FS_WRITABLE=y
|
||||
|
||||
CONFIG_MMCSD=y
|
||||
CONFIG_MMCSD_NSLOTS=1
|
||||
CONFIG_MMCSD_SPI=y
|
||||
CONFIG_MMCSD_SPICLOCK=20000000
|
||||
CONFIG_MMCSD_SPIMODE=0
|
||||
|
||||
CONFIG_STM32_SPI=y
|
||||
CONFIG_STM32_SPI1=y
|
||||
|
||||
CONFIG_SPI=y
|
||||
CONFIG_SPI_CALLBACK=y
|
||||
CONFIG_SPI_EXCHANGE=y
|
||||
|
||||
And connect a SDCard/SPI board on SPI1. Connect the CS pin to PA4, SCK to
|
||||
PA5, MOSI to PA7 and MISO to PA6. Note: some chinese boards use MOSO instead
|
||||
of MISO.
|
||||
|
||||
STM32F103 Minimum - specific Configuration Options
|
||||
==================================================
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user