Renesas Synergy DK-S7G2, Synergy PK-S5D9, Synergy PE-HMI1, Synergy SK-S7G2 Quick Start Manual

Application Note
R11AN0031EU0102
Renesas Synergy™ Platform
Rev.1.02
Getting Started with NetX™ Duo DHCP
Introduction
Mar 31, 2017
This application note describes how to install, build, and run a simple DH CP client application along with Web Server application on a Renesas Synergy development board, using the Renesas e Package (SSP), and the Express Logic NetX Duo network s tack.
studio ISDE, Renesas Synergy Software
Goals and Objectiv es
The goal of this application note is to help you install, build, and run the exa mple a pplication. While running using your PC, you can view the DHCP IP address leased by the DHCP server through a Serial Terminal
program such as Putty or Tera Term. Using the IP address leased from the DHCP server, you can also view the Web server running on the board.
The example application supports both IPv4 and IPv6. Using your PC, you can view the web serve r applicati on running on your board in a browser, and watch the application run by observing variables being updated when you refresh the browse r win d ow.
The web server displays an IPv6 address at the bottom of the screen. You can ping the IPv6 address from a command window on your PC.
Prerequisites
As the user of this application note, you are assumed to have some experience with the Renesas e2 studio ISDE and SSP, as well as IAR E W and SSC. Before you perform the procedure in this application note, you should follow the procedure in your board’s Quick Start Guide to build and run the ‘Blinky’ project. By doing so, you will become familiar with e
The user of this application note is assumed to have some experience with TCP/IP and basic knowledge of networking.
studio and the SSP, and ensure that the debug connection to your board is functioning properly.
Required Resources
The example application targets Renesas Synergy S7G2 devices. To bui ld and run the example a pplication, you will need:
A Renesas Synergy DK-S7G2 (v3.0), SK-S7G2, PK-S5D9, or PE-HMI1 board
A PC running Microsoft
e
studio ISDE v5.3.1 or greater, or IAR EW for Synergy v7.71.1 or greater
Synergy Software Package (SSP) 1.2.0 or Synergy Standalone configurator (SSC) 5.3.1.
You can download the required Renesas software from the Renesas Synergy Gallery (https://synergygallery.renesas.com).
The PC must also have USB 2.0 and an Internet connection. In addition, a DHCP server must be available on your network.
®
Windows® 7 with the following Renesas software installed:
Time Required
You can install, build, and run the example application in under 30 minutes. The high-level steps involved are:
1. Connect to the target board.
2. Import, configure, and build the project.
3. Determine the IP address chosen by the DHCP server.
4. Run the example application.
5. Verify the IP address leased by the DHCP server can be observed at a serial terminal.
R11AN0031EU0102 Rev.1.02 Page 1 of 14 Mar 31, 2017
Renesas Synergy™ Platform Getting Started with NetX™ Duo DHCP
Contents
1. Connecting to the Board .......................................................................................................... 3
2
2. Importing the Project into e
studio .......................................................................................... 4
3. Determining the IP Address leased by the DHCP Server ......................................................... 5
4. Running the NetX Duo DHCP Application ................................................................................ 6
5. Next Steps ............................................................................................................................... 9
6. Appendix ............................................................................................................................... 10
R11AN0031EU0102 Rev.1.02 Page 2 of 14 Mar 31, 2017
Renesas Synergy™ Platform Getting Started with NetX™ Duo DHCP

1. Connecting to the Board

To configure and connect your target board:
1. Follow the procedure in your target board’s Quick Start Guide to set up the J-link debugger connection from your
PC to the JTAG connector on the target board, and power-up the board.
2. Connect an Ethernet cable from an existing upli nk network (coming from the Uplink switch) to the desktop Ethernet
switch. Note: For the DK-S7G2 board, set the DIPSW S5 ENET1 switch to On, and use the Main Board Ethernet 1 port
only.
3. Connect an Ethernet cable from the Synergy kit to the deskt op Ethernet switch.
4. Connect an Ethernet cable from the PC to the desktop Ethernet switch.
5. Connect the USB CDC console from Synergy board to the PC.
6. Connect USB flash drive to the USB host connector on the Synergy board.
7. The connectivity diagram for the application supported on the boards is shown in Figure 1.1.
Figure 1.1 Sample Hardware setup for DHCP Application
R11AN0031EU0102 Rev.1.02 Page 3 of 14 Mar 31, 2017
Renesas Synergy™ Platform Getting Started with NetX™ Duo DHCP

2. Importing the Project into e2 studio

Follow the procedure in the Synergy Project Import Guide (r11an0023eu0116_synergy_ssp.pdf) to import, build, and debug the project. When prompted to select the debug configuration, select NETX_Duo_DHCP_Webserver Debug (under Renesas GDB Hardware Debugging).
If you properly configured, built, and ran the application, you should see the orange light illuminated on the board near the Ethernet connector on the PE-HMI1 and DK-S7G2, as shown in Figure 2.1. The LEDs on the SK-S7G2 and PK­S5D9 are on the connector side of the Ethernet port itself, and not on the board.
Figure 2.1 Ethernet Active LED (PE-HMI1 Shown)
R11AN0031EU0102 Rev.1.02 Page 4 of 14 Mar 31, 2017
Renesas Synergy™ Platform Getting Started with NetX™ Duo DHCP

3. Determining the IP Address leased by the DHCP Server

The application contacts the local DHCP server in the network to obtain an IP address. Once this address is obtained, the application sends a text representation of the address over the USB connection to a terminal program (for example, Tera Term) on the PC.
The USB connection is a standard CDC/ACM device, which requires a driver file to operate. 32-bit and 64-bit versions of this file can be found in the Append ix section. To install the drivers:
1. Create the two files named in the appendix, to a folder on your PC and copy/paste the contents into each of the files.
The CDC/ACM device shows up in the Device Mana ger of your PC under the Other devices group as EL Composite device.
2. Right click on this device and select update driver software.
3. When prompted for the location of the drivers, browse to the location of the two files you created in step 1. Once the driver is updated, a new COM device shows up in the Device Manager.
4. Use a terminal program (for example, Tera Term) to open that COM device. The baud rate is 9600. Once your terminal program is open, your IP address is periodically printed to the terminal window.
Figure 3.1 Console displaying DHCP leased IP address for the board
R11AN0031EU0102 Rev.1.02 Page 5 of 14 Mar 31, 2017
Loading...
+ 11 hidden pages