Skip to content

Commit

Permalink
FaftFS max sector size 512 -> 4096
Browse files Browse the repository at this point in the history
  • Loading branch information
mvladic committed Aug 19, 2019
1 parent 56fbd44 commit fa6ee04
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/third_party/stm32/Inc/ffconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@
/ arbitrary physical drive and partition listed in the VolToPart[]. Also f_fdisk()
/ funciton will be available. */
#define _MIN_SS 512 /* 512, 1024, 2048 or 4096 */
#define _MAX_SS 512 /* 512, 1024, 2048 or 4096 */
#define _MAX_SS 4096 /* 512, 1024, 2048 or 4096 */
/* These options configure the range of sector size to be supported. (512, 1024,
/ 2048 or 4096) Always set both 512 for most systems, all type of memory cards and
/ harddisk. But a larger value may be required for on-board flash memory and some
Expand Down
5 changes: 3 additions & 2 deletions src/third_party/stm32/h25005.ioc
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,9 @@ ETH.IPParameters=MediaInterface,PhyAddress,AutoNegotiation
ETH.MediaInterface=ETH_MEDIA_INTERFACE_MII
ETH.PhyAddress=2
FATFS.BSP.number=1
FATFS.IPParameters=_USE_FIND,_USE_LFN,_FS_LOCK
FATFS.IPParameters=_USE_FIND,_USE_LFN,_FS_LOCK,_MAX_SS
FATFS._FS_LOCK=0
FATFS._MAX_SS=4096
FATFS._USE_FIND=1
FATFS._USE_LFN=2
FATFS0.BSP.STBoard=false
Expand Down Expand Up @@ -768,7 +769,7 @@ RCC.VCOSAIOutputFreq_Value=200000000
RTC.AsynchPrediv=124
RTC.IPParameters=AsynchPrediv,SynchPrediv
RTC.SynchPrediv=7999
SDMMC1.ClockDiv=2
SDMMC1.ClockDiv=8
SDMMC1.HardwareFlowControl=SDMMC_HARDWARE_FLOW_CONTROL_ENABLE
SDMMC1.IPParameters=HardwareFlowControl,ClockDiv
SH.COMP_DAC1_group.0=DAC_OUT1,DAC_OUT1
Expand Down

0 comments on commit fa6ee04

Please sign in to comment.