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 |
|
ADC |
on-chip |
Renesas RA ADC_B controller1 |
|
on-chip |
Renesas RA ADC_B scan-group configuration node9 |
||
on-chip |
Renesas RA ADC_B converter unit node2 |
||
Audio |
on-chip |
One channel of the Renesas RA Pulse Density Modulation Interface (PDM-IF)3 |
|
CAN |
on-chip |
Renesas RA CANFD controller global1 |
|
on-chip |
Renesas RA CANFD controller2 |
||
Clock control |
on-chip |
Renesas RA Clock Generation Circuit external clock configuration1 |
|
on-chip |
Generic fixed-rate clock provider3 |
||
on-chip |
Renesas RA Sub-Clock1 |
||
on-chip |
Renesas RA Clock Generation Circuit PLL Clock2 |
||
on-chip |
Renesas RA Clock Generation Circuit PLL Clock out line6 |
||
on-chip |
Renesas RA Clock Control node pclk block1 |
||
on-chip |
|||
on-chip |
Renesas RA External Bus Clock1 |
||
Comparator |
on-chip |
Renesas RA LVD (Low-voltage detection) Controller4 |
|
on-chip |
Renesas RA ACMPHS (High-Speed Analog COMParator) Global1 |
||
on-chip |
Renesas RA ACMPHS (High-Speed Analog COMParator) Controller4 |
||
Counter |
on-chip |
Renesas RA ULPT Counter2 |
|
on-chip |
Renesas RA AGT as Counter2 |
||
CRC |
on-chip |
Renesas RA CRC device1 |
|
DMA |
on-chip |
Renesas RA DMA Controller1 |
|
Ethernet |
on-chip |
Renesas RA Ethernet MAC Controller1 |
|
on-chip |
Renesas RA Ethernet MAC Controller2 |
||
on-chip |
Renesas RA External MDIO controller2 |
||
on-board |
Generic MII PHY2 |
||
Flash controller |
on-chip |
Renesas RA flash MRAM controller1 |
|
GPIO & Headers |
on-chip |
Renesas RA GPIO I/O Port14 |
|
I2C |
on-chip |
Renesas RA I2C controller3 |
|
on-chip |
Renesas RA SCI-B I2C controller10 |
||
I2S |
on-chip |
Renesas RA I2S controller2 |
|
I3C |
on-chip |
Renesas RA I3C controller1 |
|
Input |
on-board |
Group of GPIO-bound input keys1 |
|
Interrupt controller |
on-chip |
ARMv8-M NVIC (Nested Vectored Interrupt Controller)1 |
|
LED |
on-board |
Group of GPIO-controlled LEDs1 |
|
LIN |
on-chip |
Renesas RA LIN SCI controller10 |
|
Mailbox |
on-chip |
Renesas IPC MBOX2 |
|
Memory controller |
on-chip |
Renesas RA SDRAM controller1 |
|
Miscellaneous |
on-chip |
Renesas RA External Interrupt32 |
|
on-chip |
Renesas RA Ultra-Low Power Timer (ULPT)2 |
||
on-chip |
Renesas RA AGT2 |
||
on-chip |
|||
MMU / MPU |
on-chip |
ARMv8-M MPU (Memory Protection Unit)1 |
|
MTD |
on-chip |
MRAM memory of Renesas RA family2 |
|
OCTOSPI |
on-chip |
Renesas RA OSPI2 |
|
PHY |
on-chip |
This binding is to be used by all the usb transceivers which are built-in with USB IP1 |
|
on-board |
Simple GPIO controlled CAN transceiver1 |
||
Pin control |
on-chip |
Renesas RA Pin Controller1 |
|
Power management |
on-chip |
Renesas RA battery backup domain1 |
|
PWM |
on-chip |
Renesas RA Pulse Width Modulation14 |
|
RNG |
on-chip |
Renesas RA RSIP-E51A TRNG1 |
|
RTC |
on-chip |
Renesas RA RTC1 |
|
SDHC |
on-chip |
Renesas RA SDHC2 |
|
Serial controller |
on-chip |
||
SPI |
on-chip |
Renesas RA SCI B SPI10 |
|
on-chip |
Renesas RA8 SPI_B controller2 |
||
SRAM |
on-chip |
Generic on-chip SRAM2 |
|
Timer |
on-chip |
ARMv8-M System Tick1 |
|
on-chip |
Renesas RA ULPT TIMER2 |
||
USB |
on-chip |
Renesas RA USB full-speed controller1 |
|
on-chip |
Renesas RA USB device controller1 |
||
on-chip |
Renesas RA USB host controller1 |
||
Video |
on-chip |
Renesas RA Capture Engine Unit Driver (ceu)1 |
|
Watchdog |
on-chip |
Renesas RA Watchdog (wdt)1 |
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 |
|
ADC |
on-chip |
Renesas RA ADC_B controller1 |
|
on-chip |
Renesas RA ADC_B scan-group configuration node9 |
||
on-chip |
Renesas RA ADC_B converter unit node2 |
||
Audio |
on-chip |
One channel of the Renesas RA Pulse Density Modulation Interface (PDM-IF)3 |
|
CAN |
on-chip |
Renesas RA CANFD controller global1 |
|
on-chip |
|||
Clock control |
on-chip |
Renesas RA Clock Generation Circuit external clock configuration1 |
|
on-chip |
Generic fixed-rate clock provider3 |
||
on-chip |
Renesas RA Sub-Clock1 |
||
on-chip |
Renesas RA Clock Generation Circuit PLL Clock2 |
||
on-chip |
Renesas RA Clock Generation Circuit PLL Clock out line6 |
||
on-chip |
Renesas RA Clock Control node pclk block1 |
||
on-chip |
|||
on-chip |
Renesas RA External Bus Clock1 |
||
Comparator |
on-chip |
Renesas RA LVD (Low-voltage detection) Controller4 |
|
on-chip |
Renesas RA ACMPHS (High-Speed Analog COMParator) Global1 |
||
on-chip |
Renesas RA ACMPHS (High-Speed Analog COMParator) Controller4 |
||
Counter |
on-chip |
Renesas RA ULPT Counter2 |
|
on-chip |
Renesas RA AGT as Counter2 |
||
CRC |
on-chip |
Renesas RA CRC device1 |
|
DMA |
on-chip |
Renesas RA DMA Controller1 |
|
Ethernet |
on-chip |
Renesas RA Ethernet MAC Controller1 |
|
on-chip |
Renesas RA Ethernet MAC Controller2 |
||
on-chip |
Renesas RA External MDIO controller2 |
||
on-board |
Generic MII PHY2 |
||
Flash controller |
on-chip |
Renesas RA flash MRAM controller1 |
|
GPIO & Headers |
on-chip |
||
I2C |
on-chip |
Renesas RA I2C controller3 |
|
on-chip |
Renesas RA SCI-B I2C controller10 |
||
I2S |
on-chip |
Renesas RA I2S controller2 |
|
I3C |
on-chip |
Renesas RA I3C controller1 |
|
Input |
on-board |
Group of GPIO-bound input keys1 |
|
Interrupt controller |
on-chip |
ARMv8.1-M NVIC (Nested Vectored Interrupt Controller)1 |
|
LED |
on-board |
Group of GPIO-controlled LEDs1 |
|
LIN |
on-chip |
Renesas RA LIN SCI controller10 |
|
Mailbox |
on-chip |
Renesas IPC MBOX2 |
|
Memory controller |
on-chip |
Renesas RA SDRAM controller1 |
|
Miscellaneous |
on-chip |
||
on-chip |
Renesas RA Ultra-Low Power Timer (ULPT)2 |
||
on-chip |
Renesas RA AGT2 |
||
on-chip |
|||
MMU / MPU |
on-chip |
ARMv8.1-M MPU (Memory Protection Unit)1 |
|
MTD |
on-chip |
MRAM memory of Renesas RA family2 |
|
OCTOSPI |
on-chip |
Renesas RA OSPI2 |
|
PHY |
on-chip |
This binding is to be used by all the usb transceivers which are built-in with USB IP1 |
|
on-board |
Simple GPIO controlled CAN transceiver1 |
||
Pin control |
on-chip |
Renesas RA Pin Controller1 |
|
Power management |
on-chip |
Renesas RA battery backup domain1 |
|
PWM |
on-chip |
Renesas RA Pulse Width Modulation14 |
|
RNG |
on-chip |
Renesas RA RSIP-E51A TRNG1 |
|
RTC |
on-chip |
Renesas RA RTC1 |
|
SDHC |
on-chip |
Renesas RA SDHC2 |
|
Serial controller |
on-chip |
||
SPI |
on-chip |
Renesas RA SCI B SPI10 |
|
on-chip |
Renesas RA8 SPI_B controller2 |
||
SRAM |
on-chip |
Generic on-chip SRAM2 |
|
Timer |
on-chip |
ARMv8.1-M System Tick1 |
|
on-chip |
Renesas RA ULPT TIMER2 |
||
USB |
on-chip |
Renesas RA USB full-speed controller1 |
|
on-chip |
Renesas RA USB device controller1 |
||
on-chip |
Renesas RA USB host controller1 |
||
Video |
on-chip |
Renesas RA Capture Engine Unit Driver (ceu)1 |
|
Watchdog |
on-chip |
Renesas RA Watchdog (wdt)1 |
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
Core |
MRAM base address |
MRAM size |
SRAM base address |
SRAM size |
|---|---|---|---|---|
CM85 (CPU0) |
|
768 KiB |
|
1024 KiB |
CM33 (CPU1) |
|
256 KiB |
|
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.