summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2013-09-22 12:22:55 -0600
committerGregory Nutt <gnutt@nuttx.org>2013-09-22 12:22:55 -0600
commit712c271d829ec46a075d45f9a55abbf3cd958ca7 (patch)
treed6bb38935447c851c45fce774e8f78b9c5d13e55
parentf1ab340eec49a032bb7adccefc7255cb2ae6b3c4 (diff)
downloadnuttx-712c271d829ec46a075d45f9a55abbf3cd958ca7.tar.gz
nuttx-712c271d829ec46a075d45f9a55abbf3cd958ca7.tar.bz2
nuttx-712c271d829ec46a075d45f9a55abbf3cd958ca7.zip
SAMA5D3x-EK AT25 Serial FLASH: Dropping SPI frequency to 10MHz gives more reliable behavior
-rw-r--r--nuttx/configs/sama5d3x-ek/README.txt12
-rw-r--r--nuttx/configs/sama5d3x-ek/demo/defconfig2
-rw-r--r--nuttx/drivers/usbdev/Kconfig6
3 files changed, 14 insertions, 6 deletions
diff --git a/nuttx/configs/sama5d3x-ek/README.txt b/nuttx/configs/sama5d3x-ek/README.txt
index aa455cda9..dd713ac9c 100644
--- a/nuttx/configs/sama5d3x-ek/README.txt
+++ b/nuttx/configs/sama5d3x-ek/README.txt
@@ -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
diff --git a/nuttx/configs/sama5d3x-ek/demo/defconfig b/nuttx/configs/sama5d3x-ek/demo/defconfig
index bc6618345..90cc043de 100644
--- a/nuttx/configs/sama5d3x-ek/demo/defconfig
+++ b/nuttx/configs/sama5d3x-ek/demo/defconfig
@@ -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
diff --git a/nuttx/drivers/usbdev/Kconfig b/nuttx/drivers/usbdev/Kconfig
index 3151d04bd..53fc10a49 100644
--- a/nuttx/drivers/usbdev/Kconfig
+++ b/nuttx/drivers/usbdev/Kconfig
@@ -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