CPK-RA8T2 Development Kit

Overview

The Renesas CPK-RA8T2 development kit combines the CPKNET-RA8T2 v1.1 core board and the CPKEXP-ECSMCB v1.0 carrier board. Its R7KA8T2LFLCAC MCU has an Arm Cortex-M85 (CPU0) running at up to 1 GHz and a Cortex-M33 (CPU1) running at up to 250 MHz.

Hardware

The core board provides a 24 MHz main crystal, 16 MiB of SDRAM, 32 MiB of QSPI NOR flash, a microSD slot, and an onboard SEGGER J-Link debugger with a virtual serial port.

The carrier provides CAN FD, RS-485, two EtherCAT ports, two motor inverter interfaces, and connectors for Pmod modules and an optional LCD. See the carrier board schematic and the core board hardware guide for the wiring.

Supported Features

The cpk_ra8t2 board supports the hardware features listed below.

on-chip / on-board
Feature integrated in the SoC / present on the board.
2 / 2
Number of instances that are enabled / disabled.
Click on the label to see the first instance of this feature in the board/SoC DTS files.
vnd,foo
Compatible string for the Devicetree binding matching the feature.
Click on the link to view the binding documentation.

cpk_ra8t2/r7ka8t2lflcac/cm33 target

On-target memory for this board target: 640 KiB of RAM, 256 KiB of Flash.

Type

Location

Description

Compatible

CPU

on-chip

ARM Cortex-M33 CPU1

arm,cortex-m33

ADC

on-chip

Renesas RA ADC_B controller1

renesas,ra-adc-b-controller

on-chip

Renesas RA ADC_B scan-group configuration node9

renesas,ra-adc-b-scan-group

on-chip

Renesas RA ADC_B converter unit node2

renesas,ra-adc-b

Audio

on-chip

One channel of the Renesas RA Pulse Density Modulation Interface (PDM-IF)3

renesas,ra-pdm

CAN

on-chip

Renesas RA CANFD controller global1

renesas,ra-canfd-global

on-chip

Renesas RA CANFD controller2

renesas,ra-canfd

Clock control

on-chip

Renesas RA Clock Generation Circuit external clock configuration1

renesas,ra-cgc-external-clock

on-chip

Generic fixed-rate clock provider3

fixed-clock

on-chip

Renesas RA Sub-Clock1

renesas,ra-cgc-subclk

on-chip

Renesas RA Clock Generation Circuit PLL Clock2

renesas,ra-cgc-pll

on-chip

Renesas RA Clock Generation Circuit PLL Clock out line6

renesas,ra-cgc-pll-out

on-chip

Renesas RA Clock Control node pclk block1

renesas,ra-cgc-pclk-block

on-chip

Renesas RA Clock Control Peripheral Clock1214

renesas,ra-cgc-pclk

on-chip

Renesas RA External Bus Clock1

renesas,ra-cgc-busclk

Comparator

on-chip

Renesas RA LVD (Low-voltage detection) Controller4

renesas,ra-lvd

on-chip

Renesas RA ACMPHS (High-Speed Analog COMParator) Global1

renesas,ra-acmphs-global

on-chip

Renesas RA ACMPHS (High-Speed Analog COMParator) Controller4

renesas,ra-acmphs

Counter

on-chip

Renesas RA ULPT Counter2

renesas,ra-ulpt-counter

on-chip

Renesas RA AGT as Counter2

renesas,ra-agt-counter

CRC

on-chip

Renesas RA CRC device1

renesas,ra-crc

DMA

on-chip

Renesas RA DMA Controller1

renesas,ra-dma

Ethernet

on-chip

Renesas RA Ethernet MAC Controller1

renesas,ra-eswm

on-chip

Renesas RA Ethernet MAC Controller2

renesas,ra-ethernet-rmac

on-chip

Renesas RA External MDIO controller2

renesas,ra-mdio-rmac

on-board

Generic MII PHY2

ethernet-phy

Flash controller

on-chip

Renesas RA flash MRAM controller1

renesas,ra-mram-controller

GPIO & Headers

on-chip

Renesas RA GPIO I/O Port14

renesas,ra-gpio-ioport

I2C

on-chip

Renesas RA I2C controller3

renesas,ra-iic

on-chip

Renesas RA SCI-B I2C controller10

