Environment Setup

Download and Install Arduino IDE

  1. Go to the Arduino official website and download the installer for your operating system: Arduino IDE

Note

If the download speed is slow or fails, you can visit the Arduino Chinese Community to download the installer from their cloud storage.

  1. Run the installer. It is recommended to use the default settings during installation, and choose an English-only path for installation.

Note

An installation path containing non-ASCII characters may cause unexpected issues.

Get Familiar with Arduino IDE

The Arduino IDE interface is shown in the figure below:

../../_images/ide_if.svg

Configure Arduino IDE (Optional)

  • On first launch, the IDE may automatically download and install Arduino built-in core libraries and drivers. If the operating system prompts for driver installation or network security warnings, it is recommended to allow them. During this process, the output window will display download and installation messages, as shown below. This is normal — just wait for the installation to complete, no action required.

../../_images/ide_first_open.png
  • Arduino IDE displays in English by default but supports switching to Chinese. Click File > Preferences… to open Settings, set Language to 中文(简体), then click OK, as shown below. Arduino IDE will automatically restart and switch to the Chinese interface.

../../_images/file_preferences_language.png
  • To change the sketchbook folder path, go to File > Preferences… and modify the Sketchbook location, as shown below.

../../_images/file_preferences_sketch_folder.png
  • In addition, you can also configure font size, interface zoom, theme style, verbose output, and more.

Install Ameba Boards Package

To develop on Ameba boards using Arduino IDE, you need to install the Ameba boards package.

Note

If installation through Arduino IDE fails, you can try manual installation.

Install via Arduino IDE:
  1. Open Arduino IDE, click File > Preferences…, and paste the following URL into the Additional boards manager URLs field:

https://github.com/Kyderio/arduino_test/raw/master/Arduino_package/package_realtek_test_index.json
../../_images/additional_boards_manager_urls.png
  1. Go to Tools > Board > Boards Manager… or click the Boards Manager icon on the sidebar. Enter realtek in the search box, find Realtek Ameba EVB from the search results, select the desired version from the dropdown menu, and click INSTALL, as shown in the figure below. Arduino IDE will start downloading and installing the required files.

../../_images/boards_manager_install.png

Select Board

After the boards package is installed, select the board (e.g., EV721FC0) via Tools > Board > Realtek Ameba EVB > EV721FC0 (RTL8721FCM), as shown below:

../../_images/select_board.png

Install Libraries (Optional)

An Arduino “Library” is a collection of code that encapsulates specific functions, allowing reuse across multiple projects and avoiding the need to rewrite complex code. Libraries typically include specialized algorithms, hardware drivers, communication protocols, and other functional modules. Developers can call them directly to quickly implement features such as sensor control, screen display, and network communication. All libraries can be found in the Arduino Libraries Reference.

Via Library Manager:
  1. In the menu bar, click Tools > Manage Libraries… or click the Library Manager icon on the sidebar.

  2. Enter the library name in the search box. Related libraries will appear in the search results. Check the description and author information of the library to find the one you need. Select the desired version from the dropdown menu, and click INSTALL, as shown in the figure below:

../../_images/lib_manager_install.png
  1. Arduino IDE will automatically create a libraries folder under the sketchbook folder to store the downloaded libraries. To change the storage location, please refer to Change sketchbook folder.

Hardware Environment Setup

  1. Ameba boards adopt a multi-functional composite interface design that integrates power supply, program upload, and log printing into a single interface, greatly simplifying hardware connection. Check the corresponding Boards Guide to confirm the location of the USB Type-C interface. Connect the board to the computer via a USB Type-C to Type-A cable.

Note

If this is the first time the board is connected to the computer, the USB driver will be installed automatically. If you encounter driver issues when connecting the board to the computer, please install the USB driver manually.

  1. Before uploading a program, the Ameba board needs to enter upload mode. Entering upload mode requires operating the DOWNLOAD button and the CHIP_EN button. Check the corresponding Boards Guide to confirm the button locations.

Setup Port

Click Tools > Port, and select the corresponding port from the dropdown menu, as shown below:

../../_images/select_port.png