From 0c4ea15a4d32fa3a3cdc1c7c600b0fb2f2559fcb Mon Sep 17 00:00:00 2001 From: patacongo Date: Wed, 10 Nov 2010 01:11:43 +0000 Subject: [PATCH] Drop baud to 57600 git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3092 42af7a65-404d-4744-a932-0658087f49c3 --- configs/olimex-lpc1766stk/README.txt | 32 ++++++++++++++++--- configs/olimex-lpc1766stk/nsh/defconfig | 8 ++--- configs/olimex-lpc1766stk/ostest/defconfig | 8 ++--- configs/olimex-lpc1766stk/usbserial/defconfig | 8 ++--- .../olimex-lpc1766stk/usbstorage/defconfig | 8 ++--- 5 files changed, 43 insertions(+), 21 deletions(-) diff --git a/configs/olimex-lpc1766stk/README.txt b/configs/olimex-lpc1766stk/README.txt index e6be6e38b77..ca878488f60 100755 --- a/configs/olimex-lpc1766stk/README.txt +++ b/configs/olimex-lpc1766stk/README.txt @@ -97,15 +97,31 @@ Olimex LPC1766-STK development board -------------- The LPC1766-STK board has two serial connectors. One, RS232_0, connects to - the LPC1766 USART0. This is the DB-9 connector next to the power connector. - The other RS232_1, connect to the LPC1766 USART1. This is he DB-9 connector + the LPC1766 UART0. This is the DB-9 connector next to the power connector. + The other RS232_1, connect to the LPC1766 UART1. This is he DB-9 connector next to the Ethernet connector. - Simple USART1 is the more flexible USART and since the needs for a serial - console are minimal, the more minimal USART0/RS232_0 is used for the NuttX + Simple UART1 is the more flexible UART and since the needs for a serial + console are minimal, the more minimal UART0/RS232_0 is used for the NuttX system console. Of course, this can be changed by editting the NuttX configuration file as discussed below. + The serial console is configured as follows (57600 8N1): + + BAUD: 57600 + Number of Bits: 8 + Parity: None + Stop bits: 1 + + You will need to connect a monitor program (Hyperterminal, Tera Term, + minicom, whatever) to UART0/RS232_0 and configure the serial port as + shown above. + + NOTE: The ostest example works fine at 115200, but the other configurations + have problems at that rate (probably because they use the interrupt driven + serial driver). Other LPC17xx boards with the same clocking will run at + 115200. + Development Environment ^^^^^^^^^^^^^^^^^^^^^^^ @@ -448,11 +464,17 @@ Using OpenOCD and GDB with an FT2232 JTAG emulator (gdb) symbol-file nuttx (gdb) load nuttx - OpenOCD will support several special 'monitor' commands: + OpenOCD will support several special 'monitor' commands. These + GDB commands will send comments to the OpenOCD monitor. Here + are a couple that you will need to use: (gdb) monitor reset (gdb) monitor halt + The MCU must be halted prior to loading code. Reset will restart + the processor after loading code. The 'monitor' command can be + abbreviated as just 'mon'. + Olimex LPC1766-STK Configuration Options ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/configs/olimex-lpc1766stk/nsh/defconfig b/configs/olimex-lpc1766stk/nsh/defconfig index 4a31c9d3459..52dbdb84c30 100755 --- a/configs/olimex-lpc1766stk/nsh/defconfig +++ b/configs/olimex-lpc1766stk/nsh/defconfig @@ -161,10 +161,10 @@ CONFIG_UART1_RXBUFSIZE=256 CONFIG_UART2_RXBUFSIZE=256 CONFIG_UART3_RXBUFSIZE=256 -CONFIG_UART0_BAUD=115200 -CONFIG_UART2_BAUD=115200 -CONFIG_UART3_BAUD=115200 -CONFIG_UART1_BAUD=115200 +CONFIG_UART0_BAUD=57600 +CONFIG_UART2_BAUD=57600 +CONFIG_UART3_BAUD=57600 +CONFIG_UART1_BAUD=57600 CONFIG_UART0_BITS=8 CONFIG_UART1_BITS=8 diff --git a/configs/olimex-lpc1766stk/ostest/defconfig b/configs/olimex-lpc1766stk/ostest/defconfig index af55a695577..b80f5af2b5c 100755 --- a/configs/olimex-lpc1766stk/ostest/defconfig +++ b/configs/olimex-lpc1766stk/ostest/defconfig @@ -161,10 +161,10 @@ CONFIG_UART1_RXBUFSIZE=256 CONFIG_UART2_RXBUFSIZE=256 CONFIG_UART3_RXBUFSIZE=256 -CONFIG_UART0_BAUD=115200 -CONFIG_UART2_BAUD=115200 -CONFIG_UART3_BAUD=115200 -CONFIG_UART1_BAUD=115200 +CONFIG_UART0_BAUD=57600 +CONFIG_UART2_BAUD=57600 +CONFIG_UART3_BAUD=57600 +CONFIG_UART1_BAUD=57600 CONFIG_UART0_BITS=8 CONFIG_UART1_BITS=8 diff --git a/configs/olimex-lpc1766stk/usbserial/defconfig b/configs/olimex-lpc1766stk/usbserial/defconfig index 4dc9a44f92e..299368294c3 100755 --- a/configs/olimex-lpc1766stk/usbserial/defconfig +++ b/configs/olimex-lpc1766stk/usbserial/defconfig @@ -161,10 +161,10 @@ CONFIG_UART1_RXBUFSIZE=256 CONFIG_UART2_RXBUFSIZE=256 CONFIG_UART3_RXBUFSIZE=256 -CONFIG_UART0_BAUD=115200 -CONFIG_UART2_BAUD=115200 -CONFIG_UART3_BAUD=115200 -CONFIG_UART1_BAUD=115200 +CONFIG_UART0_BAUD=57600 +CONFIG_UART2_BAUD=57600 +CONFIG_UART3_BAUD=57600 +CONFIG_UART1_BAUD=57600 CONFIG_UART0_BITS=8 CONFIG_UART1_BITS=8 diff --git a/configs/olimex-lpc1766stk/usbstorage/defconfig b/configs/olimex-lpc1766stk/usbstorage/defconfig index fe8fcb71455..65fc04d1aaf 100755 --- a/configs/olimex-lpc1766stk/usbstorage/defconfig +++ b/configs/olimex-lpc1766stk/usbstorage/defconfig @@ -161,10 +161,10 @@ CONFIG_UART1_RXBUFSIZE=256 CONFIG_UART2_RXBUFSIZE=256 CONFIG_UART3_RXBUFSIZE=256 -CONFIG_UART0_BAUD=115200 -CONFIG_UART2_BAUD=115200 -CONFIG_UART3_BAUD=115200 -CONFIG_UART1_BAUD=115200 +CONFIG_UART0_BAUD=57600 +CONFIG_UART2_BAUD=57600 +CONFIG_UART3_BAUD=57600 +CONFIG_UART1_BAUD=57600 CONFIG_UART0_BITS=8 CONFIG_UART1_BITS=8