R-Car/Boards/CCPF-SK

Introduction
This is the official Wiki for CCPF-SK. CCPF-SK is an expansion board for R-Car Starter Kit.

Board layout
This section contains information about CCPF-SK hardware.

Note: PCB images are under preparing

Hardware Feature

 * Connector
 * CN1 COM Express type connector 440pin
 * CN2 M.2 PCIe M-key SSD Card Socket ch0 (SSD,TPU support)
 * CN3 M.2 PCIe M-key SSD Card Socket ch1 (SSD,TPU support)
 * CN4 Micro HDMI1(only available on H3SK)
 * CN5 USB 3.0
 * CN6 USB 2.0
 * CN7 CAN0/CAN1
 * CN8 GPIO
 * CN9 Main Power Supply input (12VDC or 24VDC)
 * CN10 DEBUG SERIAL(for User)
 * CN11 DEBUG SERIAL(for R-Car Starter Kit)
 * CN12 Camera0 (MIPI CSI-2 4-Lane FPC connector)
 * CN13 Camera1 (MIPI CSI-2 2-Lane FPC connector)
 * CN14 RL78 DEBUG connector
 * CN15 FAN connector
 * CN16 PWRM external switch input
 * Swtich
 * SW1 CAN0 Termination ON/OFF
 * SW2 CAN1 Termination ON/OFF
 * SW3 Power ON/OFF toggle switch
 * SW4 PWRM Power ON push switch
 * SW5 PWRM Power OFF push switch
 * SW6 PWRM STANDBY push switch
 * SW7 RL78 MODE Dip switch
 * Board Specification
 * Dimensions: 120mm × 97mm
 * Board thickness: 1.6mm
 * External power supply 12V/5A or 24V/2.5A
 * Topr Operating ambient temperature. Free Air room temperature 25deg ave.
 * DCIN (+6~+30V)

Where to buy
CCPF-SK is sold on Shimafuji Electric Incorporated in World wide.
 * English page
 * Japanese page

Official board documentation
Board manual
 * English page
 * Japanese page

CCPF-SK BSP

 * Refer to Quick startup guide for quick start CCPF-SK within 30min.
 * Refer to yocto page for steps necessary for building and running a Yocto image.

How to update of Sample Loader and MiniMonitor
New version: Sample Loader: V3.02 MiniMonitor: V3.02

Download:

[Note] Sample Loader and MiniMonitor version of LATEST SK is V5.08. DON'T update those SK.(You can update firmware(*) while SK and CCPF-SK connected) Please check carefully before updating. Why update?:

ComEx Mechanical Specification: Durability: 30 mating cycles. This new version(V3.02) can update firmware(*) while keeping Starter Kit(SK) and CCPF-SK connected.

(*)firmware: bootparam_sa0.srec, bl2-h3ulcb/m3ulcb.srec, cert_header_sa6.srec, bl31-h3ulcb/m3ulcb.srec, tee-h3ulcb/m3ulcb.srec, u-boot-elf.srec

How to update: 

 Power off the CCPF-SK and remove SK from CCPF-SK  Turn off SW3 Remove SK from CCPF-SK

 Set SW of SK as follows:  SW1:OFF SW6:OFF/OFF/OFF/OFF SW2:OFF/OFF/OFF/OFF

 Power on the SK (This means that you need to prepare a 5V AC-adapter for SK)  Press SW8 SCIF Download mode starts

 Send the following file from console(Ex: minicom):  type "ctrl+A S" and select upload method "ascii", then choose file for uploading the following file. Case of M3SK: BoardID_Writer_SCIF_64bit_ID=0x10(StarterKit-Pro_Rev1.0).mot Case of H3SK: BoardID_Writer_SCIF_64bit_ID=0x58(StarterKit-Premier_Rev1.0OB).mot

NOTE: Under Linux, if you got problem transferring this file, it may because of special character in its name.

Solution is to open a new terminal then manually launch the transfer with the following command with double quote around filename (Ex: serial link on ttyUSB0 for M3SK):
 * 1) /usr/bin/ascii-xfr -dsv "BoardID_Writer_SCIF_64bit_ID=0x10(StarterKit-Pro_Rev1.0).mot" > /dev/ttyUSB0

