RH850‐U2A‐516PIN Sample and Demo hardware configuration - renesas/zephyr GitHub Wiki
Followings are hardware connection and test samples for Y-RH850-U2A-516PIN-PB-T1-V1, for more detail on how to setup hardware connection, please visit RH850/U2A 516pin User's Manual: Piggyback Board.
Table of contents
- Table of contents
- Option Byte Configuration
- Power Supply Requirement
- Default UART Connection
- Flash command
- UART Sample
- GPIO Sampl*
- ADC
Option Byte Configuration
Before flashing the RH850/X2x devices, verify that the OPBT3[0:1] settings are configured as follows:
- STMSEL0 = 0
- STMSEL1 = 0
This configuration enables Normal Operating Mode and allows flash programming via the Nexus/LPD debug interface.
Power Supply Requirement
The piggyback board requires a 3.3V power supply via CN10 and CN8. Alternative, the piggyback board may be connected to the Y-RH850-X2x-MB-T1-V1
Default UART Connection
| HW | Board Pin | Configuration |
|---|---|---|
| UART0_TX (P10_0) | CN16_C23 | connect to USB-TTL module RX pin |
| UART0_RX (P10_5) | CN16_B27 | connect to USB-TTL module TX pin |
The UART port can be accessed by connecting a USB-to-TTL converter to the UART0 TX and RX pins.
Flash command
-
Before using the flash command, follow this guide to install the Renesas Flash Programmer (RFP) Host Tools.
-
Then, use the following command to flash the code to the board:
west flash -- --tool-opt="-auth id FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF -osc 40"
UART Sample
-
echo_bot (samples/drivers/uart/echo_bot):
- Hardware configuration: refer to default UART connection.
- Build command:
west build -p always -b pb_rh850u2a_516pin/r7f702300bebbc-c samples/drivers/uart/echo_bot
-
zTest uart_basic_api (tests/drivers/uart/uart_basic_api):
- Hardware configuration: refer to default UART connection.
- Build command:
west build -p always -b pb_rh850u2a_516pin/r7f702300bebbc-c tests/drivers/uart/uart_basic_api
GPIO Sample
-
Blinky (samples/basic/blinky): Simple LED blinky
-
Hardware configuration:
LED Signal Jumper Configuration LED2 P11 Jumper on pins 1-2 -
Build command:
$ west build -p always -b pb_rh850u2a_516pin/r7f702300bebbc-c samples/basic/blinky
-
-
zTest gpio_api_1pin (tests/drivers/gpio/gpio_api_1pin):
- Hardware configuration: No additional connection
- Build command:
west build -p always -b pb_rh850u2a_516pin/r7f702300bebbc-c tests/drivers/gpio/gpio_api_1pin
-
zTest gpio_basic_api (tests/drivers/gpio/gpio_basic_api):
-
Hardware configuration:
HW Board Pin Configurations P3_3 CN13_A9 Connect to CN3_2 (CN13_B7) -
Build command:
west build -p always -b pb_rh850u2a_516pin/r7f702300bebbc-c tests/drivers/gpio/gpio_basic_api
-
ADC Sample
The ADC module supports ADC conversion validation for this board.
ADC Hardware Connection
| ADC Signal | Board Pin / Jumper | Configuration |
|---|---|---|
| ADCK input | CN14 A28 / AP0_4 | Connect to CN12 pin 1 |
| Pull-up | JP25 [2-3] | 3.3V |
| A0VCC | JP32 [2-1] | A0VCC 5.0V |
| A0VREFH | JP33 [2-1] | A0VREFH 5.0V |
ADC Samples
-
adc_dt (
samples/drivers/adc/adc_dt)-
Hardware configuration: Refer to ADC Hardware Connection.
-
Build command:
west build -p always -b pb_rh850u2a_516pin/r7f702300bebbc-c samples/drivers/adc/adc_dt
-
-
adc_sequence (
samples/drivers/adc/adc_sequence)-
Hardware configuration: Refer to ADC Hardware Connection.
-
Build command:
west build -p always -b pb_rh850u2a_516pin/r7f702300bebbc-c samples/drivers/adc/adc_sequence
-
ADC zTests
-
zTest adc_api (
tests/drivers/adc/adc_api)-
Hardware configuration: Refer to ADC Hardware Connection.
-
Build command:
west build -p always -b pb_rh850u2a_516pin/r7f702300bebbc-c tests/drivers/adc/adc_api
-
-
zTest adc_accuracy_test (
tests/drivers/adc/adc_accuracy_test)-
Hardware configuration: Refer to ADC Hardware Connection.
-
Build command:
west build -p always -b pb_rh850u2a_516pin/r7f702300bebbc-c tests/drivers/adc/adc_accuracy_test
-