EK‐RA8P1 Sample and Demo Hardware configuration - renesas/zephyr GitHub Wiki
Followings are hardware connection and test samples for EK_RA8P1.
- 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_ra8p1/r7ka8p1kflcac/cm85 <path to test/sample>
For example:
west build -p always -b ek_ra8p1/r7ka8p1kflcac/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 |
Set the configuration switches (SW4) on the EK-RA8P1 board as below:
SW4-1 PMOD1 | SW4-2 PMOD1 | SW4-3 Octo-SPI (OFF is Active) | SW4-4 Arduino / mikroBUS | SW4-5 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-RA8P1 | SCI2 | TXD2 | P801 |
RXD2 | P802 |
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_ra8p1_r7ka8p1kflcac_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 testspi_bitbang
.
samples/drivers/spi_bitbang/boards/ek_ra8p1_r7ka8p1kflcac_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"; };
- Note: We have to disable the
zTest (tests/drivers/spi/spi_loopback
): Loopback for MISO and MOSI
Loopback for MISO and MOSI
Board | Channel | Pin function | Pin |
---|---|---|---|
EK-RA8P1 | 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-RA8P1 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 P401 (SCL1) SDA P400 (SDA1) DDBY - CM85:
west build -p always -b ek_ra8p1/r7ka8p1kflcac/cm85 tests/drivers/i2c/i2c_api -DDTC_OVERLAY_FILE=boards/ek_ra8p1_r7ka8p1kflcac_cm85_sci_b_i2c.overlay -DCONF_FILE="boards/ek_ra8p1_r7ka8p1kflcac_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 | PMOD SD's Pin |
---|---|---|---|
EK-RA8P1 | SDMMC0 | P111 (DAT3) (J32 Pin17) | Pin1 (CS) |
P307 (CMD) (J3 Pin37) | Pin2 (MOSI) | ||
P304 (DAT0) (J3 Pin34) | Pin3 (MISO) | ||
P308 (CLK) (J3 Pin32) | Pin4 (SCLK) | ||
GND | Pin5 (GND) | ||
+3V3 (VCC) | Pin6 (VCC) | ||
PD02 (DAT1) (J2 Pin33) | Pin7 (DAT1) | ||
PD01 (DAT2) (J2 Pin34) | Pin8 (DAT2) | ||
P306 (CD) (J3 Pin36) | Pin9 (CD) | ||
P305 (WP) (J3 Pin35) | Pin10 (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 ek_ra8p1/r7ka8p1kflcac/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 ek_ra8p1/r7ka8p1kflcac/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 |
---|---|---|---|---|
EK-RA8P1 | PWM1 | P105 | GTIOC1A | PWM output |
PWM2 | P103 | GTIOC2A | 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-RA8P1.
LVGL demos (samples/modules/lvgl/demos
): Require information of display shield in build command:
-
CM85:
west build -b ek_ra8p1/r7ka8p1kflcac/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_ra8p1/r7ka8p1kflcac/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_ra8p1/r7ka8p1kflcac/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_ra8p1/r7ka8p1kflcac/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_ra8p1/r7ka8p1kflcac/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_ra8p1/r7ka8p1kflcac/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-RA8P1 | IPORT6 | GPIO | P600 |
ACMPHS0 | IVCMP0 | P805 |
Renesas comparator (samples/boards/renesas/comparator
): Connect SW1 to Analog voltage input pin for comparator (IVCMPn)
Board | Channel | Pin function | Pin |
---|---|---|---|
EK-RA8P1 | SW1 | User push-button | P009 |
ACMPHS0 | IVCMP3 | P001 |