Renesas RZ/A2M Quick Start Guide

RZ/A2M Group RZ/A2M Software Package for GR-MANGO Quick Start Guide
RZ/A2M Group
RZ/A2M Software Package for GR-MANGO Quick Start Guide

1. Introduction

This is the Quick Start Guide for the RZ/A2M Software Package for GR-MANGO which works on GR­MANGO board by CORE C ORPORATION and the operation of Renesas e
This document describes how to run each executable sample project included in the package.
studio.
R01QS0042EJ0100 Rev.1.00 Page 1 of 24 Sep.30.20
RZ/A2M Group RZ/A2M Software Package for GR-MANGO Quick Start Guide

2. Preparation

2.1 Tool

RZ/A2M Software Package for GR-MANGO can be used on the following environment. Please check your environment before continuing.
Tools:
- IDE: e
- Tool Chain: GNU ARM Embedded Toolchain 6-2017-q2-update
Refer to the following document for the details of installing e2 studio.
studio 7.8.0 or later
Available from
https://www.renesas.com/products/software-tools/tools/ide/e2studio.html
This tool in bundled in the IDE above. Available from
https://developer.arm.com/tools-and-software/open-source-software/developer­tools/gnu-toolchain/gnu-rm/downloads/6-2017-q2-update
e2 studio Integrated Development Environment User's Manual: Getting Started
Target Board:
GR-MANGO
ICE (In-circuit emulator): On GR-MANGO environment, user do not need to prepare an ICE for programming and debugging. GR-MANGO supports Arm Mbed DAPLink feature for rapid prototyping. DAPLink provides features below.
drag-and-drop programming (MSC)  a virtual serial port (CDC)  CMSIS-DAP based debug g ing (HID )
For more detail of DAPLink specification, please refer following page.
https://os.mbed.com/handbook/DAPLink
Bootloader:
This package includes the bootloader as table data. If user would like to get the source code, please
access following website.
https://www.mxic.com.tw/en-us/support/technical-documentation/Pages/Serial-NOR-Flash.aspx

2.2 Virtual Serial Port Connection

Connect CN1 on the GR-MANGO board to a Windows™ PC, this provides a USB virtual serial port. When the RZ/A2M SU B board is f irst connec ted, the PC will look for a s uitable dr iver. This driv er is ins talled
during the installation process and the PC should automatically find and install it. The PC will report it is installing a driver and rep or t a dr iver has bee n installed successfully. T he CO Mx port numb er al locat ed to t h e virtual serial port can be confirmed in Windows™ Device Manager.
R01QS0042EJ0100 Rev.1.00 Page 2 of 24 Sep.30.20
RZ/A2M Group RZ/A2M Software Package for GR-MANGO Quick Start Guide

2.3 Serial Terminal

Start a serial terminal program (such as PuTTY, HyperTerminal or Tera Term) using the following
configuration:
Baud Rate: 115200 Data Bits: 8 Parity: None Stop Bits: 1 Flow Control: None COM Port: As shown in Windows™ Device Manager .
R01QS0042EJ0100 Rev.1.00 Page 3 of 24 Sep.30.20
RZ/A2M Group RZ/A2M Software Package for GR-MANGO Quick Start Guide
Select the top
sub-directory.

3. Trying sample application

3.1 Importing Software Package into IDE

This package is distributed as an archive file. Build project of this package can be imported into e2 studio from the Project Import Menu. User can import the project to e section.
Obtain the package to use. Extract the contents of the package. Extract the individual projects to a short path. Launch e
studio from the start menu.
Set the top directory which has each sample project sub-directory for the workspace directory. These
2 steps are shown in Figure 3-1.
studio by the following procedure in this
directory of each sample project
Figure 3-1 e2 studio launching
R01QS0042EJ0100 Rev.1.00 Page 4 of 24 Sep.30.20
RZ/A2M Group RZ/A2M Software Package for GR-MANGO Quick Start Guide
Right-click around this
In the e
studio welcome screen, click ‘Workbench’. This is shown in Figure 3-2.
Figure 3-2 Position of ‘Workbench’ switch
Right-click in the Project Explorer window and select ‘Import’. This is shown in Figure 3-3.
space.
R01QS0042EJ0100 Rev.1.00 Page 5 of 24 Sep.30.20
Figure 3-3 Selecting ‘Import’
RZ/A2M Group RZ/A2M Software Package for GR-MANGO Quick Start Guide
Under ‘Import’ window, select General > Existing Projects into Workspace and click ‘Next’. This is
shown in Figure 3-4.
Figure 3-4 Menu of ‘Import’ window
Select “Browse” at the right of “Select root directory:”, and “Browse for Folder” dialog box will be
appeared.
Click “OK”. These 2 steps are shown in Figure 3-5.
Figure 3-5 Select root directory
R01QS0042EJ0100 Rev.1.00 Page 6 of 24 Sep.30.20
RZ/A2M Group RZ/A2M Software Package for GR-MANGO Quick Start Guide
Confirm your target proj ec t is checked, then click ‘Finish’. This is shown in Figure 3-6.
(Note: Projects in Figure 3-6 are just sample. From here, please read the project name as your target project name.)
Figure 3-6 Import target project
Now, target projects are imported, and user can see them in the Project Explorer window. This is
shown in Figure 3-7.
Figure 3-7 Confirmation on ‘Project Explorer’ window
R01QS0042EJ0100 Rev.1.00 Page 7 of 24 Sep.30.20
RZ/A2M Group RZ/A2M Software Package for GR-MANGO Quick Start Guide

3.2 Build and Download to target board

Select your target project by left clicking on it, then click the arrow next to build button (hammer icon)
and select ‘HardwareDebug’ from the drop-down menu. From next time, user can build the project by this Build button (hammer icon). This is shown in Figure 3-8.
Figure 3-8 Build the target project
e
studio tool build the project, and the build status can be confirmed in Console window (Note: Please mind the length of your workspace path. If the path is too long, there is a possibility of build error.) This is shown in Figure 3-9.
Figure 3-9 Confirmation build status
R01QS0042EJ0100 Rev.1.00 Page 8 of 24 Sep.30.20
Loading...
+ 18 hidden pages