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://os.mbed.com/ 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/73.png

  3. Click "Add to your Mbed compiler" on the right side.
    https://os.mbed.com/media/uploads/luyao/75.png

Development environment

You can use Mbed Studio (GUI) , Mbed Online Compiler or Mbed CLI (CUI). 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 new and build program in Mbed Studio
Open Mbed Studio, click the "File" button and "New Program" in order.

https://os.mbed.com/media/uploads/luyao/42_kmT6HB4.png

Select sample program on form, then click "Add Program".

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

Attention

If an error such as "Could not create mbed-os-example-blinky" 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/50.png



Click the "Build program" and "Run Program" button i order. The results are created in the BUILD folder.

https://os.mbed.com/media/uploads/luyao/45.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

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/41.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/35.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/46.png

6.The bin file will be created. You can drop and drug the file to MBED drive to achieve the program.

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

When using Mbed CLI (CUI)

You can download the Mbed CLI Installer on Mbed homepage. 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

Let's blink LED!!

You can achieve program by Mbed Studio, Online Compiler or Mbed CLI. We introduce the use of Online Compiler here.

  1. Connect GR-MANGO to your PC and wait until the "MBED" drive appears.
  2. Click mbed-os-example-blinky" to import program to your online compiler.
  3. Build and run blinky program. You can refer to "When using Mbed Online comiler" in more detail.
  4. After generating the bin file, drop and drug the file to MBED drive.
  5. When GR-MANGO's reset button as below is pushed or reconnect USB cable, the program runs. https://os.mbed.com/media/uploads/luyao/49.png

Refer the more samples from our website:


All wikipages