Skip to content

EK‐RA8M2 Sample and Demo Hardware configuration

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

Followings are hardware connection and test samples for EK_RA8M2.

  • 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_ra8m2/r7ka8m2jflcac/cm85 <path to test/sample>

For example:

west build -p always -b ek_ra8m2/r7ka8m2jflcac/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_RA8M2_Debug_connection

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-RA8M2 SCI2 TXD2 PD02
RXD2 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_ra8m2_r7ka8m2jflcac_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_ra8m2_r7ka8m2jflcac_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-RA8M2 SPI1 MISO1 P709
MOSI1 P708

Hardware connection for I2C sample

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

  • With IIC:

    Connections:

    GY271 EK-RA8M2
    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-RA8P1
    VCC P3V3
    GND GND
    SCL P610 (SCL0)
    SDA P609 (SDA0)
    DDBY -

    CM85:

    west build -p always -b ek_ra8m2/r7ka8m2jflcac/cm85 tests/drivers/i2c/i2c_api -DDTC_OVERLAY_FILE=boards/ek_ra8m2_r7ka8m2jflcac_cm85_sci_b_i2c.overlay -DCONF_FILE="boards/ek_ra8m2_r7ka8m2jflcac_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-RA8M2 PWM1 P509 GTIOC1A PWM output
PWM10 P810 GTIOC20A PWM capture

Hardware connection for Counter (AGT) samples

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

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_ra8m2/r7ka8m2jflcac/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_ra8m2/r7ka8m2jflcac/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_ra8m2/r7ka8m2jflcac/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_ra8m2/r7ka8m2jflcac/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_ra8m2/r7ka8m2jflcac/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-RA8M2 IPORT6 GPIO P007
ACMPHS0 IVCMP3 P001

Renesas comparator (samples/boards/renesas/comparator): Connect SW1 to Analog voltage input pin for comparator (IVCMPn)

Board Channel Pin function Pin
EK-RA8M2 SW1 User push-button P009
ACMPHS0 IVCMP3 P001

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