Luminary Stellaris User manual

RDK-S2E-02 Copyright © 2008 Luminary Micro, Inc.
Stellaris® Serial-to-Ethernet
Reference Design Kit
USER’S MANUAL

2November 4, 2008
Legal Disclaimers and Trademark Information
INFORMATION IN THIS DOCUMENT IS PROVIDED IN CONNECTION WITH LUMINARY MICRO PRODUCTS. NO LICENSE,
EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, TO ANY INTELLECTUAL PROPERTY RIGHTS IS GRANTED BY THIS
DOCUMENT. EXCEPT AS PROVIDED IN LUMINARY MICRO’S TERMS AND CONDITIONS OF SALE FOR SUCH PRODUCTS,
LUMINARY MICRO ASSUMES NO LIABILITY WHATSOEVER, AND LUMINARY MICRO DISCLAIMS ANY EXPRESS OR IMPLIED
WARRANTY, RELATING TO SALE AND/OR USE OF LUMINARY MICRO’S PRODUCTS INCLUDING LIABILITY OR WARRANTIES
RELATING TO FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR INFRINGEMENT OF ANY PATENT, COPYRIGHT
OR OTHER INTELLECTUAL PROPERTY RIGHT. LUMINARY MICRO’S PRODUCTS ARE NOT INTENDED FOR USE IN MEDICAL,
LIFE SAVING, OR LIFE-SUSTAINING APPLICATIONS.
Luminary Micro may make changes to specifications and product descriptions at any time, without notice. Contact your local Luminary Micro
sales office or your distributor to obtain the latest specifications before placing your product order.
Designers must not rely on the absence or characteristics of any features or instructions marked “reserved” or “undefined.” Luminary Micro
reserves these for future definition and shall have no responsibility whatsoever for conflicts or incompatibilities arising from future changes to
them.
Copyright © 2008 Luminary Micro, Inc. All rights reserved. Stellaris, Luminary Micro, and the Luminary Micro logo are registered trademarks of
Luminary Micro, Inc. or its subsidiaries in the United States and other countries. ARM and Thumb are registered trademarks, and Cortex is a
trademark of ARM Limited. Other names and brands may be claimed as the property of others.
Luminary Micro, Inc.
108 Wild Basin, Suite 350
Austin, TX 78746
Main: +1-512-279-8800
Fax: +1-512-279-8879
http://www.luminarymicro.com

Stellaris® S2E RDK User’s Manual
November 4, 2008 3
Table of Contents
Chapter 1: Stellaris® Serial-to-Ethernet Reference Design Kit Overview...................................................7
Using the RDK....................................................................................................................................................7
Features..............................................................................................................................................................8
Kit Contents........................................................................................................................................................8
Description..........................................................................................................................................................8
Serial-to-Ethernet Module...............................................................................................................................8
Serial-to-Ethernet Connector Board................................................................................................................9
Flow Control......................................................................................................................................................10
Installation.........................................................................................................................................................10
Specifications....................................................................................................................................................11
Electrical .......................................................................................................................................................11
Mechanical....................................................................................................................................................11
Chapter 2: Serial-to-Ethernet Configuration and Firmware Update...........................................................13
Accessing the Configuration Website...............................................................................................................13
Using “My Network Places”...........................................................................................................................13
Using the LM S2E Browser Application........................................................................................................14
Home Page...................................................................................................................................................14
Port 0 and Port 1 Settings Pages .....................................................................................................................15
Miscellaneous Settings Page............................................................................................................................17
Firmware Update Page.....................................................................................................................................18
Chapter 3: Using the S2E Module as a Serial Extender over Ethernet......................................................21
Chapter 4: Using Serial-to-Ethernet as a Virtual COM Port........................................................................23
Overview...........................................................................................................................................................23
Install com0com................................................................................................................................................23
Install com2tcp..................................................................................................................................................28
Install LM PC S2E Configuration ......................................................................................................................28
Configure VCP Using the LM S2E PC Configuration Application.....................................................................29
Connection creation......................................................................................................................................30
Edit port names.............................................................................................................................................32
Manual VCP Configuration ...............................................................................................................................32
Verify VCP Operation .......................................................................................................................................33
Chapter 5: Hardware Description..................................................................................................................35
Block Diagram ..................................................................................................................................................35
Appendix A: Schematics................................................................................................................................37
Appendix B: Bill of Materials (BOM) .............................................................................................................39
Appendix C: Contact Information .................................................................................................................41

