Quick_Start_Guide_Arduino_IDE_Ver2_Linux - renesas/Arduino GitHub Wiki
Set udev rules for Renesas RL78 boards on Linux
-
You can set the udev rules by running
post_install.sh
as root. -
Follow these steps:
-
Go to the GitHub.
-
Download the file to your computer.
- Open your Download folder in Terminal:
-
On Ubuntu: Open the Files application and navigate to your Download folder. Right-click on an empty area inside the folder (not on a file) and select Open in Terminal.
-
Open Terminal, and navigate to your Download folder:
cd ~/Downloads
-
Run this command:
chmod +x post_install.sh
sudo ./post_install.sh
-
If prompted, enter your password, and press Enter again.
-
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 βLinux ZIP file 64 bits (x86-64)β
- At the time this Quick Start Guide was created, operation had been confirmed with version βArduino IDE 2.3.2β
- The example below describes the procedure for βLinux ZIP file 64 bits (x86-64)β
- Download the version of Arduino IDE that matches the type of PC you are using.
Launching Arduino IDE
- Unzip the ZIP file and double-click the icon to launch the Arduino IDE.
Using Boards Manager to Install Tools
- Select Board Manager Icon.
- In the text entry box, enter "rl78" and perform a search, then click the Install button.
- The compiler, Arduino library for 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.
- Select "File" β "Examples" β "01.Basics" β "Blink".
Hardware Setup
-
Connect the PC to the RL78/G23-64p Fast Prototyping Board using a USB cable.
-
Configure the port number setting in Arduino IDE.
- Select "Tools"β"Port"β"/dev/ttyUSB0"
- Select the board in Arduino IDE.
- Select "Tools" β "Board" β Select board to use.
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.