renesas,ra-i2c-sci-b

I2S

on-chip

Renesas RA I2S controller2

renesas,ra-i2s-ssie

I3C

on-chip

Renesas RA I3C controller1

renesas,ra-i3c

Input

on-board

Group of GPIO-bound input keys1

gpio-keys

Interrupt controller

on-chip

ARMv8-M NVIC (Nested Vectored Interrupt Controller)1

arm,v8m-nvic

LED

on-board

Group of GPIO-controlled LEDs1

gpio-leds

LIN

on-chip

Renesas RA LIN SCI controller10

renesas,ra-lin-sci-b

Mailbox

on-chip

Renesas IPC MBOX2

renesas,ra-ipc-mbox

Memory controller

on-chip

Renesas RA SDRAM controller1

renesas,ra-sdram

Miscellaneous

on-chip

Renesas RA External Interrupt32

renesas,ra-external-interrupt

on-chip

Renesas RA Ultra-Low Power Timer (ULPT)2

renesas,ra-ulpt

on-chip

Renesas RA AGT2

renesas,ra-agt

on-chip

Renesas RA SCI controller19

renesas,ra-sci

MMU / MPU

on-chip

ARMv8-M MPU (Memory Protection Unit)1

arm,armv8m-mpu

MTD

on-chip

MRAM memory of Renesas RA family2

renesas,ra-nv-mram

OCTOSPI

on-chip

Renesas RA OSPI2

renesas,ra-ospi-b

PHY

on-chip

This binding is to be used by all the usb transceivers which are built-in with USB IP1

usb-nop-xceiv

on-board

Simple GPIO controlled CAN transceiver1

can-transceiver-gpio

Pin control

on-chip

Renesas RA Pin Controller1

renesas,ra-pinctrl-pfs

Power management

on-chip

Renesas RA battery backup domain1

renesas,ra-battery-backup

PWM

on-chip

Renesas RA Pulse Width Modulation14

renesas,ra-pwm

RNG

on-chip

Renesas RA RSIP-E51A TRNG1

renesas,ra-rsip-e50d-trng

RTC

on-chip

Renesas RA RTC1

renesas,ra-rtc

SDHC

on-chip

Renesas RA SDHC2

renesas,ra-sdhc

Serial controller

on-chip

Renesas RA SCI_B UART controller19

renesas,ra8-uart-sci-b

SPI

on-chip

Renesas RA SCI B SPI10

renesas,ra-spi-sci-b

on-chip

Renesas RA8 SPI_B controller2

renesas,ra8-spi-b

SRAM

on-chip

Generic on-chip SRAM2

mmio-sram

Timer

on-chip

ARMv8-M System Tick1

arm,armv8m-systick

on-chip

Renesas RA ULPT TIMER2

renesas,ra-ulpt-timer

USB

on-chip

Renesas RA USB full-speed controller1

renesas,ra-usbfs

on-chip

Renesas RA USB device controller1

renesas,ra-udc

on-chip

Renesas RA USB host controller1

renesas,ra-uhc

Video

on-chip

Renesas RA Capture Engine Unit Driver (ceu)1

renesas,ra-ceu

Watchdog

on-chip

Renesas RA Watchdog (wdt)1

renesas,ra-wdt

cpk_ra8t2/r7ka8t2lflcac/cm85 target

On-target memory for this board target: 1 MiB of RAM, 768 KiB of Flash.

Type

Location

Description

Compatible

CPU

on-chip

ARM Cortex-M85 CPU1

arm,cortex-m85

ADC

on-chip

Renesas RA ADC_B controller1

renesas,ra-adc-b-controller

on-chip

Renesas RA ADC_B scan-group configuration node9

renesas,ra-adc-b-scan-group

on-chip

Renesas RA ADC_B converter unit node2

renesas,ra-adc-b

Audio

on-chip

One channel of the Renesas RA Pulse Density Modulation Interface (PDM-IF)3

renesas,ra-pdm

CAN

on-chip

Renesas RA CANFD controller global1

renesas,ra-canfd-global

on-chip

Renesas RA CANFD controller11

renesas,ra-canfd

Clock control

on-chip

Renesas RA Clock Generation Circuit external clock configuration1

renesas,ra-cgc-external-clock

on-chip

Generic fixed-rate clock provider3

fixed-clock

on-chip