4November 4, 2008
List of Figures
Figure 1-1. Serial-to-Ethernet Module and S2E Connector Board ....................................................................7
Figure 1-2. Serial-to-Ethernet Module ...............................................................................................................9
Figure 1-3. Serial-to-Ethernet Connector Board................................................................................................9
Figure 1-4. S2E Module Connection to S2E-CKIT ..........................................................................................11
Figure 2-1. LM S2E Browser Window..............................................................................................................14
Figure 2-2. Home Page of the Configuration Website.....................................................................................15
Figure 2-3. Port 0 Configuration Window.........................................................................................................17
Figure 2-4. Miscellaneous Settings Page ........................................................................................................18
Figure 3-1. Implementing a Serial Extender over Ethernet..............................................................................21
Figure 4-1. Typical S2E Module .....................................................................................................................23
Figure 4-2. Luminary Micro menu group..........................................................................................................29
Figure 4-3. S2E module connection over Ethernet..........................................................................................30
Figure 4-4. Main LM S2E Configuration application window ...........................................................................31
Figure 4-5. Manual VCP configuration.............................................................................................................33
Figure 4-6. Com2tcp communication shown in the command prompt window................................................33
Figure 4-7. HyperTerminal File Properties Dialog ...........................................................................................34
Figure 5-1. Serial-to-Ethernet Block Diagram..................................................................................................35

Stellaris® S2E RDK User’s Manual
November 4, 2008 5
List of Tables
Table 1-1. J2 Header Signals.........................................................................................................................10
Table 1-2. J3 Header Signals.........................................................................................................................10
Table B-1. Serial-to-Ethernet Bill-of-Materials ................................................................................................39
Table B-2. Serial-to-Ethernet Connector Board Bill-of-Materials....................................................................40

6November 4, 2008

November 4, 2008 7
Stellaris® Serial-to-Ethernet Reference Design Kit
Overview
Reference Design Kits (RDKs) from Luminary Micro accelerate product development by providing
ready-to-run hardware. This kit includes all the necessary cables, S2E connector board, and
software to run a demo application out of the box.
Figure 1-1. Serial-to-Ethernet Module and S2E Connector Board1
Using the RDK
The recommended steps for using the RDK are:
Follow the Quickstart Guide included in the kit.
The Quickstart guide will help you get the S2E module up and running in minutes. It also
contains important safety information that should be read before using the RDK.
Follow the appropriate chapters in this document to configure the S2E module for a
specific application.
If required, customize the S2E module hardware and software. Luminary Micro provides
full source code and design files.
1. Images are not shown to scale.
Front
Back
CHAPTER 1

Stellaris® Serial-to-Ethernet Reference Design Kit Overview
8November 4, 2008
Features
The S2E module is intended as a simple add-on product to existing systems to provide network
connectivity. The RDK contains all the necessary hardware to quickly evaluate the module
capabilities. The S2E module RDK has the following features:
LM3S6432 Stellaris microcontroller with 96 kB of Flash memory and 32 kB of SRAM
10/100 Mbit Ethernet port
Two serial ports
–PORT0 is an asynchronous serial port with RS232 levels
• Data rates up to 230,400 bits/sec
• Includes RTS/CTS for flow control
–PORT1 has 4 CMOS/TTL level signals that can be configured several ways
• Data rates up to 1 Mbit/sec.
• As an asynchronous serial port with RTS/CTS flow control or with 2 GPIOs
• As 4 GPIOs
• As a synchronous serial port (master or slave) with support for SPI, uWire, and other
synchronous protocols
RDK is USB-powered, no additional power supply required
Ethernet boot loader for firmware upgrades
JTAG 10-pin debug header
Kit Contents
S2E Module: Serial-to-Ethernet module
S2E-CKIT: Serial-to-Ethernet connector board
USB A to miniB cable: For powering the module
Serial cable DB9M - DB9F: For connecting module to PC serial port
Ethernet retractable cable: For connecting S2E module to the network
20-pin to fine-pitch 10-pin ARM JTAG debug adapter
S2E-CKIT standoffs: For optional attachment to S2E-CKIT board
Description
Serial-to-Ethernet Module
Figure 1-2 shows the S2E module diagram. The S2E header connector provides the serial port
signals and power signals to the module. For the RDK, this is connected to the S2E-CKIT (see
Figure 1-3). For more information on the S2E module, see the Serial-to-Ethernet board data sheet.

