Skip to content

EK_RA6M3 Hardware connection

Khoa Nguyen edited this page Jan 3, 2025 · 4 revisions

Followings are hardware connection for EK_RA6M3, for more detail, please visit EK-RA6M3 - Quick Start Guide and EK-RA6M3 v1 - User's Manual

Use Debug On-Board

Jumper Configurations
J8 Jumper on pins 1-2
J9 Open
J29 Jumpers on pins 1-2, 3-4, 5-6, 7-8
EK_RA6M3_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-RA6M3 SCI9 TXD9 P203
RXD9 P202

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_ra6m3.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_ra6m3.overlay

     spibb0: &spi0 {
    	rx-dtc;
    	tx-dtc;
    	cs-gpios = <&ioport4 14 GPIO_ACTIVE_LOW>;
    	status = "okay";
    };
    
    &ioport4 {
    	status = "okay";
    };
    
    &port_irq12 {
    	status = "disabled";
    };
    
    &port_irq13 {
    	status = "disabled";
    };
    

zTest (tests/drivers/spi/spi_loopback): Loopback for MISO and MOSI

Loopback for MISO and MOSI

Board Channel Pin function Pin
EK-RA6M3 SPI0 MISO P410
MOSI P411

Hardware connection for I2C sample

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

Connections:

GY271 EK-RA6M3
VCC P3V3
GND GND
SCL P512 (SCL2)
SDA P511 (SDA2)
DDBY -