Arduino Sketch with Web Compiler
This page shows you how to create GR-LYCHEE's sketch (program) with the web compiler. It is available on Windows and Mac.
Prepare GR-LYCHEE, USB cable (micro B type).
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.
Fill with your MyRenesas account and click [Sign in], when you entered from [Log In].
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.
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".
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.
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.
When the build is OK, the pop-up screen shows "Make process completed" at the bottom of screen. Then click the close button.
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.
6. Connect GR-PEACH
Connect GR-PEACH to PC with USB cable.
GR-LYCHEE is displayed as a USB storage named "MBED".
7. Flashing (Copy program to GR-LYCHEE)
Copy & Paste the lychee_sketch.bin to the storage.
8. Execute your Sketch
Push the RESET button on GR-LYCHEE. Now the LED on GR-LYCHEE is flashing, isn't it?
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.
The following is the position of "UB0".