Stellaris® S2E RDK User’s Manual
November 4, 2008 9
Figure 1-2. Serial-to-Ethernet Module
Serial-to-Ethernet Connector Board
Figure 1-3 shows the Serial-to-Ethernet connector board. The board connects to the S2E module
via the J1 connector, and provides connectors for power and serial port connections during RDK
evaluation and development. Power can be provided by the USB connector (5 V) or by the J3
header (3.3 V). A power indicator LED turns on when power is applied. Header J2 provides the
CMOS/TTL signals for the module Port1 signals, see Table 1-1. The J3 header signals are shown
in Table 1-2.
Figure 1-3. Serial-to-Ethernet Connector Board
RJ45
J1
Network
Connector
Faceplate
Spacers
(M3 thread)
Mounting
Hole
Mounting
Hole
S2E Header
Connector
JTAG Header
Pads
USB
DB9F
J1
J2
J3
D1
USB Power
Connector
PORT0
Connector
S2E Socket
Connector
(Bottom side)
PORT1 Header
3.3V Header
Power
Indicator
Standoff
Holes

Stellaris® Serial-to-Ethernet Reference Design Kit Overview
10 November 4, 2008
Flow Control
The S2E module supports bidirectional RTS/CTS flow control, as defined in the RS-232 E
standard.
For the receiver, in this mode of operation, the S2E asserts the CTS signal when it capable of
receiving data, and it deasserts the signal when transmission by the remote serial device should
be paused. In the S2E module, the CTS signal is asserted by setting the CTS output GPIO for the
0 (or low) level. The signal is deasserted by setting the GPIO output value to the 1 (or high) level.
For the transmitter, the RTS GPIO signal is monitored for state changes. When the state changes
to asserted, transmission is allowed/resumed. When the state changes to deasserted,
transmission is paused. The polarity of the RTS GPIO signal is interpreted in the same way as for
the CTS GPIO signal. If the RTS GPIO signal is 1 (or high level), it is considered to be deasserted,
and the UART transmitter is disabled (the current byte, if any, is completed). When the signal is 0
or low level), it is considered to be asserted, and the transmitter is re-enabled.
Installation
The requirements for installation include a PC with an available serial port with a DB9 male
connector and a USB port, and an available 10/100Mbit network port. The S2E-CKIT board
contains the connectors required for powering and connecting the module, and sits on top of the
S2E module. Use the following steps to connect the S2E module to the S2E-CKIT connector board
(see Figure 1-4).
1. Attach the provided nylon standoffs to S2E-CKIT (optional).
2. Attach S2E-CKIT to the S2E module. Align the 12-pin socket to the 12-pin connector on the
S2E module and press firmly.
Table 1-1. J2 Header Signals
J2 Header Pin Stellaris GPIO Description
1 PD2/PA4 Serial data input to S2E module (UART or SPI)
2 PD3/PA5 Serial data output from S2E module (UART or SPI)
3 PA3 UART CTS output or SPI select signal
4 PA2 UART RTS input or SPI clock signal
5 RSTn Reset input to S2E module (leave unconnected if unused)
6 GND Ground signal
Table 1-2. J3 Header Signals
J3 Header Pin Signal Description
3.3 V 3.3 V 3.3 V power input. Use only if the USB power connector is not used, other-
wise leave unconnected.
GND GND Ground signal

