arch/arm/src/stm32f7/chip/stm32f72xx73xx_pinmap.h: All of the SDMMC pins were set to 50 MHz, but not the clock. This sets the clock to 50 MHz also. This combined with turning on I/O compensation makes intermittent failures go away.

This commit is contained in:
Gregory Nutt 2018-07-15 15:23:39 -06:00
parent 4c67062457
commit 2c699d7812
2 changed files with 15 additions and 3 deletions

View File

@ -576,9 +576,14 @@
#define GPIO_SAI2_SD_B_3 (GPIO_ALT|GPIO_AF10|GPIO_PORTF|GPIO_PIN11)
#define GPIO_SAI2_SD_B_4 (GPIO_ALT|GPIO_AF10|GPIO_PORTG|GPIO_PIN10)
/* SD/MMC */
/* SD/MMC
*
* Note that the below configures GPIO_SPEED_50MHz I/O, that means for using
* the SDMMC, the board's boot code must enable I/O Compensation in the
* SYSCFG_CMPCR register.
*/
#define GPIO_SDMMC1_CK (GPIO_ALT|GPIO_AF12|GPIO_PORTC|GPIO_PIN12)
#define GPIO_SDMMC1_CK (GPIO_ALT|GPIO_AF12|GPIO_SPEED_50MHz|GPIO_PORTC|GPIO_PIN12)
#define GPIO_SDMMC1_CMD (GPIO_ALT|GPIO_AF12|GPIO_PULLUP|GPIO_SPEED_50MHz|GPIO_PUSHPULL|GPIO_PORTD|GPIO_PIN2)
#define GPIO_SDMMC1_D0 (GPIO_ALT|GPIO_AF12|GPIO_PULLUP|GPIO_SPEED_50MHz|GPIO_PUSHPULL|GPIO_PORTC|GPIO_PIN8)
#define GPIO_SDMMC1_D1 (GPIO_ALT|GPIO_AF12|GPIO_PULLUP|GPIO_SPEED_50MHz|GPIO_PUSHPULL|GPIO_PORTC|GPIO_PIN9)

View File

@ -3935,7 +3935,7 @@ Configurations
2014-8-29: System call interface verified.
2014-9-16: Reverified after fixing changes for the knsh configuration
that broke this on. All seems to be well now.
that broke this one. All seems to be well now.
ipv6:
----
@ -4275,6 +4275,13 @@ Configurations
table, but I am currently stuck in the 'make import' step. This
currently dies with a mysterious error '/bin/sh: -w: invalid option'
That mysterious error is comming from the COMPILE macro defined in
apps/import/Make.defs. There is something lethal about CFLAGS.
Although I can print all of the components of CFLAGS, the use of
CFLAGS causes the error. In fact, this will generate the same error;
$(warning CFLAGS=$(CFLAGS))
nsh:
This configuration directory provide the NuttShell (NSH). This is a