User`s manual
RSK+ RX62N Development Environment
R20UT0255EG0100 Page 8 of 8
August 26, 2010
2. Development Environment
2.1 Sample Code Configuration
The Sample code is provided as a project generator with the RSK. To create the sample code project follow the
instructions in the RSK Quick Start Guide for creating a new project. Choose as a project type one of the following:
1. USB Communication Device Class
2. USB Human Interface Device Class
3. USB LibUSB Device
4. USB Mass Storage Device Class
When created the sample code will contain the source for both the Target project and a Host project if applicable,
including any configuration driver files.
2.2 Target Sample Code Options
The RX62N has two identical USB Modules. The USB stacks supports both of these modules but not both at the
same time. Select the USB module to use by editing USB_HAL.h file to define either “USB_MODULE_0” or
”USB_MODULE_1”. The code example below shows USB Module 1 being selected.
/*Select the USB module to use by commenting out the unused module*/
//#define USB_MODULE_0
#define USB_MODULE_1
When developing USB software it is useful to be able to get debug information out at runtime without stopping
code from running such as when stepping in a debugger. All modules of the USB Stack software include debug
messages that can be utilised in a system that supports printf. The sample applications all support printf and the
output is viewable via the serial port of the RSK. To view the serial output the following settings are required:
Baud: 115200. Data: 8 Bit. Parity: None. Stop Bits: 1. Flow: None.
The level of debug message can be set using the #define DEBUG_LEVEL. This is described in the file
usb_common.h in the USBStack directory. Note that a high level of debug messages can significantly slow down
the system. To remove all debug messages from the build #define RELEASE.
2.3 Host Application Software
The host software requires a Microsoft Windows™ PC. It has been tested with XP SP3 and Vista.
The host applications are provided as pre-built executables and as source.
To build the Microsoft Visual C++ Applications you will need to have the appropriate Windows Software
Development Kit (SDK) and the Windows Driver Kit (WDK) installed. These kits provide access to the library
functions to access USB devices and are available directly from Microsoft.
We have provided the links to the current locations however we cannot guarantee the suitability or accuracy of
these links. Both must be installed to be able to build the application, we suggest installing the SDK first.
Windows SDK
Windows Driver Kit (WDK)