Stellaris® S2E RDK User’s Manual
November 4, 2008 11
3. Connect the serial cable: DB9M (male) side to the DB9F(female) connector on the S2E-CKIT
and DB9F side to the serial port on the PC.
4. Connect the USB cable MiniAB plug to the S2E-CKIT and the other side to the PC. The green
LED on the S2E-CKIT should turn on, indicating that the S2E module is now powered.
5. Connect the ethernet retractable cable to the S2E module and to a network port.
Figure 1-4. S2E Module Connection to S2E-CKIT
Specifications
Electrical
USB power: 5V at 200mA
Mechanical
S2E module PCB size: 1.475 x 1.555" x 0.63” (39.5 mm x 37.5 mm x 16 mm)
S2E-CKIT PCB size: 1.475 x 1.5" x 0.57” (39.5 mm x 38.1 mm x 14.5 mm)
RJ45
USB
DB9F
J1
Optional
Standoffs

Stellaris® Serial-to-Ethernet Reference Design Kit Overview
12 November 4, 2008

November 4, 2008 13
Serial-to-Ethernet Configuration and Firmware
Update
The sotware in the S2E module includes an embedded web server that provides a convenient
configuration interface.
Accessing the Configuration Website
You can access the S2E module’s web-based configuration interface:
Using “My Network Places”
Using the LM S2E Browser Application
Using “My Network Places”
To access the configuration website without using the S2E configuration application, Windows
must first be configured to show icons for networked UPnP devices. To do this in Windows XP,
follow these steps:
1. Click Start, and then click Control Panel. Click Add or Remove Programs.
2. Click Add/Remove Windows Components.
3. In the Components list, click to select the Networking Services check box, and then click
Details.
4. In the Subcomponents of Networking Services list, click to select UPnP User Interface
check box and then click OK.
NOTE: To remove the UPnP UI components, click to clear the UPnP User Interface check box.
5. In the Windows Components Wizard, click Next.
For more information on Windows and UPnP, visit the Microsoft Help and Support website at http:/
/support.microsoft.com/.
To find the UPnP icon for the S2E module, follow these steps:
1. Go to “My Network Places”. “My Network Places” can typically be found by simply clicking
Start and then My Network Places.
2. Look for a UPnP icon labeled “Luminary Micro Serial2Ethernet Module”. The label should also
include the IP address of the S2E module.
Double-clicking on the icon will bring up the configuration website served up by the S2E module in
a web browser.
CHAPTER 2

Serial-to-Ethernet Configuration and Firmware Update
14 November 4, 2008
Figure 2-1. LM S2E Browser Window
NOTE: If the “Luminary Micro Serial2Ethernet Module” UPnP icon is not present, ensure that you
have configured Windows appropriately to show icons for networked UPnP devices.
Using the LM S2E Browser Application
If you installed the S2E configuration applications, to access the module configuration website:
1. Click Start, and then select All Programs > Luminary Micro > Serial-to-Ethernet
Configuration > LM S2E Browser.
2. The application shows a list of all the S2E modules on your network. If “Searching for
devices...” appears below the list, wait a few seconds for the list to populate.
3. Double-click the desired module. Your default web browser launches and loads the selected
configuration website.
Home Page
The home page of the configuration website shows the current status and configuration
information. Included are the name, IP address, and MAC address of the S2E module as well as
the current port settings for both port 0 and port 1. Figure 2-2 shows the home page of the website
hosted by the S2E module.

Stellaris® S2E RDK User’s Manual
November 4, 2008 15
Figure 2-2. Home Page of the Configuration Website
Port 0 and Port 1 Settings Pages
The “Port 0 Settings” page allows configuration of port 0 of the S2E module. Similarly, the “Port 1
Settings” page allows configuration of port 1 of the S2E module. The following configuration
options are provided:
Baud Rate – specifies the baud rate to be used by the serial port. There are several options
from 110 to 230400 bits/S.
Data Size – configures the number of data bits per character. The options are 5 to 8 bits /
character.
Parity – specifies the generation and checking of the parity bit in the data frame and the type of
parity used. The options are “None”, “Odd”, “Even”, “Mark”, and “Space”.
Stop Bits – specifies the number of stop bits at the end of a frame.
Flow Control – specifies the use of flow control. The options are “None” and “Hardware”.
Local Telnet Port Number – specifies the local telnet port number to be used.

