summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2013-07-12 18:10:12 -0600
committerGregory Nutt <gnutt@nuttx.org>2013-07-12 18:10:12 -0600
commite77e09228c953f36872e0674ba98e4358f46b109 (patch)
tree6932f252ec3dbc7d8510e668530402474d3863e2
parent8efbedf68d8cd929312a40d5c8f26e16258b135d (diff)
downloadnuttx-e77e09228c953f36872e0674ba98e4358f46b109.tar.gz
nuttx-e77e09228c953f36872e0674ba98e4358f46b109.tar.bz2
nuttx-e77e09228c953f36872e0674ba98e4358f46b109.zip
Additional support needed for Zmodem debug
-rw-r--r--apps/system/zmodem/Kconfig18
-rw-r--r--nuttx/configs/olimex-lpc1766stk/README.txt22
-rw-r--r--nuttx/configs/olimex-lpc1766stk/zmodem/defconfig2
3 files changed, 39 insertions, 3 deletions
diff --git a/apps/system/zmodem/Kconfig b/apps/system/zmodem/Kconfig
index 570429485..167146e97 100644
--- a/apps/system/zmodem/Kconfig
+++ b/apps/system/zmodem/Kconfig
@@ -101,4 +101,22 @@ config SYSTEM_ZMODEM_MAXERRORS
---help---
Max receive errors before canceling the transfer.
+config DEBUG_ZMODEM
+ bool "Zmodem debug"
+ default n
+ ---help---
+ Enable Zmodem debug output. This debug is unrelated to the internal
+ NuttX debug option; it does not use the SYSLOG channel but, instead,
+ outputs debug information on stderr. Obviously, enabling this
+ option will likely cause you all kinds of problems if you intend to
+ use /dev/console to transfer files!
+
+config SYSTEM_ZMODEM_DUMPBUFFER
+ bool "Dump buffers"
+ default n
+ depends on DEBUG_ZMODEM
+ ---help---
+ Dump the contents of all incoming and outgoing buffers that are
+ exchanged with the remote peer.
+
endif
diff --git a/nuttx/configs/olimex-lpc1766stk/README.txt b/nuttx/configs/olimex-lpc1766stk/README.txt
index 39c7a25d6..7f2c74d29 100644
--- a/nuttx/configs/olimex-lpc1766stk/README.txt
+++ b/nuttx/configs/olimex-lpc1766stk/README.txt
@@ -1082,10 +1082,28 @@ Where <subdir> is one of the following:
CONFIG_UART1_PARITY=0
CONFIG_UART1_2STOP=0
- 2. Support is included for the NuttX sz and rz commands.
+ 2. Support is included for the NuttX sz and rz commands. In order to
+ use these commands, you will need to mount the SD card so that you
+ will have a file system to transfer files in and out of:
+
+ nsh> mount -t vfat /dev/mmcds0 /mnt/sdcard
+
+ NOTE: You must use the mountpoint /mnt/sdcard because that is the
+ Zmodem sandbox specified in the configuration.
+
+ CONFIG_SYSTEM_ZMODEM_MOUNTPOINT="/mnt/sdcard"
+
+ Hmmm.. I probably should set up an NSH script to just mount /dev/mmcsd0
+ at /mnt/sdcard each time the board boots.
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:
+ Linux PC. To send a file to the PC, first make sure that the serial
+ port is configured to work with the board:
+
+ $ sudo stty -F /dev/ttyS0 57600
+ $ sudo stty -F /dev/ttyS0
+
+ start rz on the Linux host:
$ sudo rz </dev/ttyS0 >/dev/ttyS0
diff --git a/nuttx/configs/olimex-lpc1766stk/zmodem/defconfig b/nuttx/configs/olimex-lpc1766stk/zmodem/defconfig
index 1cb27f6a5..ad5635367 100644
--- a/nuttx/configs/olimex-lpc1766stk/zmodem/defconfig
+++ b/nuttx/configs/olimex-lpc1766stk/zmodem/defconfig
@@ -796,7 +796,7 @@ CONFIG_SYSTEM_ZMODEM=y
CONFIG_SYSTEM_ZMODEM_RCVBUFSIZE=512
CONFIG_SYSTEM_ZMODEM_PKTBUFSIZE=512
CONFIG_SYSTEM_ZMODEM_SNDBUFSIZE=512
-CONFIG_SYSTEM_ZMODEM_MOUNTPOINT="/tmp"
+CONFIG_SYSTEM_ZMODEM_MOUNTPOINT="/mnt/sdcard"
CONFIG_SYSTEM_ZMODEM_SENDSAMPLE=y
CONFIG_SYSTEM_ZMODEM_SENDATTN=y
CONFIG_SYSTEM_ZMODEM_ALWAYSSINT=y