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 f22e60c392
commit cf5cf0da72
3 changed files with 14 additions and 6 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

View File

@ -131,7 +131,7 @@ config COMPOSITE_VENDORID
config COMPOSITE_VENDORSTR
string "Composite vendor ID"
default "Nuttx"
default "NuttX"
---help---
The vendor ID code/string
@ -153,7 +153,7 @@ config COMPOSITE_SERIALSTR
config COMPOSITE_CONFIGSTR
string "Configuration string"
default "Nuttx COMPOSITE config"
default "NuttX COMPOSITE config"
---help---
Configuration string
@ -532,7 +532,7 @@ config USBMSC_VENDORID
config USBMSC_VENDORSTR
string "Mass storage vendor string"
default "Nuttx"
default "NuttX"
---help---
The vendor ID code/string