Gadget Renesas

Linking Ideas and Electronics

Item

GR-ADZUKI Special Project

Sketch Using a Web Compiler

Overview

This article describes how to create a GR-ADZUKI sketch (also called a “program”) using a web compiler with either Windows and Mac.

Preparation

You will need a GR-ADZUKI board and a USB cable (micro B type). As shown in the photo here, make sure the slide switch on upper half of the board is set to USB and the slide switch on the lower half of the board is set to Sketch.

login login

 

Protocol

1. Logging into the web compiler

Log into the web compiler from the Gadget Renesas top page.
Click on the page below and the top page will be displayed in a new tab.

login


Enter your MyRenesas account information and click Sign In.

login



2. Creating the project

Use the button as shown here to create your new project. Those logging in for the first time should skip this.

login


As shown on the screen here, select GR-ADZUKI_Sketch_xxx.zip (xxx indicates the version you are using), input a suitable project name and click Create Project.

login



3. Sketch display

This brings you the Create Project page. Double-clicking on gr_sketch.cpp in the Explore area to the left will bring up a program.
This is the sketch (program) used to operate GR-ADZUKI.

login



4. Building a sketch (creating files to compile and write)

This window is used for writing a program. The sample program for lighting the LED on GR-ADZUKI is already completed.
Click Execute Build in the navigation area to the right of the screen. After the build is successfully completed, you will see the phrase Compile is Complete.
Note that the first build for a newly created project or sketch takes longer than normal, because all of the files are being compiled.

login


As shown here, the results of the build will be displayed in the screen. If the program is successful, the page will indicate that Compile is complete. Click Close to close the page.

login



5. Downloading the sketch (storing the file to be written to the computer)

If the build is successful, an adzuki_sketch.bin file will be created. Next, open the context menu above the file name and choose Download to download the sketch to your computer.

login



6. Download KurumiWriter (software to write the sketch)

Download the KurumiWriter to your PC; this is the software that will enable you to write the GR-ADZUKI sketch. Download KurumiWriter for Windows or Mac as listed below, and decompress the zip file on your PC. If using a Mac, the file will be automatically decompressed and added to your application folder.

Click one of the following links to start downloading the software.

KurumiWriter 2.1(Windows)

KurumiWriter 2.1(Mac)



7. Connect GR-ADZUKI and the PC with the USB cable

Connect GR-ADZUKI to your computer with a USB cable.
If you see a message that the USB driver cannot be located, obtain a USB driver from the FTDI website and confirm that your computer acknowledges it.

login



8. KurumiWriter activation

Activate the KurumiWriter.

(Windows)

login


(Mac)

login



9. Configuring KurumiWriter

Configure KurumiWriter as follows:
Serial Port: USB Serial Port (COM **) (for Windows) or /dev/cu.serial-*** (for Mac)
Baud Rate: 500,000 bps (or 112,500 bps)
File: Select adzuki_sketch.bin that was downloaded from the web compiler

(Windows)

login

(Mac)

login



10. Writing the sketch

Click Write on KurumiWriter to start the write process.
If you get an error message, follow these steps:
・Click the Write button again. Does anything change?
 (A communication error message due to timing may appear if a sketch that implements serial communication has already been sent.)
・Does the write process start when the baud rate is 112,500 bps?
  (The transmission speed can be too slow even when using a data communications cable.)
・Are the GR-ADZUKI slide switches correctly set to USB and Sketch?
・Is the USB cable firmly inserted?

(Windows)

login

(Mac)

login



11. Congratulation!

The LED on GR-ADZUKI should turn on when the Write process is complete.
Gently shake the GR-ADZUKI board. Do you see how the LED lights up in the shape of a heart?!

 

share