SAMA5D3x-EK AT25 Serial FLASH: Dropping SPI frequency to 10MHz gives more reliable behavior

This commit is contained in:
Gregory Nutt 2013-09-22 12:22:55 -06:00
parent 03c93c0e5b
commit 8f9c70da3b
2 changed files with 11 additions and 3 deletions

View File

@ -1011,7 +1011,11 @@ Configurations
CONFIG_MTD=y : Enable MTD support
CONFIG_MTD_AT25=y : Enable the AT25 driver
CONFIG_AT25_SPIMODE=0 : Use SPI mode 0
CONFIG_AT25_SPIFREQUENCY=20000000 : Use SPI frequency 20MHz
CONFIG_AT25_SPIFREQUENCY=10000000 : Use SPI frequency 10MHz
The AT25 is capable of higher SPI rates than this. I have not
experimented a lot, but at 20MHz, the behavior is not the same with
all CM modules. This lower rate gives more predictable performance.
Application Configuration -> NSH Library
CONFIG_NSH_ARCHINIT=y : NSH board-initialization
@ -1490,7 +1494,11 @@ Configurations
CONFIG_MTD=y : Enable MTD support
CONFIG_MTD_AT25=y : Enable the AT25 driver
CONFIG_AT25_SPIMODE=0 : Use SPI mode 0
CONFIG_AT25_SPIFREQUENCY=20000000 : Use SPI frequency 20MHz
CONFIG_AT25_SPIFREQUENCY=10000000 : Use SPI frequency 10MHz
The AT25 is capable of higher SPI rates than this. I have not
experimented a lot, but at 20MHz, the behavior is not the same with
all CM modules. This lower rate gives more predictable performance.
Application Configuration -> NSH Library
CONFIG_NSH_ARCHINIT=y : NSH board-initialization

View File

@ -421,7 +421,7 @@ CONFIG_MTD=y
# CONFIG_MTD_AT24XX is not set
CONFIG_MTD_AT25=y
CONFIG_AT25_SPIMODE=0
CONFIG_AT25_SPIFREQUENCY=20000000
CONFIG_AT25_SPIFREQUENCY=10000000
# CONFIG_MTD_AT45DB is not set
# CONFIG_MTD_M25P is not set
# CONFIG_MTD_SMART is not set