Skip to content

Quick_Start_Guide_Arduino_IDE_Ver2_Linux

SuguruHarada64 edited this page Jul 1, 2024 · 4 revisions

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.

    The "Download raw file" button on github.com

    • 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”

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.
OpenBoardManeger
  • In the text entry box, enter "rl78" and perform a search, then click the Install button.
InputBoardManeger
  • 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".
SelectBlinkSkech

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"
SelectPortNumber
  • Select the board in Arduino IDE.
    • Select "Tools" → "Board" → Select board to use.
SelectBoard

Compiling, Uploading, and Running Sketch

  • In Arduino IDE, select "Sketch" → "Upload" to compile and upload the sketch.
CompileAndUpload
  • When the upload completes, the sketch runs and the LED flashes at 1.0-second intervals.
Clone this wiki locally