Renesas RA Sub-Clock1

renesas,ra-cgc-subclk

on-chip

Renesas RA Clock Generation Circuit PLL Clock2

renesas,ra-cgc-pll

on-chip

Renesas RA Clock Generation Circuit PLL Clock out line6

renesas,ra-cgc-pll-out

on-chip

Renesas RA Clock Control node pclk block1

renesas,ra-cgc-pclk-block

on-chip

Renesas RA Clock Control Peripheral Clock1313

renesas,ra-cgc-pclk

on-chip

Renesas RA External Bus Clock1

renesas,ra-cgc-busclk

Comparator

on-chip

Renesas RA LVD (Low-voltage detection) Controller4

renesas,ra-lvd

on-chip

Renesas RA ACMPHS (High-Speed Analog COMParator) Global1

renesas,ra-acmphs-global

on-chip

Renesas RA ACMPHS (High-Speed Analog COMParator) Controller4

renesas,ra-acmphs

Counter

on-chip

Renesas RA ULPT Counter2

renesas,ra-ulpt-counter

on-chip

Renesas RA AGT as Counter2

renesas,ra-agt-counter

CRC

on-chip

Renesas RA CRC device1

renesas,ra-crc

DMA

on-chip

Renesas RA DMA Controller1

renesas,ra-dma

Ethernet

on-chip

Renesas RA Ethernet MAC Controller1

renesas,ra-eswm

on-chip

Renesas RA Ethernet MAC Controller2

renesas,ra-ethernet-rmac

on-chip

Renesas RA External MDIO controller2

renesas,ra-mdio-rmac

on-board

Generic MII PHY2

ethernet-phy

Flash controller

on-chip

Renesas RA flash MRAM controller1

renesas,ra-mram-controller

GPIO & Headers

on-chip

Renesas RA GPIO I/O Port410

renesas,ra-gpio-ioport

I2C

on-chip

Renesas RA I2C controller3

renesas,ra-iic

on-chip

Renesas RA SCI-B I2C controller10

renesas,ra-i2c-sci-b

I2S

on-chip

Renesas RA I2S controller2

renesas,ra-i2s-ssie

I3C

on-chip

Renesas RA I3C controller1

renesas,ra-i3c

Input

on-board

Group of GPIO-bound input keys1

gpio-keys

Interrupt controller

on-chip

ARMv8.1-M NVIC (Nested Vectored Interrupt Controller)1

arm,v8.1m-nvic

LED

on-board

Group of GPIO-controlled LEDs1

gpio-leds

LIN

on-chip

Renesas RA LIN SCI controller10

renesas,ra-lin-sci-b

Mailbox

on-chip

Renesas IPC MBOX2

renesas,ra-ipc-mbox

Memory controller

on-chip

Renesas RA SDRAM controller1

renesas,ra-sdram

Miscellaneous

on-chip

Renesas RA External Interrupt230

renesas,ra-external-interrupt

on-chip

Renesas RA Ultra-Low Power Timer (ULPT)2

renesas,ra-ulpt

on-chip

Renesas RA AGT2

renesas,ra-agt

on-chip

Renesas RA SCI controller19

renesas,ra-sci

MMU / MPU

on-chip

ARMv8.1-M MPU (Memory Protection Unit)1

arm,armv8.1m-mpu

MTD

on-chip

MRAM memory of Renesas RA family2

renesas,ra-nv-mram

OCTOSPI

on-chip

Renesas RA OSPI2

renesas,ra-ospi-b

PHY

on-chip

This binding is to be used by all the usb transceivers which are built-in with USB IP1

usb-nop-xceiv

on-board

Simple GPIO controlled CAN transceiver1

can-transceiver-gpio

Pin control

on-chip

Renesas RA Pin Controller1

renesas,ra-pinctrl-pfs

Power management

on-chip

Renesas RA battery backup domain1

renesas,ra-battery-backup

PWM

on-chip

Renesas RA Pulse Width Modulation14

renesas,ra-pwm

RNG

on-chip

Renesas RA RSIP-E51A TRNG1

renesas,ra-rsip-e50d-trng

RTC

on-chip

Renesas RA RTC1

renesas,ra-rtc

SDHC

on-chip

Renesas RA SDHC2

renesas,ra-sdhc

Serial controller

on-chip

