Renesas


Renesas Electronics Corporation (TSE: 6723), the world's number one supplier of microcontrollers, is a premier supplier of advanced semiconductor solutions including microcontrollers, SoC solutions and a broad range of analog and power devices.

GR MANGO Getting Started

Information

This page is for GR-MANGO. If you use other GR-Boards, please find the right page that match your boards.


This page is an introduction to Mbed for one who never touched GR-MANGO nor Mbed site.

Create an Mbed account

You need to create an Mbed account if you don't have one. This step is necessary only at the first time.

  1. Move from https://mbed.org/ to Mbed Classic Developer site. Click "Sign up for free".

    https://os.mbed.com/media/uploads/luyao/1.png

  2. Enter your personal information as the followings. Click the "Sign up" button.

    https://os.mbed.com/media/uploads/luyao/26.png

How to log in

  1. Move to Mbed Classic Developer Site from https://mbed.org/. And click the "Log in or Sign up" button .

    https://os.mbed.com/media/uploads/luyao/4.png

  2. Fill the following fields and click "Log in".

    https://os.mbed.com/media/uploads/luyao/33.png

Add "GR-MANGO" to your Mbed compiler

You can build programs for GR-MANGO by adding "Renesas GR-MANGO" platform to your Mbed compiler.

  1. Move to Platforms page from Developer Site. Click the "Hardware" and "Boards" in sequence.

    https://os.mbed.com/media/uploads/luyao/6.png

  2. Check "Renesas" of Target Vender on the left side, and click "Renesas GR-MANGO" platform.

    https://os.mbed.com/media/uploads/luyao/22.png

Development environment

You can use Mbed CLI (CUI) , Mbed Studio (GUI), or Mbed Online Compiler. Choose your preferred development environment.
You can download the development tools by clicking Mbed site Overview.

https://os.mbed.com/media/uploads/luyao/12.png

When using Mbed Studio(GUI)

1. How to download and Installation
Choose the version suitable for your computer's operating system. Our boards only support for windows users. Please click the "Download for windows" button and download it. Then install Mbed Studio based on your PC.

https://os.mbed.com/media/uploads/luyao/18.png

2.How to import and build in Mbed Studio
Open Mbed Studio, click the "File" button and "Import Program" in order.

https://os.mbed.com/media/uploads/luyao/19.png

Set sample program link on URL form, then click "Add Program".

Attention

If an error such as "Could not create RZ_A2M_Mbed_samples" occurs, please wait for a while. If there is no change for more than 15 minutes, please reopen Mbed Studio.

Select "Target" box to "GR-MANGO".

https://os.mbed.com/media/uploads/luyao/20.png

Click the "Build program" button. The results are created in the BUILD folder.

https://os.mbed.com/media/uploads/luyao/21.png

Notice

You can not debug using Mbed Studio. Use only for build purposes. Debug the elf file created by Mbed Studio using e2studio.
See About custom boot loaders for program writing.
See How to debug using e2studio for program writing.

3.How to set terminal in Mbed Studio
If you want to confirm the serial communication the terminal soft on your PC, please specify the below values.
You can change the baud rate by platform.stio-baud-rate of mbed_app.json.

Baudrate115200
Data bits8bits
Parity bitnone
Stop bit1bit
Flow Controlnone

Attention

SBEV-RZ/A2M and SEMB1402 use the RZ/A2M's USB as the terminal. To use USB for other purposes, delete OVERRIDE_CONSOLE_USBSERIAL macro in mbed_app.json file.

When using Mbed Online comiler

1. Connect your GR-MANGO board to your computer. (The interface is MicroB USB)
https://os.mbed.com/media/uploads/luyao/mm12.png

2. This window will pop up on your computer, double-click "MBED.HTM".

https://os.mbed.com/media/uploads/luyao/28.png

3.You will enter GR-MANGO's homepage, click the "Compiler" in the upper right corner to enter the compiler page.

https://os.mbed.com/media/uploads/luyao/29.png

4. To import the program, you need to take the following actions in Mbed compiler page.

1) Press the "Import" button.
2) Select the "`Programs" tag.
3) Search program which you need.
4) Select the program you want to import.
5) Press the "Import!" button.

https://os.mbed.com/media/uploads/luyao/30.png

6) Choose whether to update according to your needs. Click the "Import" button.

https://os.mbed.com/media/uploads/luyao/31.png

Attention

Do not check "Update all libraries to the latest version" if you want to import the program in the environment in which the writer of the program published it. But if you want to use the latest version of the libraries, please check "Update all libraries to the latest version."

5. After you import the program, you need to select the GR-MANGO platform and then click the "Compile" button.

https://os.mbed.com/media/uploads/luyao/32.png

When using Mbed CLI (CUI)

The basic workflow for Mbed CLI is to:

1) Initialize a new repository, for either a new application (or library) or an imported one. In both cases, this action also adds the Mbed OS codebase.
2) Build the application code.
3) Test your build.
4) Publish your application.

For more information, please view Using Mbed CLI


All wikipages