Gadget Renesas

Linking Ideas and Electronics

Item

TOP

GR-LYCHEE Special

Arduino Sketch with Web Compiler

Overview

This page shows you how to create GR-LYCHEE's sketch (program) with the web compiler. It is available on Windows and Mac.

Preparation

Prepare GR-LYCHEE, USB cable (micro B type).

login
login

 

Procedure

1. Logging in to the web compiler

Login to Web Compiler from the top page of GADGET RENESAS.
When you click the below image, the page is displayed on other tab page.
Then click [Log In] or [Guest Log In]. If you chose the guest login, your sketch is removed when log out.

login


Fill with your MyRenesas account and click [Sign in], when you entered from [Log In].

login



2. Create a New Project

To create a project, click the "+" button as below. If you log in at the first time, skip this procedure.

login


Select an appropriate template, such as GR-LYCHEE_Sketch_Vxxx.zip, where xxx indicates the version. Since there are many templates, entering "lychee" in the filter makes it easier to find. After selecting the template, give the project name as appropriate and click "Create Project".

login



3. Displaying your sketch

Selecting the "Create Project" brings you to the Web Compiler IDE window. Click "gr_sketch.cpp" file under the explore menu. The source code of the file will appear in the right window. This is the sample code that will drive the LED on GR-LYCHEE.

login



4. Build the code

Since the code shown on the screen is a working sample, you don't need to debug the code. To build the code, click the "Execute Build" icon on the right navigation menu shown below. This should show you "The Compilation Is Complete" pop-up.
Note that it takes a little time to build at the first time because of compilation of all source files.

login


When the build is OK, the pop-up screen shows "Make process completed" at the bottom of screen. Then click the close button.

login



5. Download the sketch

When the build is successfully completed, Web Compiler creates binary file "lychee_sketch.bin" under the .CPP file shown below. Move the mouse onto the bin file and click the right click - that shows the pop-up menu below. Then click "Download" menu.

login



6. Connect GR-PEACH

Connect GR-PEACH to PC with USB cable.

login


GR-LYCHEE is displayed as a USB storage named "MBED".

login



7. Flashing (Copy program to GR-LYCHEE)

Copy & Paste the lychee_sketch.bin to the storage.

login



8. Execute your Sketch

Push the RESET button on GR-LYCHEE. Now the LED on GR-LYCHEE is flashing, isn't it?

login


 

Serial monitor

In the sample program, pressing "UB0" of GR-LYCHEE sends a message to USB. The below is an example using "Tera Term". Serial monitor is useful for viewing program execution status, so please try it.

login


The following is the position of "UB0".

login

 

share