Quick_Start_Guide_RL78G15_Fast_Prototyping_Board - renesas/Arduino GitHub Wiki
Installing Arduino IDE
- https://www.arduino.cc/en/software
- Download the version of Arduino IDE that matches the type of PC you are using.
- The example below describes the procedure for “Windows Win 7 and newer.”
- At the time this Quick Start Guide was created, operation had been confirmed with version “Arduino IDE 1.8.19.”
- The example below describes the procedure for “Windows Win 7 and newer.”
- Download the version of Arduino IDE that matches the type of PC you are using.
Launching Arduino IDE
- Double-click the icon on the desktop to launch Arduino IDE.
Specifying the Board Manager File for the RL78/G15 Fast Prototyping Board
- Select File → Preferences and specify the following for Additional Boards Manager URLs:
Using Boards Manager to Install Tools
- Select Tools → Boards: “Arduino Uno” → Boards Manager….
-
- In the text entry box to the right of Type All, enter RL78 and perform a search, then click the Install button.
- In the text entry box to the right of Type All, enter RL78 and perform a search, then click the Install button.
-
- The compiler, Arduino library for RL78/G15 Fast Prototyping Board, and board programming tool are downloaded and installed in Arduino IDE.
Writing a sketch to make an LED flash at 1.0-second intervals.
- Enter the following source code into the source code editor (sketch_date tab) of Arduino IDE.
void setup() {
// put your setup code here, to run once:
pinMode(4,OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
digitalWrite(4,HIGH);
delay(1000);
digitalWrite(4,LOW);
delay(1000);
}
Hardware Setup
-
Connect the PC to the RL78/G15 Fast Prototyping Board using a USB cable.
-
Use Device Manager to confirm which COM port number has been recognized.
-
Configure the COM port number setting in Arduino IDE.
-
Select the board in Arduino IDE.
- Select Tools → Boards: “Arduino Uno”→ Renesas RL78/G15 → RL78-G15 Fast Prototyping Board 64Pin.
- Select Tools → Boards: “Arduino Uno”→ Renesas RL78/G15 → RL78-G15 Fast Prototyping Board 64Pin.
Compiling, Uploading, and Running Sketch
- In Arduino IDE, select Sketch → Upload to compile and upload the sketch.
- When the upload completes, the sketch runs and the LED flashes at 1.0-second intervals.