Skip to content
Luong Minh Thao edited this page May 9, 2024 · 19 revisions

Welcome to the zephyr wiki!

Devices IOPORT (GPIO) UART SPI Flash ULPT (timer) LPM (system power management) CGC (clock control) DTC RSIP (TRNG - Entropy) CAN QSPI ADC GPT (pwm) AGT (counter) I2C USB-FS USB-HS MIPI-DSI Ethernet
EK-RA8M1 Support Support Support Support Support Support Support Support Support Planning Planning Planning Planning Planning Planning Planning Planning Planning Planning
EK-RA8D1 Support Support Support Support Support Support Support Support Support Planning Planning Planning Planning Planning Planning Planning Planning Planning Planning
MCK-RA8T1 Support Support Support Support Support Support Support Support Support Planning Planning Planning Planning Planning Planning Planning Planning Planning Planning
RA6 devices Planning Planning Planning Planning Planning Planning Planning Planning Planning Planning Planning Planning Planning Planning Planning Planning Planning Planning Planning
RA4 devices Planning Planning Planning Planning Planning Planning Planning Planning Planning Planning Planning Planning Planning Planning Planning Planning Planning Planning Planning
RA2 devices Planning Planning Planning Planning Planning Planning Planning Planning Planning Planning Planning Planning Planning Planning Planning Planning Planning Planning Planning
  • Repository branches information
Branch name Information
ra8-support-PR1.3 (latest) Support RA8 devices and drivers described in Support RA MCU Devices & Drivers
ra8-support-PR1.2 Support EK-RA8M1 and UART only
  • Getting Started:

This getting started guide for Ubuntu environment (20.04 LTS), for other environments, please visit Zephyr Getting Started

  1. Install dependencies

    wget https://apt.kitware.com/kitware-archive.sh

    sudo bash kitware-archive.sh

    sudo apt install --no-install-recommends git cmake ninja-build gperf \ ccache dfu-util device-tree-compiler wget \ python3-dev python3-pip python3-setuptools python3-tk python3-wheel xz-utils file \ make gcc gcc-multilib g++-multilib libsdl2-dev libmagic1

    Verify the versions of the main dependencies installed on your system

    cmake --version

    python3 --version

    dtc --version

    Tools Min. Version
    CMake 3.20.5
    Python 3.10
    Devicetree compiler 1.4.6
  2. Get Zephyr and install Python dependencies

    • Install west, and make sure ~/.local/bin is on your PATH environment variable:

      pip3 install --user -U west

      echo 'export PATH=~/.local/bin:"$PATH"' >> ~/.bashrc

      source ~/.bashrc

    • Get the Zephyr source code

      west init -m https://github.com/renesas/zephyr.git --mr ra8-support-1.3 ~/zephyrproject

      cd ~/zephyrproject

      west update

    • Export a Zephyr CMake package. This allows CMake to automatically load boilerplate code required for building Zephyr applications

      west zephyr-export

    • Install additional Python dependencies

      pip3 install --user -r ~/zephyrproject/zephyr/scripts/requirements.txt

  3. Install the Zephyr SDK

    • Download and verify the Zephyr SDK bundle

      Note: Support from SDKv0.16.6 only

      cd ~

      wget https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v0.16.6/zephyr-sdk-0.16.6_linux-x86_64.tar.xz

      wget -O - https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v0.16.6/sha256.sum | shasum --check --ignore-missing

    • Extract the Zephyr SDK bundle archive:

      tar xvf zephyr-sdk-0.16.6_linux-x86_64.tar.xz

    • Run the Zephyr SDK bundle setup script:

      cd zephyr-sdk-0.16.6 ./setup.sh

    • Install udev rules, which allow you to flash most Zephyr boards as a regular user

      sudo cp ~/zephyr-sdk-0.16.6/sysroots/x86_64-pokysdk-linux/usr/share/openocd/contrib/60-openocd.rules /etc/udev/rules.d

      sudo udevadm control --reload

  4. Build the Blinky Sample

    • For EK-RA8M1

      cd ~/zephyrproject/zephyr

      west build -p always -b ek_ra8m1 samples/basic/blinky

    • For EK-RA8D1

      cd ~/zephyrproject/zephyr

      west build -p always -b ek_ra8d1 samples/basic/blinky

    • For MCK-RA8T1

      cd ~/zephyrproject/zephyr

      west build -p always -b mck_ra8m1 samples/basic/blinky

  5. Flash the Sample

    west flash