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

Application Note
R30AN0232EU0111
Rev.1.11
Nov 18, 2016
Renesas Synergy™ Platform
Getting Started with USBX™ HID Keyboard (Device)
Introduction
This application note describes how to install, build, and run an example HID keyboard device application on a Renesas Synergy development board using the Renesas e application also includes the following key elements to demonstrate how they work together in a typical design: ThreadX® RTOS, USBX device class, USBX device driver for the Renesas Synergy Platform, and a sample HID keyboard device application
2
studio ISDE and Renesas Synergy Software Package (SSP). The
Goals and Objectives
The goal of this application note is to help you install, build, and run the example application. The example application demonstrates HID keyboard device connectivity on the PE-HMI1, DK-S7G2, DK-S3A7, or
SK-S7G kit. It takes you through all the necessary steps with the Renesas Synergy Platform including using an example application in the Renesas e illustrates the use of a USB HID keyboard device class as a serial communications device connected through a serial port (COM port) on a PC.
2
studio ISDE and running that application on the target board. The example application
Prerequisites
The reader of this application note is assumed to have some experience with the Renesas e2 studio ISDE and SSP. For example, 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 and ensure that the debug connection to your board is functioning properly.
2
studio and the SSP
Required Resources
The example application targets Renesas Synergy S7G2 and S3A7 devices. To build and run the example application, you will need:
A Renesas Synergy DK-S7G2, SK-S7G2, PE-HMI1, or DK-S3A7 boa rd
A PC running Microsoft® W i ndows® 7 with the following Renesas software installed:
2
e
studio ISDE 5.0.0
Synergy Software Package (SSP) 1.1.0 You can download the required Renesas software from the Renesas Synergy Gallery
(https://synergygallery.renesas.com). The PC must also have a USB 2.0 port and connection to the Internet.
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. Run the example application.
Contents
1. Connecting to the Board ................................................................................................. 2
2. Importing, Configuring, and Building the Project ......................................................... 2
3. Running the Example Application .................................................................................. 2
4. Next Steps ......................................................................................................................... 2
R30AN0232EU0111 Rev.1.11 Page 1 of 3 Nov 18, 2016
Renesas Synergy™ Platform Getting Started with USBX™ HID Keyboard (Device)

1. Connecting to the Board

To configure and connect your target board, 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.
Note: For the DK-S3A7 board, set the USBF to the ON position, as shown in the following diagram:

2. Importing, Configuring, and Building the Project

Follow the procedure in the Synergy Project Import Guide (r11an0023eu0110_synergy_ssp.pdf) to import the project into the e USBX_HID_Keyboard Debug (under Renesas GDB Hardwar e Debugging).
2
studio ISDE, build, an d de b ug the project. When prompted to select the debug configuration, select

3. Running the Example Application

The example application illustrates USB connectivity through these two functions:
The host PC recognizes the PE-HMI1, DK-S7G2, SK-SK7G2 or DK-S3A7 board as a keyboard device.
The demo application types the characters to the PC.
To run the example application:
1. Follow the steps in section 4 in r11an0023eu0100_synergy_ssp.pdf and click Resume twice.
2. Open a text editor with a blank document. Make sure the cursor is active in the blank document that the application
of focus in Windows is the text editor window.
3. The demo application acts as a keyboard and types the characters ‘a’ through ‘z’ in the text editor window at 2-
second intervals. Characters are sent out automatically, so there is no need for user interaction.
4. Click Terminate to close the debugger.

4. Next Steps

After you run the example application, you can learn more about how the application works and the API calls involved by examining the application source code.
You can also download additional Synergy example applications from the following URL:
https://www.renesas.com/en­us/search/keywordsearch.html#genre=tooldownload&softwarecategory=4&softwarecategory=7&softwarecategory=8& softwarecategory=9&softwarecategory=10&softwarecategory=11&softwarecategory=12&softwarecategory=13&softw arecategory=14&softwarecategory=27&softwarecategory=16&softwarecategory=17&softwarecategory=18&productlay er=188815&productlayer=188816&productlayer=188817&productlayer=188819&productlayer=188820&productlayer =188821&productlayer=188822
R30AN0232EU0111 Rev.1.11 Page 2 of 3 Nov 18, 2016
Loading...
+ 3 hidden pages