Skip to content

EK‐RA8D2 Sample and Demo Hardware configuration

Duy Nguyen edited this page Nov 26, 2025 · 2 revisions

Followings are hardware connection and test samples for EK_RA8D2.

  • Note: Following test/samples are running on CM85 core only. CM33 support and Multicore support are in-progress.

How to build samples with CM85 core:

west build -p always -b ek_ra8d2/r7ka8d2kflcac/cm85 <path to test/sample>

For example:

west build -p always -b ek_ra8d2/r7ka8d2kflcac/cm85 samples/drivers/uart/echo_bot

Use Debug On-Board

Jumper Configurations
J6 Jumper on pins 2-3
J8 Jumper on pins 1-2
J9 Jumper on pins 2-3
J29 Jumpers on pins 1-2, 3-4, 5-6, 7-8
EK_RA8D2_Debug_connection

Set the configuration switches (SW4) on the EK-RA8D2 board as below:

SW4-1 PMOD1 SW4-2 PMOD1 SW4-3 Octo-SPI (OFF is Active) SW4-4 Arduino / mikroBUS SW4-5 I2C/I3C SW4-6 MIPI SW4-7 USBFS SW4-8 USBHS
OFF OFF OFF OFF OFF OFF OFF OFF

Hardware connection for UART samples

echo_bot (samples/drivers/uart/echo_bot): No additional connection.

zTest (tests/drivers/uart/uart_basic_api): No additional connection.

zTest (tests/drivers/uart/uart_async_api): Loopback for TXD and RXD

Loopback for TXD and RXD

Board Channel Pin function Pin
EK-RA8D2 SCI8 TXD8 PD02
RXD8 PD03

Hardware connection for SPI samples

spi_bitbang (samples/drivers/spi_bitbang): Loopback for MISO and MOSI

  • Note: The purpose of testing sample spi_bitbang on RA boards is to provide users with an understanding of the RA SPI driver. To test this sample using the SPI hardware IP, you can configure it by adding the overlay and configuration files with the following content:

    samples/drivers/spi_bitbang/boards/ek_ra8d2_r7ka8d2kflcac_cm85.conf

    CONFIG_STDOUT_CONSOLE=y
    CONFIG_SPI=y
    CONFIG_SPI_B_INTERRUPT=y
    CONFIG_SPI_B_RA_DTC=y
    CONFIG_LOG=y
    CONFIG_SPI_BITBANG=n
    
    • Note: We have to disable the CONFIG_SPI_BITBANG since we use SPI hardware IP to test spi_bitbang.

    samples/drivers/spi_bitbang/boards/ek_ra8d2_r7ka8d2kflcac_cm85.overlay

     spibb0: &spi1 {
    	rx-dtc;
    	tx-dtc;
    	pinctrl-0 = <&spi1_default>;
    	pinctrl-names = "default";
    	cs-gpios = <&ioport1 3 GPIO_ACTIVE_LOW>;
    	status = "okay";
    };
    
    &ioport1 {
    	status = "okay";
    };
    

zTest (tests/drivers/spi/spi_loopback): Loopback for MISO and MOSI

Loopback for MISO and MOSI

Board Channel Pin function Pin
EK-RA8D2 SPI1 MISO1 P100
MOSI1 P101

Hardware connection for I2C sample

zTest (tests/drivers/i2c/i2c_api): Require GY-271 QMC5883L module

  • With IIC:

    Connections:

    GY271 EK-RA8D2
    VCC P3V3
    GND GND
    SCL P512 (SCL1)
    SDA P511 (SDA1)
    DDBY -
  • With SCI I2C: Require "-DDTC_OVERLAY_FILE" and "-DCONF_FILE" to use SCI I2C in build command:

    Connections:

    GY271 EK-RA8D2
    VCC P3V3
    GND GND
    SCL P602 (SCL0)
    SDA P603 (SDA0)
    DDBY -

    CM85:

    west build -p always -b ek_ra8d2/r7ka8d2kflcac/cm85 tests/drivers/i2c/i2c_api -DDTC_OVERLAY_FILE=boards/ek_ra8d2_r7ka8d2kflcac_cm85_sci_b_i2c.overlay -DCONF_FILE="boards/ek_ra8d2_r7ka8d2kflcac_cm85_sci_b_i2c.conf"
    