You can confirm the following log (Ex: M3SK): +-+ +-+ Product Code : R-Car M3 ES1.0
 * Board ID Writer V01 2017.06.23 |

Now Board ID : Unknown Board Rev7 (0xFF) New Board ID : Starter Kit Rev0 (0x10) Wrote Board ID : Starter Kit Rev0 (0x10)

Writer Program End.

 Power off the SK  Press SW8

 Set SW as follows:  M3SK = SW6:OFF/ON/OFF/OFF H3SK = SW6:OFF/OFF/OFF/OFF

 Power on the SK  Press SW8 SCIF Download mode starts

 Send the following file from console: </li> type "ctrl+A S" and select upload method "ascii", then choose file for uploading the following file. Case of M3SK: AArch32_Gen3_H3_M3_Scif_MiniMon_V3.02.mot Case of H3SK: AArch64_Gen3_H3_M3_Scif_MiniMon_V3.02.mot You can confirm the following log (Ex: M3SK): R-Car Gen3 Scif Download MiniMonitor V3.02 2017.07.04 Work Memory    : SystemRAM Board Judge    : Used Board-ID	<-- Attention!! DDR_Init       : boardcnf[3] Starter Kit (M3SIP) Board Name     : Starter Kit Pro Product Code   : R-Car M3 ES1.0

>

 Flash AArch64_Gen3_H3_M3_SPI_LOADER_V3.02.mot. In console execute xls command (load program to hyper flash) and provide the following inputs: </li> xls 1 y y y 1 type "ctrl+A S" and select upload method "ascii", then choose file for uploading "AArch64_Gen3_H3_M3_SPI_LOADER_V3.02.mot", after upload finished press y key

 Flash AArch64_Gen3_Spi_MiniMon_V3.02_E6330000.mot. In console execute xls command (load program to hyper flash) and provide the following inputs: </li> xls 1 y y y 3 e6330000 type "ctrl+A S" and select upload method "ascii", then choose file for uploading "AArch64_Gen3_Spi_MiniMon_V3.02_E6330000.mot", after upload finished press y key

 Power off the SK </li> Press SW8

 Verify Sample Loader and MiniMonitor version </li> SW1:OFF M3SK SW6[1]=OFF, SW6[2]=OFF, SW6[3]=OFF, SW6[4]=ON H3SK ws1.0: SW6[all]=OFF ws1.1/ws2.0: SW6[1]=ON, SW6[2]=ON, SW6[3]=OFF, SW6[4]=ON Press SW8 You can confirm the following log (Ex: H3SK): R-Car Gen3 Sample Loader V3.02 2017.07.04		<-- !! V3.02 !! For Salvator, Kriek , and StarterKit. Board Judge    : Used Board-ID DDR_Init       : boardcnf[7] Salvator / Starter Kit (H3SIP_VER2.0) INITIAL SETTING : Starter Kit Premier / R-Car H3 ES2.0 CPU            : AArch64 CA57 DRAM           : LPDDR4 DDR3200 DEVICE         : QSPI Flash(S25FS128) at 40MHz DMA BOOT           : Normal Boot BACKUP         : DDR Cold Boot jump to 0xE6330000

R-Car Gen3 MiniMonitor V3.02 2017.07.04		<-- !! V3.02 !! Work Memory    : SystemRAM Board Name     : Starter Kit Premier Product Code   : R-Car H3 ES2.0

>

 Set SW(Kernel boot mode) as follows: </li> SW1:ON M3SK = SW6[all]:ON H3SK ws1.0 = SW6:OFF/OFF/OFF/ON ws1.1 = SW6:ON/OFF/ON/ON ws2.0 = SW6[all]:ON

 You can update the firmware with SK connected to CCPF-SK. </li> How to update: http://elinux.org/R-Car/Boards/M3SK#Flashing_firmware http://elinux.org/R-Car/Boards/H3SK#Flashing_firmware </ol>