RZV2H-RDK
The RZV2H-RDK is a development board for the Renesas RZ/V2H (R9A09G057)
MPU. NuttX is ported to run on one of the two Cortex-R8 real-time cores
(CR8_0).
Board Overview
See the RZ/V2H product page for information about the RZ/V2H MPU.
Board Set-up
The following steps set up the board to debug/run NuttX over SWD with a J-Link debugger:
Configure the SWD interface to use the J-Link debugger via the DIP switches (highlighted in red in the picture above):
DSW1
Set
1-1
ON
1-2
OFF
1-3
ON
1-4
OFF
1-5
OFF
1-6
ON
Connect the J-Link debugger to the board’s CN1 debug connector.
Plug the CN8 serial port (to check the correct IPL).
4. Connect power to the board to P1 connector. The RDK board is powered by external 12 to 24V DC. It is recommended to use the 12V/2A power adapter included in the box.
To power off the board, disconnect the J-Link debugger first, then remove power.
Getting the HAL Renesas
Clock bring-up (see below) is implemented on top of Renesas’ vendored FSP
BSP code, which ships in a separate hal_renesas repository and is
not part of the nuttx git tree.
make context (run automatically as part of a normal build) clones the
repository at the pinned version into
arch/arm/src/common/renesas/hal_renesas, as defined in
arch/arm/src/common/renesas/Make.defs. Nothing needs to be cloned
manually. make distclean removes it.
HAL_RENESAS_URL and HAL_RENESAS_VERSION can be set in the
environment to use another repository or revision, for example a local
checkout:
HAL_RENESAS_URL=/path/to/hal_renesas make
Serial Consoles
The default nsh configuration uses SCI channel 0 as the serial console
at 115200 baud, 8 data bits, no parity, and one stop bit. The board pin
definitions route SCI0 as follows:
Signal |
Pin |
Board definition |
J1 header |
|---|---|---|---|
TXD0 |
|
|
J1 pin 36 |
RXD0 |
|
|
J1 pin 22 |
Connect a 3.3 V TTL UART adapter to the J1 header pins listed above. Cross the data lines so that J1 TXD0 connects to the adapter RX and J1 RXD0 connects to the adapter TX. Hardware flow control is not enabled. Use a 3.3 V TTL UART adapter, not an RS-232 adapter.
The relevant default options are:
CONFIG_RZV2H_UART_SCI=y
CONFIG_RZV2H_SCI_B_UART0=y
CONFIG_SCI0_SERIAL_CONSOLE=y
CONFIG_SCI0_BAUD=115200
CONFIG_SCI0_BITS=8
CONFIG_SCI0_PARITY=0
CONFIG_SCI0_2STOP=0
After boot, SCI0 is available as both /dev/console and /dev/ttyS0.
The terminal should display the NuttX banner followed by the nsh> prompt.
Verify the registration with:
nsh> ls /dev
/dev:
console
null
ttyS0
zero
Additional enabled SCI channels are registered as later /dev/ttyS*
devices in ascending hardware-channel order. Their TX and RX pin choices are
board-specific and are defined by BOARD_SCIn_TXD_GPIO and
BOARD_SCIn_RXD_GPIO in boards/arm/rzv2h/rzv2h-rdk/include/board.h.
Configurations
nsh
NuttShell configuration exercising clock, MPU, interrupt/timer, GPIO, and
SCI-B UART bring-up on CR8_0. SCI0 provides the default 115200-8N1 NSH
console through J1 pin 22 (RXD0) and J1 pin 36 (TXD0) and is registered
as /dev/console and /dev/ttyS0.
nsh-leds
This configuration enables CONFIG_USERLED, registers /dev/userleds,
and includes the standard NuttX leds example. Run leds to cycle the
active-low P11_4 and P11_5 LED outputs. The generic /dev/gpio0,
/dev/gpio1, and /dev/gpio2 interfaces are also available for
individual read/write testing.