Quick_Start_Guide_Arduino_IDE_Ver2_macOS - 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 “macOS Apple Silicon, 11: “Big Sur” or newer, 64 bits”
- At the time this Quick Start Guide was created, operation had been confirmed with version “Arduino IDE 2.3.4”
- The example below describes the procedure for “macOS Apple Silicon, 11: “Big Sur” or newer, 64 bits”
- 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/cu.usbserial-XXX"
- 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.
If build errors occur
-
If the error message is “bad CPU type in executable".
- Execute the following commands in a terminal window.
softwareupdate --install-rosetta
- Execute the following commands in a terminal window.
-
If the error message is “Library not loaded: /opt/homebrew/opt/zstd/lib/libzstd.1.dylib".
- Execute the following commands in a terminal window.
brew install zstd
- If you cannot use the brew command, install Homebrew from https://brew.sh/.
- Execute the following commands in a terminal window.