R-Car/Boards/S4SK
|
Introduction
This page is for the R-Car S4 Starter Kit board.
Refer to the R-Car page for information about Renesas' R-Car SoC family.
The official product page is here
Topic
R-Car S4 Starter Kit board is on sale.
Hardware
Type name
Y-ASK-RCAR-S4-1000BASE-T#WS12
Picture
[Top view]
[Bottom view]
Hardware feature
- The actually consumed current or power depends on the usage configured by software and may vary.
When using the power connector on the R-Car S4 Starter Kit, the input is protected against overvoltage, undervoltage and reverse polarity. The pass-through voltage range is 3.5V to 5.5V.
The FPGA on this board is powered at all times, so that the board current will never drop to zero. The board will consume approx. 25mA (125mW) in the off-state.
In RESET, the board will consume around 640mA (3.2W). Directly after booting the consumption.
- CH0(CN30) : Root Complex, CH1(CN31) : Endpoint
AC Adapter
AC adapter may not be bundled with the board. In that case, please provide your own.
Here is the AC adapter information that has been confirmed.
Type Name | Where to buy |
---|---|
SMI36-5-V-P6 | Click to buy from Digi-Key Click to buy from Mouser |
SW4127I | Click to buy from here |
Where to buy
<Inquiry Model No>
Y-ASK-RCAR-S4-1000BASE-T#WS12 (With AC Adapter)
Y-ASK-RCAR-S4-1000BASE-WS12-JP (Without AC Adapter)
R-Car S4 Starter Kit from Farnell - World wide - < Available >
R-Car S4 Starter Kit from SHIMAFUJI ELECTRIC INCORPORATED - Japan only - < Available >
R-Car S4 SoC Documentation
https://www.renesas.com/us/en/document/mah/r-car-s4-users-manual-overview (Overview)
Board documentation
https://www.renesas.com/us/en/document/mat/r-car-s4-starter-kit-hardware-manual
Debug Serial
- CN13
- Two serial ports are recognized. Please use the younger number.
Baudrate | 921600 |
---|---|
Data | 8-bit |
Parity | none |
Stop bits | 1 |
Specification of DIP SW (SW3)
SW | Usage | When on | When off | Description | Default |
---|---|---|---|---|---|
SW3-1 | MD1 | L | H | Boot device selection [0] | On |
SW3-2 | MD2 | L | H | Boot device selection [1] | On |
SW3-3 | MD3 | L | H | Boot device selection [2] | Off |
SW3-4 | MD4 | L | H | Boot device selection [3] | On |
SW3-5 | MD5 | L / enabled | H / disabled | Secure authorization | Off |
SW3-6 | MD6 | L / ICU-MXB | H / CR52 | Master boot processor | On |
SW3-7 | - | ||||
SW3-8 | - |
MD4 | MD3 | MD2 | MD1 | Selection of Boot Device |
---|---|---|---|---|
0 | 1 | 0 | 0 | Serial flash ROM boot at single read 40MHz using DMA |
1 | 1 | 1 | 1 | SCIF Downloading mode |
MD6 | Selection of Master Boot Processor |
---|---|
0 | Booted through ICUMXA (Initial setting) |
1 | Booted through Cortex-R52 |
How to confirm MAC address
Check the MAC address of the board using S4_StarterKit_Configurator.exe.
See R-Car/Boards/S4SK#Tab_of_S4_Starter_Kit
How to build
How to flash/update the loader
Information list of image for S4 Starter Kit (QSPI Flash)
Filename | Program Top Address | Qspi Save Address | Description |
---|---|---|---|
bootparam_sa0.srec | 0xEB200000 | 0x0000000 | ICUMX IPL (boot parameter) |
icumx_loader.srec | 0xEB210000 | 0x0040000 | ICUMX IPL |
cert_header_sa9.srec | 0xEB230000 | 0x0240000 | ICUMX IPL (certification) |
dummy_fw.srec | 0xEB240000 | 0x0280000 | Dummy firmware (Instead of secure firmware) |
dummy_rtos.srec | 0xE2100000 | 0x0500000 | Dummy RTOS (Instead of CR main OS) |
dummy_g4mh_case0.srec | 0x00000000 | 0x0900000 | Dummy G4MH program image |
dummy_icumh_case1.srec | 0x00500000 | 0x0380000 | Dummy ICUMH program image |
bl31-s4sk.srec | 0x46400000 | 0x0E00000 | Trusted Firmware-A (BL31) |
tee-s4sk.srec | 0x44100000 | 0x0E80000 | OP-TEE OS |
u-boot-elf-s4sk.srec | 0x50000000 | 0x0F80000 | U-Boot |
How to get the loader packages
Preparation
- Download ICUMX Loader and Flash writer Package here.
- Decompress ICUMX_Loader_and_Flashwriter_Package_for_R-Car_S4_Starter_Kit_SDKv3.xx.0.zip
- Build(see R-Car/Boards/S4SK/Yocto-Linux#Building_the_BSP_for_R-Car_S4_Starter_Kit) U-boot, OP-TEE OS and Trusted Firmware and prepare their binaries(u-boot-elf-s4sk.srec, tee-s4sk.srec and bl31-s4sk.srec).
- Copy binaries(u-boot-elf-s4sk.srec, tee-s4sk.srec and bl31-s4sk.srec) to ICUMX_Loader_and_Flashwriter_Package_for_R-Car_S4_Starter_Kit_SDKv3.xx.0 folder
How to flash/update
Windows user
- Connect the Windows PC to the S4SK(CN13) with a USB serial cable
- SW3 : Set to SCIF Download(DL) mode
- Power ON (SW5)
- Execute TeraTerm macro "Flash_Bootloader_S4SK.ttl"
- Power OFF (SW5)
- SW3 : Set to default mode
baudrate : 921600
Default | SCIF DL mode | |
---|---|---|
SW3.1 | On | Off |
SW3.2 | On | Off |
SW3.3 | Off | Off |
SW3.4 | On | Off |
SW3.5 | Off | Off |
SW3.6 | On | On |
SW3.7 | Off | Off |
SW3.8 | Off | Off |
SCIF Download mode (w/o verification) (C) Renesas Electronics Corp. -- Load Program to SystemRAM --------------- please send !
Teta Term: Control -> Macro -> ICUMX_Loader_and_Flashwriter_Package_for_R-Car_S4_Starter_Kit_SDKv3.xx.0/Flash_Bootloader_S4SK.ttl
The following log is output:
Flash writer for R-Car S4 Series Rev.0.13.0 Jan.16,2023 > xls2 ===== Qspi/HyperFlash writing Command ============= (snip) SAVE SPI-FLASH....... complete! ======= Qspi/HyperFlash Save Information ================= SpiFlashMemory Stat Address : H'00F80000 SpiFlashMemory End Address : H'0101BD2A =========================================================== >
Linux user
R-Car S4 Starter Kit Configuration Tool (S4_StarterKit_Configurator.exe)
You can download here
Please download the latest Configuration Tool.
See board manual for details.
How to use
- Connect the Windows PC to the S4SK(CN13) with a USB serial cable.
- Close the terminal program
- If COM port Channel B(large COM port number) is blocked, e.g. by a terminal program, the configuration tool cannot communicate with the hardware.
- Execute S4_StarterKit_Configurator.exe
Tab of S4 Starter Kit
- The information shown will include the PCB version, the SoC version, the FPGA version, the PCB serial number, COM port number(ChA and ChB) and MAC address.
Tab of SoC mode configuration
- This tab allows to set the SoC mode pins.
Tab of On-board peripheral configuration
- This tab allows to enable or disable features of the R-Car S4 Starter Kit.
Tab of Power configuration
- This tab allows to make power and reset configurations of the R-Car S4 Starter Kit.
Tab of DIPSW
- This tab shows the current DIPSW settings of the R-Car S4 Starter Kit.
How to write FPGA
- If changed, press either "Write FPGA(volatile)" or "Write FPGA(non-volatile)".
- If "Write FPGA(non-volatile)" is pressed, the setting remains even if the power is turned off.
- To return to the initial state, press "Set defaults".
How to use two COM ports
When S4SK and CN13 are connected with a USB cable, two COM ports appear(Ex COM27 and COM28).
You can confirm them using S4_StarterKit_Configurator.exe
ChB(COM27) is disabled by default
Enable HSCIF1/SCIF0 of ChB and push "Wite FPGA (non-volatile)"
Confirmation of ChB(COM28) communication
Ex)
1) Boot Linux using ChA(COM27)
2) Set baudrate for ChB(COM28)
$ stty -F /dev/ttySC1 speed 115200
3) Open terminal program(baudrate = 115200) using ChB(COM28)
4) Output strings to ChB on Linux(ChA)
$ echo abcdefg > /dev/ttySC1
abcdefg <--- Output to ChB(COM28)
Note: Use HSCIF0 and HSCIF1 since the SDK v3.16.0/v3.16.1 doesn't support HSCIF2 and HSCIF3
Debug Interface
Debug0(CN10)
- Following parts are required in order to connect the E2 Emulator to Debug 0 of the R-Car S4 Starter Kit:
- [A] SICA20I2P
- [B] RTE0T00020KCA10000R
Debug1(CN2)
- The signal DCU1_RDY# is not connected by default, therefore the cores ICUMH and G4MH CANNOT be debugged.
- If you want to use Debug1, add a 0Ω resistor to R309 at your own risk.
Debug case
Debug0 [ Target CPU core ] Debug1 [ Target CPU core ] Debug0 [ Connection type ] Debug1 [ Connection type ] Case1 ICUMX - JTAG/LPD - Case2 CoreSight - JTAG - Case3 ICUMX CoreSight JTAG/LPD JTAG(*1) Case4 G4MH(ICUMH) - JTAG/LPD(*2) - Case5 ICUMX G4MH(ICUMH) JTAG/LPD JTAG/LPD(*3) Case6 G4MH(ICUMH) CoreSight JTAG/LPD(*2) JTAG(*1)
- (*1):Debugging from Debug1 supports only hot plug-in connection
- (*2): If the Boot Processor is ICUMX, a hot plug-in connection is recommended. (Normal connection may conflict with IPL execution on ICUMX)
- (*3): The signal DCU1_RDY# is not connected by default, therefore the cores ICUMH and G4MH cannot be debugged.
Known issues & Restrictions
- [Affected PCB version : v2.10] Simultaneous usage of Debug 0 and Debug 1 is not available.
- [Affected PCB version : v2.10] Connector CN2, “Debug 1” is intended to debug Arm CoreSight. By specification ICU-MH and G4MH cores are not supported.
- The signal RDY# is not connected by default, therefore the cores ICUMH and G4MH cannot be debugged.
- To be able to debug these cores, the resistor R309 needs to be assembled at your own risk.
- [Affected PCB version : v2.10] External tracing is not available.
- Internal tracing is available. The amount of traced data depends on the size of the internal trace memory (G4MH: 64 KiB, ARM: 32 KiB).
Q&A site
If you have any questions, feel free to post them here.
https://community.renesas.com/automotive/gateway/
FAQ site
- https://en-support.renesas.com/knowledgeBase/category/31891 (English page)
- https://ja-support.renesas.com/knowledgeBase/category/31892 (Japanese page)