Hardware connection for can samples

zTest (tests/drivers/can/api): No additional connection.

zTest (tests/drivers/can/timing): No additional connection.

Hardware connection for PWM (GPT) samples

zTest (tests/drivers/pwm/pwm_api): No additional connection.

zTest (tests/drivers/pwm/pwm_loopback): Loopback 2 channels (1 PWM output, 1 PMW capture)

Board Channel Pin Pin function Remark
EK-RA8D2 PWM1 P105 GTIOC1A PWM output
PWM10 P810 GTIOC10A PWM capture

Hardware connection for Counter (AGT) samples

Counter Alarm (samples/drivers/counter/alarm): No additional connection.

Hardware connection for Display samples

Connect the Parallel Graphics Expansion Board 1 (included in the kit) to J1 of EK-RA8D2.

LVGL demos (samples/modules/lvgl/demos): Require information of display shield in build command:

  • CM85:

    west build -b ek_ra8d2/r7ka8d2kflcac/cm85 samples/modules/lvgl/demos/ -T sample.modules.lvgl.demos.rtklcdpar1s00001be -p
    

Hardware connection for ULPT tests

ztest (tests/kernel/timer/timer_api): Require "-DCONFIG_RENESAS_RA_ULPT_TIMER=y" in build command:

  • CM85:

    west build -b ek_ra8d2/r7ka8d2kflcac/cm85 tests/kernel/timer/timer_api -p -DCONFIG_RENESAS_RA_ULPT_TIMER=y
    

ztest (tests/kernel/timer/timer_behavior): Require "-DCONFIG_RENESAS_RA_ULPT_TIMER=y" in build command:

  • CM85:

    west build -b ek_ra8d2/r7ka8d2kflcac/cm85 tests/kernel/timer/timer_behavior -p -DCONFIG_RENESAS_RA_ULPT_TIMER=y
    

ztest (tests/kernel/timer/timer_timepoints): Require "-DCONFIG_RENESAS_RA_ULPT_TIMER=y" in build command:

  • CM85:

    west build -b ek_ra8d2/r7ka8d2kflcac/cm85 tests/kernel/timer/timer_timepoints -p -DCONFIG_RENESAS_RA_ULPT_TIMER=y
    

ztest (tests/kernel/timer/timer_error_case): Require "-DCONFIG_RENESAS_RA_ULPT_TIMER=y" in build command:

  • CM85:

    west build -b ek_ra8d2/r7ka8d2kflcac/cm85 tests/kernel/timer/timer_error_case -p -DCONFIG_RENESAS_RA_ULPT_TIMER=y
    

ztest (tests/kernel/timer/timer_monotonic): Require "-DCONFIG_RENESAS_RA_ULPT_TIMER=y" in build command:

  • CM85:

    west build -b ek_ra8d2/r7ka8d2kflcac/cm85 tests/kernel/timer/timer_monotonic -p -DCONFIG_RENESAS_RA_ULPT_TIMER=y
    

Hardware connection for LPM test

ztest (tests/subsys/pm/power_mgmt_soc): No additional connection.

Hardware connection for comparator (ACMPHS) test and sample

ztest (tests/drivers/comparator/gpio_loopback): Loopback GPIO pin with Analog voltage input pin for comparator (IVCMPn)

Board Channel Pin function Pin
EK-RA8D2 IPORT0 GPIO P014
ACMPHS0 IVCMP0 P015

Home

Getting started guide

Supported MCU/MPU family

Samples and Demo Hardware Configuration Reference

RA Sample and Demo Hardware configuration
RX Sample and Demo Hardware configuration
RZ Sample and Demo Hardware configuration

Clone this wiki locally