Serial-to-Ethernet Configuration and Firmware Update
16 November 4, 2008
Remote Telnet Port Number – specifies the remote telnet port number to be used when the
“Telnet Mode” is set to “Client”.
Telnet Mode – specifies whether the telnet mode for that port will be “Server” or “Client”.
Telnet Protocol – specifies whether the data for the port will be “Telnet” or “Raw”.
Telnet Server IP – specifies the IP address of the telnet server when the “Telnet Mode” is set to
“Client”.
Telnet Timeout – specifies the telnet timeout in seconds. The default is 0 and specifies that no
timeout is to be used.
After changing the settings, click the “Apply Changes” button to cause the changes to take effect.
If the “Make these the default settings” check box is checked before clicking the “Apply Changes”
button, then the new settings are applied each time the S2E module is reset. Otherwise, the
existing defaults are used whenever the module is next reset. Figure 2-3 shows the configuration
page for Port 0.

Stellaris® S2E RDK User’s Manual
November 4, 2008 17
Figure 2-3. Port 0 Configuration Window
Miscellaneous Settings Page
The Miscellaneous Settings page of the website is divided into three sections: “IP Address
Selection”, “General Configuration Settings”, and “Restore Factory Defaults”.
The “IP Address Selection” portion of the page allows configuration of the S2E module to
automatically obtain an IP address or use a static IP address at start up. If the “DHCP/AutoIP”
option is chosen, the S2E module will first attempt to get an IP address from a DHCP server. If a
DHCP server cannot be located, the S2E module will obtain a link local IP address using the
AutoIP protocol. If the “Static IP” option is chosen, then the “Static IP Address”, “Subnet Mask”,
and “Default Gateway” fields need to be filled in. Clicking the “Update Settings” button will cause
the settings to be saved.
The “General Configuration Settings” portion of the page allows modificationof the “Module Name”
and “UPnP port number”. Clicking the “Update Settings” button will cause the settings to be saved.

Serial-to-Ethernet Configuration and Firmware Update
18 November 4, 2008
The “Restore Factory Defaults” portion of the page allows restoring all of the options to their
default states. Figure 2-4 shows the Miscellaneous Settings page of the website.
Figure 2-4. Miscellaneous Settings Page
Firmware Update Page
The Firmware Update page provides the capability for the application to call the boot loader to
initiate a firmware update over Ethernet. Once the boot loader is executing, LM Flash Programmer
can be used to update the firmware. LM Flash Programmer is provided on the CD that comes with
the S2E RDK and can also be accessed from the Luminary Micro website at
http://www.luminarymicro.com/products/software_updates.html.
The steps to complete the firmware update:
1. Using LM Flash Programmer
a. Start the LM Flash Programmer GUI.
b. On the Configuration tab, select “Manual Configuration” from the “Quick Set” pull-down
menu.

Stellaris® S2E RDK User’s Manual
November 4, 2008 19
c. Select the “Ethernet Interface” option from the “Interface” pull-down menu.
d. Complete the “Client IP Address” field with the IP address shown on the Firmware Update
page.
e. Complete the “Client MAC Address” field with the MAC address shown on the Firmware
Update page.
f. Select the Ethernet Adapter of the PC to use.
g. Select to the Program tab. Click the “Browse” button and select the binary file for the
updated firmware.
2. Using LM Flash Programmer
Click the “Program” button.
3. If after a few seconds the LM Flash Programmer status bar does not indicate that the update is
in progress, using the Firmware Update Page, click the "Update" button.

Serial-to-Ethernet Configuration and Firmware Update
20 November 4, 2008
Table of contents