diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2013-07-12 16:01:37 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2013-07-12 16:01:37 -0600 |
commit | 97a9ac8e49b06572bf929529366d7000e6dfa0ee (patch) | |
tree | 5e16267087f820c59fcd552b05c1205c553ca4ef /nuttx/configs/olimex-lpc1766stk/README.txt | |
parent | 0f587cfa8c982f90b28780136c6e6436b666c92d (diff) | |
download | px4-nuttx-97a9ac8e49b06572bf929529366d7000e6dfa0ee.tar.gz px4-nuttx-97a9ac8e49b06572bf929529366d7000e6dfa0ee.tar.bz2 px4-nuttx-97a9ac8e49b06572bf929529366d7000e6dfa0ee.zip |
Build/test framework for the Zmodem sz and rz commands which are on their way
Diffstat (limited to 'nuttx/configs/olimex-lpc1766stk/README.txt')
-rw-r--r-- | nuttx/configs/olimex-lpc1766stk/README.txt | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/nuttx/configs/olimex-lpc1766stk/README.txt b/nuttx/configs/olimex-lpc1766stk/README.txt index b12f0f50c..39c7a25d6 100644 --- a/nuttx/configs/olimex-lpc1766stk/README.txt +++ b/nuttx/configs/olimex-lpc1766stk/README.txt @@ -14,6 +14,7 @@ Contents NuttX OABI "buildroot" Toolchain NXFLAT Toolchain LEDs + Serial Console Using OpenOCD and GDB with an FT2232 JTAG emulator Olimex LPC1766-STK Configuration Options USB Host Configuration @@ -449,6 +450,23 @@ LEDs processing. That, of course, makes sense if the system is truly idle and only processing timer interrupts. +Serial Console +^^^^^^^^^^^^^^ + + By default, all of these configurations use UART0 for the NuttX serial + console. UART0 corresponds to the DB-9 connector labelled "RS232_0". This + is a female connector and will require a normal male-to-female RS232 cable + to connect to a PC. + + An alternate is UART1 which connects to the other DB-9 connector labeled + "RS232_1". UART1 is not enabled by default unless specifically noted + otherwise in the configuration description. A normal serial cable must be + used with the port as well. + + By default serial console is configured for 57600 baud, 8-bit, 1 stop bit, + and no parity. Higher rates will probably require minor modification of + the UART initialization logic to use the fractional dividers. + Using OpenOCD and GDB with an FT2232 JTAG emulator ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1043,3 +1061,51 @@ Where <subdir> is one of the following: class driver at apps/examples/usbstorage. See apps/examples/README.txt for more information. + zmodem: + This is an alternative NSH configuration that was used to test Zmodem + file transfers. It is similar to the standard NSH configuration but has + the following differences: + + 1. UART0 is still the NuttX serial console as with most of the other + configurations here. However, UART1 is also enabled for performing + the Zmodem transfers. Zmodem transfers can be performed on the + console device, however, this configuration permits debug output on + the serial console which the transfer is in progress without + interfering with the file transfer. + + CONFIG_LPC17XX_UART1=y + CONFIG_UART1_ISUART=y + CONFIG_UART1_RXBUFSIZE=256 + CONFIG_UART1_TXBUFSIZE=256 + CONFIG_UART1_BAUD=115200 + CONFIG_UART1_BITS=8 + CONFIG_UART1_PARITY=0 + CONFIG_UART1_2STOP=0 + + 2. Support is included for the NuttX sz and rz commands. + + This program has been verified against the rzsz programs running on a + Linux PC. To send a file to the PC, first start rz on the Linux host: + + $ sudo rz </dev/ttyS0 >/dev/ttyS0 + + You can add the rz -v option multiple times, each increases the level + of debug output. + + NOTE: The NuttX Zmodem does sends rz\n when it starts in compliance with + the Zmodem specification. On Linux this, however, seems to start some + other, incompatible version of rz. You need to start rz manually to + make sure that the correct version is selected. You can tell when this + evil rz/sz has inserted itself because you will see the '^' (0x5e) + character replacing the standard Zmodem ZDLE character (0x19) in the + binary data stream. + + If you don't have the rz command on your Linux box, the package to + install rzsz (or possibily lrzsz). + + Then on the target: + + > sz -d /dev/ttyS1 <filename> + + Where filename is a file residing in the /tmp directory. +
\ No newline at end of file |