Common Hardware Setup
Caution
The power supply for the R-Car V4H SH board must be a USB Power Delivery adapter rated at 65 W or higher. Use only a power supply and cable that comply with the USB Power Delivery (USB PD) standard. Using a non-USB PD power supply may damage the R-Car V4H SH board.
The Power Control button (SW1) is a latching (push-push) button, so its physical position tells you the state:
OFF - the button is released and sticks out from the board.
ON - the button is pressed all the way down and stays latched in that position.
Before you connect the power supply, make sure the button is in the OFF position, that is, released and sticking out. Then connect the power supply and press the button once so that it latches down to the ON position — the board now powers on. You should not connect the power supply while the button is in the ON position, as this may damage the board.
Similarly, to power off the board, press the button once so that it pops back out to the OFF position, and only then remove the power supply. Removing the power supply while the board is still powered on may damage the board.
The following image shows the hardware setup for bringing up the board:
Common Hardware Setup
Caution
Hot! Do not touch the R-Car V4H (main chip) directly. The fan must be properly installed before powering on the board to prevent the R-Car V4H from overheating and failing.
Do not touch the board while the USB PD power supply is connected. Touching the bare board may cause a short circuit and failure.
The setup includes:
Fan installation
Power supply connection
Serial connection for terminal access
Ethernet connection for network access
Flashing the IPL
The Initial Program Loader (IPL) is written to the board using the ipl-burning script from the
software package, which drives the board over the serial port from
your host PC.
Serial Console Channels
The board has two serial devices. ChA (HSCIF0) is the one mainly used, and is the channel the procedures in this guide connect to:
Channel |
Baud rate |
Format |
Flow control |
|---|---|---|---|
ChA (HSCIF0) For example, |
921600 bps |
8N1 |
none |
ChB (HSCIF1) For example, |
115200 bps |
8N1 |
none |
Note
Before proceeding, ensure that your machine has the necessary drivers and a terminal emulator (MobaXterm, Tera Term, etc.) installed.
For Windows users, if the console does not connect, install the appropriate driver. The serial communication between the Windows PC and R-Car V4H SH requires: FTDI Virtual COM Port (VCP) driver
Download and install the Windows version (.exe).
IPL Flashing Requirements
The software package downloaded and extracted on the host PC. See Downloading the software package.
The board connected to the host PC with a USB-to-microUSB cable.
On a Linux host PC,
python3and thepipcommand installed:sudo apt-get install python3 python3-pip
Any other console or terminal emulator that uses the serial port of the board must be closed before you run the script. The script cannot open the port while another program is holding it.
Procedure
Go to the
ipl-burningdirectory of the extracted software package and run the script.On Linux:
cd board_setup/ipl-burning bash ./run.sh
On Windows, run
run.batin theboard_setup\ipl-burningdirectory.Turn off the power and change SW2 according to the instructions displayed in the console.
Press Enter to continue.
Turn on the power.
Wait for the writing process to complete.
Turn off the power and change SW2 again according to the instructions displayed in the console.
Press Enter to close the program.
Note
Always set the Mode Switch (SW2) to the position that ipl-burning (run.sh or
run.bat) displays in the console. See
Boot Mode Configuration (DIP Switch) for the meaning of each
switch position.
Note
Flashing a new IPL does not reset the U-Boot environment saved in the SPI flash. Variables saved by an earlier IPL version can be incompatible with the new U-Boot and prevent the board from booting correctly. After you flash a new IPL, it is recommended to reset the U-Boot environment to its defaults.
Power on the board, press any key to stop the autoboot process, and run the following commands at the U-Boot prompt:
env default -a
saveenv
This also removes any variables that you set yourself, such as bootcmd or conf_append.
Set them again if you need them.
Note
On Linux, the script uses the serial device /dev/ttyUSB*. By default this device cannot
be accessed by an unprivileged user. Either run the script with sudo, or add your user
to the dialout group:
sudo usermod -aG dialout $USER
Log out and log back in for the group change to take effect.