Renesas RA SCI_B UART controller19

renesas,ra8-uart-sci-b

SPI

on-chip

Renesas RA SCI B SPI10

renesas,ra-spi-sci-b

on-chip

Renesas RA8 SPI_B controller2

renesas,ra8-spi-b

SRAM

on-chip

Generic on-chip SRAM2

mmio-sram

Timer

on-chip

ARMv8.1-M System Tick1

arm,armv8.1m-systick

on-chip

Renesas RA ULPT TIMER2

renesas,ra-ulpt-timer

USB

on-chip

Renesas RA USB full-speed controller1

renesas,ra-usbfs

on-chip

Renesas RA USB device controller1

renesas,ra-udc

on-chip

Renesas RA USB host controller1

renesas,ra-uhc

Video

on-chip

Renesas RA Capture Engine Unit Driver (ceu)1

renesas,ra-ceu

Watchdog

on-chip

Renesas RA Watchdog (wdt)1

renesas,ra-wdt

Connections and I/Os

The CM85 console uses SCI9 through the J-Link virtual serial port. The green user LED on P110 is active high and available as led0. The core board USER button on P303 is available as sw0. The carrier board USER button (SW600) on P903 is available as sw1. Both buttons are active low.

The CM33 console uses SCI1 on the carrier’s J609 connector. Connect a 3.3 V USB-to-UART adapter’s RX to J609 pin 3 (P707, board TX), TX to J609 pin 2 (P706, board RX), and GND to J609 pin 1. Both consoles use 115200 baud, 8 data bits, no parity, and one stop bit.

CM33 applications can enable the AGT0 counter (agt0 and counter0) in a devicetree overlay.

CM85 applications can enable the SCI4 SPI bus (sci4 and spi4) in a devicetree overlay. SCI4 is wired to J202 on the core board. Pins 1 through 4 are chip select, MOSI, MISO, and SCK, respectively. For the SPI loopback test, connect J202 pins 2 and 3.

The CM85 CAN FD controller uses the carrier’s J602 connector. J602 pin 1 is CANH, pin 2 is CANL, and pin 3 is ground.

Dual Core Operation

CM85 is the boot core. When CM33 is the application target, sysbuild creates a CM85 launcher image with CONFIG_SOC_RA_ENABLE_START_SECOND_CORE enabled. Flash both images so CM85 can initialize the system and start CM33 on reset.

The board assigns interrupt vectors 0 through 39 to CM85 and 40 through 79 to CM33. Test and sample overlays can assign additional vectors from 80 through 95.

Memory Usage

Default on-chip memory layout

Core

MRAM base address

MRAM size

SRAM base address

SRAM size

CM85 (CPU0)

0x02000000

768 KiB

0x22000000

1024 KiB

CM33 (CPU1)

0x020c0000

256 KiB

0x22100000

640 KiB

Programming and Debugging

The cpk_ra8t2 board supports the runners and associated west commands listed below.

flash debug rtt reset debugserver attach
jlink ✅ (default) ✅ (default) ✅ ✅ ✅ ✅

Flashing

With the motor inverter boards disconnected, connect the host to the USB-C port marked JDBG to power the kit and access the onboard J-Link. The orange debug LED stays on after USB enumeration.

Build and flash Hello World for CM85.

# From the root of the zephyr repository
west build -b cpk_ra8t2/r7ka8t2lflcac/cm85 -d build/cpk-cm85 samples/hello_world
west flash -d build/cpk-cm85

Reset the kit and check the J-Link virtual serial port for the Hello World message.

Hello World! cpk_ra8t2/r7ka8t2lflcac/cm85

For CM33, build and flash Hello World and the CM85 launcher with sysbuild.

# From the root of the zephyr repository
west build -b cpk_ra8t2/r7ka8t2lflcac/cm33 --sysbuild -d build/cpk-cm33 samples/hello_world
west flash -d build/cpk-cm33

Reset the kit and check the serial port connected to J609 for the Hello World message.

Hello World! cpk_ra8t2/r7ka8t2lflcac/cm33

Debugging

Use the build directory for the core you want to debug. For the CM33 example, flash both images before starting the debug session for the application domain.

west debug -d build/cpk-cm85
west debug -d build/cpk-cm33 --domain hello_world

References

Board photograph from the Renesas CPK-RA8T2 documentation repository.