Skip to content

MCK‐RA8T2 Sample and Demo hardware configuration

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

Followings are hardware connection and test samples for MCK_RA8T2.

  • 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 mck_ra8t2/r7ka8t2lfecac/cm85 <path to test/sample>

For example:

west build -p always -b mck_ra8t2/r7ka8t2lfecac/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
MCK_RA8T2_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
MCK-RA8T2 SCI9 TXD9 PA14
RXD9 PA12

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/mck_ra8t2_r7ka8t2lfecac_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/mck_ra8t2_r7ka8t2lfecac_cm85.overlay

     spibb0: &spi0 {
    	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
MCK-RA8T2 SPI0 MISO0 P609
MOSI0 P115

Hardware connection for I2C sample

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

  • With IIC:

    Connections:

    GY271 MCK-RA8T2
    VCC P3V3
    GND GND
    SCL P205 (SCL1)
    SDA P204 (SDA1)
    DDBY -
  • With SCI I2C: Require "-DDTC_OVERLAY_FILE" and "-DCONF_FILE" to use SCI I2C in build command:

    Connections:

    GY271 MCK-RA8T2
    VCC P3V3
    GND GND
    SCL P603 (SCL0)
    SDA P602 (SDA0)
    DDBY -

    CM85:

    west build -p always -b mck_ra8t2/r7ka8t2lfecac/cm85 tests/drivers/i2c/i2c_api -DDTC_OVERLAY_FILE=boards/mck_ra8t2_r7ka8t2lfecac_cm85_sci_b_i2c.overlay -DCONF_FILE="boards/mck_ra8t2_r7ka8t2lfecac_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 SDHC samples

Require: PMOD SD (https://digilent.com/reference/pmod/pmodsd/start)

Connections:

Board Channel Pin
MCK-RA8T2 SDMMC0 P111 (DAT3)
PD04 (CMD)
PD03 (DAT0)
PD05 (CLK)
PD02 (DAT1)
PD01 (DAT2)
PD07 (CD)
PD06 (WP)

Please aware that connect PMOD: use short wiring connections (should be shorter than 10cm).

ztest (tests/drivers/disk/disk_access): Require "--shield pmod_sd" in build command:

  • CM85:

    west build -p always -b mck_ra8t2/r7ka8t2lfecac/cm85 --shield pmod_sd tests/drivers/disk/disk_access
    

ztest (tests/drivers/disk/disk_performance): Require "--shield pmod_sd" in build command:

  • CM85:

    west build -p always -b mck_ra8t2/r7ka8t2lfecac/cm85 --shield pmod_sd tests/drivers/disk/disk_performance
    

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
MCK-RA8T2 PWM9 P612 GTIOC9A PWM output
PWM6 P601 GTIOC6A 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 mck_ra8t2/r7ka8t2lfecac/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 mck_ra8t2/r7ka8t2lfecac/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 mck_ra8t2/r7ka8t2lfecac/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 mck_ra8t2/r7ka8t2lfecac/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 mck_ra8t2/r7ka8t2lfecac/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
MCK-RA8T2 IPORT6 GPIO P614
ACMPHS0 IVCMP0 P805

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