RH850‐U2B‐468PIN Sample and Demo hardware configuration - renesas/zephyr GitHub Wiki
Followings are hardware connection and test samples for Y-RH850-U2B-468PIN-PB-T1-V1, for more detail on how to setup hardware connection, please visit RH850/U2B 468pin User's Manual: Piggyback Board .
Table of contents
- Table of contents
- Option Byte Configuration
- Default UART Connection
- Flash command
- UART Sample
- GPIO Sample
- ADC Samples and Tests
Option Byte Configuration
Before flashing the RH850/X2x devices, verify that the OPBT3[0:1] settings are configured as follows:
- STMSEL0 = 0
- STMSEL1 = 0
Default UART Connection
| HW | Board Pin | Remark |
|---|---|---|
| UART0_TX (P02_6) | CN15_51 | connect to USB-TTL module RX pin |
| UART0_RX (P02_5) | CN15_53 | 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 20"
UART Sample
-
echo_bot (samples/drivers/uart/echo_bot):
- Hardware configuration: refer to default UART connection.
- Build command:
west build -p always -b pb_rh850u2b_468pin/r7f70254xafabg-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_rh850u2b_468pin/r7f70254xafabg-c tests/drivers/uart/uart_basic_api
GPIO Sample
-
Blinky (samples/basic/blinky): Simple LED blinky
-
Hardware configuration:
LED Signal Jumper Configuration LED2 CN17 Jumper on pins 15-16 -
Build command:
$ west build -p always -b pb_rh850u2b_468pin/r7f70254xafabg-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_rh850u2b_468pin/r7f70254xafabg-c tests/drivers/gpio/gpio_api_1pin
-
zTest gpio_basic_api (tests/drivers/gpio/gpio_basic_api):
-
Hardware configuration:
HW Board Pin Configurations P34_1 CN14_8 Connect to P34_0 (CN5_7) -
Build command:
west build -p always -b pb_rh850u2b_468pin/r7f70254xafabg-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 |
|---|---|---|
| ADCK0 channel 4 | CN13 pin 13 / AN01_0 | Connect to CN29-10 pull-up |
| A0VREFH | CN10 [8-9] | A0VREFH 5.0V |
| A0VCC | CN10 [11-12] | A0VCC 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_rh850u2b_468pin/r7f70254xafabg-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_rh850u2b_468pin/r7f70254xafabg-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_rh850u2b_468pin/r7f70254xafabg-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_rh850u2b_468pin/r7f70254xafabg-c tests/drivers/adc/adc_accuracy_test