Gadget Renesas

Linking Ideas and Electronics

Item

GR-ADZUKI Special Project

Arduino Sketch Using IDE for GR!

Overview

This article describes how to create a GR-ADZUKI sketch (also called a “program”) using IDE for GR which allows you to program using the same operations as Arduino IDE.
By downloading IDE for GR, you can create a sketch without Internet connection.

Preparation

Hardware


You will need a GR-ADZUKI board and a USB cable (micro B type). Make sure both slide switches on the GR-ADZUKI board are set to USB and Sketch, correspondingly.

login login


Software

First, download IDE for GR. If using Windows, decompress the zip file. If using Mac, open the DMG file and register as an application. IDE4GR will be added to Finder as an application.

 

Protocol

1. Startup IDE for GR

For Windows, execute the ide4gr.exe file from the decompress folder.
For Mac, execute the IDE4GR file from the Finder application.

IDE4GR


2. 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



3. MCU board selection

From the menu, select Tools → MCU Board → GR-ADZUKI.

login



4. Select serial board

From the menu, select Tools → Serial Board.
When using Windows you can confirm the port number using the device manager, or you can continue as is and change the port if an error occurs when you write the sketch to the MCU.

login



5. Loading the sample program

Now let’s try executing the sample program. From the menu, go to File → Sketch sample→ 03.Analog, and select “Fading.” A screen showing the written sample sketch will then be displayed.

IDE4GR



6. Compiling and writing the sketch

Select the arrow as is shown in the screen here. This will start compiling the program and continue on to write the program to the MCU.
If you get an error message, follow these steps:
・Click the Write (arrow) 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.)
・Has the correct serial port been selected?
・Are the GR-ADZUKI slide switches correctly set to USB and Sketch?
・Is the USB cable firmly inserted?

login



7. Congratulations!

LED9 on GR-ADZUKI should turn on when the Write process is complete.
Try out more samples, change the LED number, etc. Have fun!

 

share