summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2013-05-27 14:10:34 -0600
committerGregory Nutt <gnutt@nuttx.org>2013-05-27 14:10:34 -0600
commita74f84635f28aaa1dd748c966b9a8c9e29b3975f (patch)
tree2e3104cad19e334138c90693534ef88cf3945062
parent87d335b92ab7580fdd0aef729646c8c2131b3ec8 (diff)
downloadnuttx-a74f84635f28aaa1dd748c966b9a8c9e29b3975f.tar.gz
nuttx-a74f84635f28aaa1dd748c966b9a8c9e29b3975f.tar.bz2
nuttx-a74f84635f28aaa1dd748c966b9a8c9e29b3975f.zip
Verified the sure-pic32mx/usbnsh configuration
-rw-r--r--nuttx/configs/sure-pic32mx/README.txt64
-rw-r--r--nuttx/configs/sure-pic32mx/nsh/defconfig4
-rw-r--r--nuttx/configs/sure-pic32mx/usbnsh/defconfig10
-rw-r--r--nuttx/drivers/lcd/README.txt13
4 files changed, 80 insertions, 11 deletions
diff --git a/nuttx/configs/sure-pic32mx/README.txt b/nuttx/configs/sure-pic32mx/README.txt
index 02aa44ec9..599acb720 100644
--- a/nuttx/configs/sure-pic32mx/README.txt
+++ b/nuttx/configs/sure-pic32mx/README.txt
@@ -837,12 +837,13 @@ Where <subdir> is one of the following:
CONFIG_USBDEV=y : NuttX USB device support is enabled
CONFIG_PIC32MX_USBDEV=y : The PIC32MX USB device driver is built
+ CONFIG_DEV_CONSOLE=n : /dev/console does not exist on power up
CONFIG_UART1_SERIAL_CONSOLE=n : There is no serial console
CONFIG_UART2_SERIAL_CONSOLE=n :
CONFIG_CDCACM=y : The CDC/ACM serial device class is enabled
CONFIG_CDCACM_CONSOLE=y : The CDC/ACM serial device is the console
- Using the Prolifics PL2303 Emulation
+ 3. Using the Prolifics PL2303 Emulation
You could also use the non-standard PL2303 serial device instead of
the standard CDC/ACM serial device by changing:
@@ -856,3 +857,64 @@ Where <subdir> is one of the following:
to use the PL2303 driver with a Windows host because it should
automatically install the PL2303 driver (you might have to go through
some effort to get Windows to recognize the CDC/ACM device).
+
+ 4. Since this configuration is current set for the "DB_DP11215 PIC32
+ Storage Demo Board," USART2 is available and is configured to used as
+ the SYSLOG device. That means that all debug output will be directed
+ out USART2. Debug output is not enabled by default, however, so these
+ settings do nothing until you enable debug ouput.
+
+ Device Drivers -> System Logging Device Options:
+ CONFIG_SYSLOG=y : Configure SYSLOG output
+ CONFIG_SYSLOG_CHAR=y
+ CONFIG_SYSLOG_DEVPATH="/dev/ttyS0"
+
+ System Type -> PIC32MX Peripheral Support:
+ CONFIG_PIC32MX_UART2=y : Enable UART2
+
+ Device Drivers -> Serial Driver Support:
+ CONFIG_UART2_2STOP=0 : UART2 configuration
+ CONFIG_UART2_BAUD=115200
+ CONFIG_UART2_BITS=8
+ CONFIG_UART2_PARITY=0
+ CONFIG_UART2_RXBUFSIZE=64
+ CONFIG_UART2_TXBUFSIZE=64
+
+ 5. If you want to try this configuration on the DB-DP11212 PIC32 General
+ Purpose Demo Board", here are the changes that you should make:
+
+ Board Configuration:
+ CONFIG_ARCH_DBDP11215=n : Disable the DB-DP11215
+ CONFIG_ARCH_DBDP11212=y : Enable the DB-DP11212
+
+ System Type -> PIC32MX Peripheral Support:
+ CONFIG_PIC32MX_UART2=n : Disable UART2
+
+ Device Drivers -> System Logging Device Options:
+ CONFIG_SYSLOG=n : Disable SYSLOG output
+
+ 6. Enabling USB monitor SYSLOG output. If tracing is enabled, the USB
+ device will save encoded trace output in in-memory buffer; if the
+ USB monitor is enabled, that trace buffer will be periodically
+ emptied and dumped to the system loggin device (UART2 in this
+ configuraion):
+
+
+ Device Drivers -> "USB Device Driver Support:
+ CONFIG_USBDEV_TRACE=y : Enable USB trace feature
+ CONFIG_USBDEV_TRACE_NRECORDS=128 : Buffer 128 records in memory
+
+ Application Configuration -> NSH LIbrary:
+ CONFIG_NSH_USBDEV_TRACE=n : No builtin tracing from NSH
+ CONFIG_NSH_ARCHINIT=y : Automatically start the USB monitor
+
+ Application Configuration -> System NSH Add-Ons:
+ CONFIG_SYSTEM_USBMONITOR=y : Enable the USB monitor daemon
+ CONFIG_SYSTEM_USBMONITOR_STACKSIZE=2048 : USB monitor daemon stack size
+ CONFIG_SYSTEM_USBMONITOR_PRIORITY=50 : USB monitor daemon priority
+ CONFIG_SYSTEM_USBMONITOR_INTERVAL=2 : Dump trace data every 2 seconds
+ CONFIG_SYSTEM_USBMONITOR_TRACEINIT=y : Enable TRACE output
+ CONFIG_SYSTEM_USBMONITOR_TRACECLASS=y
+ CONFIG_SYSTEM_USBMONITOR_TRACETRANSFERS=y
+ CONFIG_SYSTEM_USBMONITOR_TRACECONTROLLER=y
+ CONFIG_SYSTEM_USBMONITOR_TRACEINTERRUPTS=y
diff --git a/nuttx/configs/sure-pic32mx/nsh/defconfig b/nuttx/configs/sure-pic32mx/nsh/defconfig
index 8167b8212..d1600ab4e 100644
--- a/nuttx/configs/sure-pic32mx/nsh/defconfig
+++ b/nuttx/configs/sure-pic32mx/nsh/defconfig
@@ -393,8 +393,8 @@ CONFIG_UART2_SERIAL_CONSOLE=y
#
# UART2 Configuration
#
-CONFIG_UART2_RXBUFSIZE=256
-CONFIG_UART2_TXBUFSIZE=256
+CONFIG_UART2_RXBUFSIZE=64
+CONFIG_UART2_TXBUFSIZE=64
CONFIG_UART2_BAUD=115200
CONFIG_UART2_BITS=8
CONFIG_UART2_PARITY=0
diff --git a/nuttx/configs/sure-pic32mx/usbnsh/defconfig b/nuttx/configs/sure-pic32mx/usbnsh/defconfig
index 8e947e9db..fd308d6bc 100644
--- a/nuttx/configs/sure-pic32mx/usbnsh/defconfig
+++ b/nuttx/configs/sure-pic32mx/usbnsh/defconfig
@@ -307,7 +307,7 @@ CONFIG_TASK_NAME_SIZE=0
CONFIG_START_YEAR=2012
CONFIG_START_MONTH=3
CONFIG_START_DAY=6
-CONFIG_DEV_CONSOLE=y
+# CONFIG_DEV_CONSOLE is not set
# CONFIG_MUTEX_TYPES is not set
# CONFIG_PRIORITY_INHERITANCE is not set
# CONFIG_FDCLONE_DISABLE is not set
@@ -395,8 +395,8 @@ CONFIG_NO_SERIAL_CONSOLE=y
#
# UART2 Configuration
#
-CONFIG_UART2_RXBUFSIZE=256
-CONFIG_UART2_TXBUFSIZE=256
+CONFIG_UART2_RXBUFSIZE=64
+CONFIG_UART2_TXBUFSIZE=64
CONFIG_UART2_BAUD=115200
CONFIG_UART2_BITS=8
CONFIG_UART2_PARITY=0
@@ -476,7 +476,9 @@ CONFIG_CDCACM_PRODUCTSTR="CDC/ACM Serial"
# System Logging
#
# CONFIG_SYSLOG_ENABLE is not set
-# CONFIG_SYSLOG is not set
+CONFIG_SYSLOG=y
+CONFIG_SYSLOG_CHAR=y
+CONFIG_SYSLOG_DEVPATH="/dev/ttyS0"
#
# Graphics Support
diff --git a/nuttx/drivers/lcd/README.txt b/nuttx/drivers/lcd/README.txt
index d91abcd37..2092b53d1 100644
--- a/nuttx/drivers/lcd/README.txt
+++ b/nuttx/drivers/lcd/README.txt
@@ -199,10 +199,15 @@ that makes then less re-usable:
configs/skp16c26/src/up_lcd.c. Untested alphanumeric LCD driver.
configs/pcblogic-pic32mx/src/up_lcd1602.c. LCD1602 is based on the
- Hitachi HD44780U LCD controller (untested). See also
- include/nuttx/lcd/hd4478ou.h.
- configs/sure-pic32mx/src/up_lcd1602.c. Another LCD1602-like segment
- LCD.
+ Hitachi HD44780U LCD controller. This version of the driver
+ uses the PIC32MX PMP interface to control the LCD. As of this
+ writing, has *NOT* been verfied (mostly because I get bewildered
+ by all of the jumper wires). See include/nuttx/lcd/hd4478ou.h
+ for more information about LCD1602.
+ configs/sure-pic32mx/src/up_lcd1602.c. Another LCD1602 segment
+ LCD. This is a bit-bang version of the driver and appears to
+ be fully functional. This version of the LCD1602 driver has
+ been verified and is working fine.
configs/stm32ldiscovery/src/stm32_lcd.c. 1x6 segment LCD with bars
using the segment LCD controller built-into the STM32L15X.