FPB‐RA4E1 Sample and Demo hardware configuration - renesas/zephyr GitHub Wiki

Followings are hardware connection and test samples for FPB-RA4E1, for more detail on 1st setup hardware connection, please visit FPB-RA4E1 - Quick Start Guide and FPB-RA4E1 v1 - User's Manual

Default HW configuration:

Zephyr UART Console setting: FPB-RA4E1 board require to connect with a USB UART board to communicate with PC console

e.g. PMOD USB UART

Pin configuration:

Board Channel Board Pin function Board Pin Connect to PMOD 1
FPB-RA4E1 SCI0 TXD0 P101 (PMOD 1-2) USB UART RXD pin
RXD0 P100 (PMOD 1-3) USB UART TXD pin
GND GND USB UART GND pin
P3.3V VCC USB UART VCC pin

image

Hardware connection for UART samples

  • echo_bot (samples/drivers/uart/echo_bot):

    • Hardware configuration: No additional connection.

    • Build command:

      west build -p always -b fpb_ra4e1 samples/drivers/uart/echo_bot/
      
  • zTest uart_basic_api (tests/drivers/uart/uart_basic_api):

    • Hardware configuration: No additional connection.

    • Build command:

      west build -p always -b fpb_ra4e1 tests/drivers/uart/uart_basic_api/
      
  • zTest uart_async_api (tests/drivers/uart/uart_async_api):

    • Hardware configuration: Loopback for TXD and RXD

      Board Channel Pin function Pin Connect to
      FPB-RA4E1 SCI9 TXD9 P109 Loopback to RXD9 pin
      RXD9 P110 Loopback to RXD9 pin
    • Build command:

      west build -p always -b fpb_ra4e1 tests/drivers/uart/uart_async_api/
      

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/fpb_ra4e1.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/fpb_ra4e1.overlay

     spibb0: &spi0 {
       		rx-dtc;
       		tx-dtc;
       		pinctrl-0 = <&spi0_default>;
       		pinctrl-names = "default";
       		cs-gpios = <&ioport4 13 GPIO_ACTIVE_LOW>; // dummy config
       		status = "okay";
       	};
    
     &ioport4 {
       		status = "okay";
     };
    
    • Hardware configuration:

      Board Channel Pin function Pin Connect to
      FPB-RA4E1 SPI0 MISO0 P110 Loopback to MOSI0
      MOSI0 P109 Loopback to MISO0
    • Build command:

      west build -p always -b fpb_ra4e1 samples/drivers/spi_bitbang
      
  • zTest spi_loopback (tests/drivers/spi/spi_loopback)

    • Hardware configuration: Loopback for MISO and MOSI

      Board Channel Pin function Pin Connect to
      FPB-RA4E1 SPI0 MISO0 P110 Loopback to MOSI0
      MOSI0 P109 Loopback to MISO0
    • Build command:

      west build -p always -b fpb_ra4e1 samples/drivers/spi_bitbang
      

Hardware connection for Flash samples

  • zTest flash common (tests/drivers/flash/common): No additional connection.

    • Hardware configuration: No additional connection.

    • Build command:

      west build -p always -b fpb_ra4e1 tests/drivers/flash/common
      

Hardware connection for ADC samples

  • zTest adc_api (tests/drivers/adc/adc_api): No additional connection.

    • Hardware configuration: No additional connection.

    • Build command:

      west build -p always -b fpb_ra4e1 tests/drivers/adc/adc_api
      
  • zTest adc_accuracy_test (tests/drivers/adc/adc_accuracy_test):

    • Hardware configuration: Loopback 3V3 and AN000 (P000).

      ADC_HW_Connection

    • Build command:

      west build -p always -b fpb_ra4e1 tests/drivers/adc/adc_accuracy_test
      

Hardware connection for PWM (GPT) samples

  • zTest pwm_api (tests/drivers/pwm/pwm_api): No additional connection.

    • Hardware configuration: No additional connection.

    • Build command:

      west build -p always -b fpb_ra4e1 tests/drivers/pwm/pwm_api
      
  • zTest pwm_loopback (tests/drivers/pwm/pwm_loopback):

    • Hardware configuration: Loopback 2 channels (1 PWM output, 1 PMW capture)

      Board Channel Pin Pin function Remark
      FPB-RA4E1 PWM1 P105 GTIOC1A PWM output, loopback to PWM capture pin
      PWM4 P302 GTIOC4A PWM capture, loopback to PWM output pin
    • Build command:

      west build -p always -b fpb_ra4e1 tests/drivers/pwm/pwm_loopback
      

Hardware connection for Counter (AGT) samples

  • Counter Alarm sample (samples/drivers/counter/alarm):

    • Hardware configuration: No additional connection.

    • Build command:

      west build -p always -b fpb_ra4e1 samples/drivers/counter/alarm`
      

Hardware connection for DAC samples

  • ztest dac_api (tests/drivers/dac/dac_api):

    • Hardware configuration: No additional connection.
    • Build command: west build -p always -b fpb_ra4e1 tests/drivers/dac/dac_api
  • DAC sample (samples/drivers/dac):

    • Hardware configuration: No additional connection.
    • Build command: west build -p always -b fpb_ra4e1 samples/drivers/dac