RZG3S‐SMARC Sample and Demo hardware configuration - renesas/zephyr GitHub Wiki
Followings are hardware connection and test samples for RZ/G3S-SMARC, for more detail on 1st setup hardware connection, please visit RZ/G3S SMARC Module Board User's Manual: Hardware and RZ/G Getting Started with Flexible Software Package
Default HW configuration
| HW | Configurations | Remark |
|---|---|---|
| SW_MODE[1:4] | OFF, OFF, OFF, ON | Boot mode 2 (Serial Flash Memory) |
| SW_CONFIG[1:6] | OFF, OFF, ON, OFF, OFF, OFF | CA55 boot mode |
| SW_OPT_MUX[1:4] | OFF, ON, OFF, ON | - |
| SW_GPIO_OPT_SEL[1:2] | 2-3, 5-6 | - |
| SW_GPIO_CAN_PMOD[1:2] | 1-2, 4-5 | - |
An additional UART port is required for Cortex-M33 System Core. It can be accessed by connecting Pmod USBUART to the upper side of PMOD1_3A.
Hardware connection for OpenAMP samples
Please follow OpenAMP Linux Zephyr RPMsg
Hardware connection for UART samples
-
echo_bot (samples/drivers/uart/echo_bot):
- Hardware configuration: No additional connection.
- Build command:
west build -p always -b rzg3s_smarc/r9a08g045s33gbg/cm33 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 rzg3s_smarc/r9a08g045s33gbg/cm33 tests/drivers/uart/uart_basic_api
Hardware connection for GPIO samples
-
Button (samples/basic/button): Simple button test
- HW configuration: No additional connection.
- Build command:
$ west build -p always -b rzg3s_smarc/r9a08g045s33gbg/cm33 samples/basic/button
-
zTest gpio_api_1pin (tests/drivers/gpio/gpio_api_1pin):
- Hardware configuration: No additional connection
- Build command:
west build -p always -b rzg3s_smarc/r9a08g045s33gbg/cm33 tests/drivers/gpio/gpio_api_1pin
-
zTest gpio_basic_api (tests/drivers/gpio/gpio_basic_api):
- Hardware configuration: wire pin P8_2 (Pmod1_6A, pin 9) to pin P8_3 (Pmod1_6A, pin 10)
- Build command:
west build -p always -b rza3ul_smarc tests/drivers/gpio/gpio_basic_api
Hardware connection for ADC samples
-
ADC with devicetree (samples/drivers/adc/adc_dt)
- HW configuration: No additional connection.
- Build command:
$ west build -p always -b rzg3s_smarc/r9a08g045s33gbg/cm33 samples/drivers/adc/adc_dt
-
ADC sequence sample (samples/drivers/adc/adc_sequence)
- HW configuration: No additional connection.
- Build command:
$ west build -p always -b rzg3s_smarc/r9a08g045s33gbg/cm33 samples/drivers/adc/adc_sequence
-
zTest adc_api (tests/drivers/adc/adc_api)
- HW configuration: No additional connection.
- Build command:
$ west build -p always -b rzg3s_smarc/r9a08g045s33gbg/cm33 tests/drivers/adc/adc_api
Hardware connection for Counter samples
-
Counter Alarm (samples/drivers/counter/alarm)
- HW configuration: No additional connection.
- Build command:
$ west build -p always -b rzg3s_smarc/r9a08g045s33gbg/cm33 samples/drivers/counter/alarm
-
zTest counter_basic_api (tests/drivers/counter/counter_basic_api)
- HW configuration: No additional connection.
- Build command:
$ west build -p always -b rzg3s_smarc/r9a08g045s33gbg/cm33 tests/drivers/counter/counter_basic_api
Hardware connection for I2C samples
- zTest i2c_api (tests/drivers/i2c/i2c_api)
- HW configuration: Connect the GY271 sensor module to PMOD1_6A as per the following pin configuration
GY271 PMOD1_6A VCC Pin 6 GND Pin 5 SCL Pin 3 SDA Pin 4 DDBY - - Build command:
$ west build -p always -b rzg3s_smarc/r9a08g045s33gbg/cm33 tests/drivers/i2c/i2c_api
- HW configuration: Connect the GY271 sensor module to PMOD1_6A as per the following pin configuration
Hardware connection for CAN samples
-
zTest can_api (tests/drivers/can/api)
- HW configuration: No additional connection.
- Build command:
$ west build -p always -b rzg3s_smarc/r9a08g045s33gbg/cm33 tests/drivers/can/api
-
zTest can_timing (tests/drivers/can/timing)
- HW configuration: No additional connection.
- Build command:
$ west build -p always -b rzg3s_smarc/r9a08g045s33gbg/cm33 tests/drivers/can/timing
-
zTest can_shell (tests/drivers/can/shell)
- HW configuration: No additional connection.
- Build command:
$ west build -p always -b rzg3s_smarc/r9a08g045s33gbg/cm33 tests/drivers/can/shell
Hardware connection for PWM samples
-
zTest pwm_api (tests/drivers/pwm/pwm_api)
- HW configuration: PWM output via PMOD1_6A, pin 7
- Build command:
$ west build -p always -b rzg3s_smarc/r9a08g045s33gbg/cm33 tests/drivers/pwm/pwm_api
-
zTest pwm_loopback (tests/drivers/pwm/pwm_loopback)
- HW configuration: wire PMOD1_6A, pin 7 to PMOD0_2A, pin 7
- Build command:
$ west build -p always -b rzg3s_smarc/r9a08g045s33gbg/cm33 tests/drivers/pwm/pwm_loopback
Hardware connection for SPI samples
- SPI bitbang (samples/drivers/spi_bitbang)
- HW configuration: wire RZ_RSPI0_MOSI (PMOD0_2A, pin 2) to RZ_SPI0_MISO (PMOD0_2A, pin 3)
- Build command:
$ west build -p always -b rzg3s_smarc/r9a08g045s33gbg/cm33 samples/drivers/spi_bitbang