background image

 

General Precautions in the Handling of Microprocessing Unit and Microcontroller 
Unit Products 

The following usage notes are applicable to all Microprocessing unit and Microcontroller unit products from Renesas. For detailed usage notes on the products 
covered by this document, refer to the relevant sections of the document as well as any technical updates that have been issued for the products. 

1.  Precaution against Electrostatic Discharge (ESD) 

A strong electrical field, when exposed to a CMOS device, can cause destruction of the gate oxide and ultimately degrade the device operation. Steps 

must be taken to stop the generation of static electricity as much as possible, and quickly dissipate it when it occurs. Environmental control must be 

adequate. When it is dry, a humidifier should be used. This is recommended to avoid using insulators that can easily build up static electricity. 

Semiconductor devices must be stored and transported in an anti-static container, static shielding bag or conductive material. All test and measurement 

tools including work benches and floors must be grounded. The operator must also be grounded using a wrist strap. Semiconductor devices must not be 

touched with bare hands. Similar precautions must be taken for printed circuit boards with mounted semiconductor devices. 

2.  Processing at power-on 

The state of the product is undefined at the time when power is supplied. The states of internal circuits in the LSI are indeterminate and the states of 

register settings and pins are undefined at the time when power is supplied. In a finished product where the reset signal is applied to the external reset 

pin, the states of pins are not guaranteed from the time when power is supplied until the reset process is completed. In a similar way, the states of pins in 

a product that is reset by an on-chip power-on reset function are not guaranteed from the time when power is supplied until the power reaches the level 

at which resetting is specified. 

3.  Input of signal during power-off state 

Do not input signals or an I/O pull-up power supply while the device is powered off. The current injection that results from input of such a signal or I/O 

pull-up power supply may cause malfunction and the abnormal current that passes in the device at this time may cause degradation of internal elements. 

Follow the guideline for input signal during power-off state as described in your product documentation. 

4.  Handling of unused pins 

Handle unused pins in accordance with the directions given under handling of unused pins in the manual. The input pins of CMOS products are 

generally in the high-impedance state. In operation with an unused pin in the open-circuit state, extra electromagnetic noise is induced in the vicinity of 

the LSI, an associated shoot-through current flows internally, and malfunctions occur due to the false recognition of the pin state as an input signal 

become possible. 

5.  Clock signals 

After applying a reset, only release the reset line after the operating clock signal becomes stable. When switching the clock signal during program 

execution, wait until the target clock signal is stabilized. When the clock signal is generated with an external resonator or from an external oscillator 

during a reset, ensure that the reset line is only released after full stabilization of the clock signal. Additionally, when switching to a clock signal produced 

with an external resonator or by an external oscillator while program execution is in progress, wait until the target clock signal is stable. 

6.  Voltage application waveform at input pin 

Waveform distortion due to input noise or a reflected wave may cause malfunction. If the input of the CMOS device stays in the area between V

IL

 (Max.) 

and V

IH

 (Min.) due to noise, for example, the device may malfunction. Take care to prevent chattering noise from entering the device when the input level 

is fixed, and also in the transition period when the input level passes through the area between V

IL

 (Max.) and V

IH

 (Min.). 

7.  Prohibition of access to reserved addresses 

Access to reserved addresses is prohibited. The reserved addresses are provided for possible future expansion of functions. Do not access these 

addresses as the correct operation of the LSI is not guaranteed. 

8.  Differences between products 

Before changing from one product to another, for example to a product with a different part number, confirm that the change will not lead to problems. 

The characteristics of a microprocessing unit or microcontroller unit products in the same group but having a different part number might differ in terms of 

internal memory capacity, layout pattern, and other factors, which can affect the ranges of electrical characteristics, such as characteristic values, 

operating margins, immunity to noise, and amount of radiated noise. When changing to a product with a different part number, implement a system-

evaluation test for the given product. 

 

Summary of Contents for RZ/V2M

Page 1: ...e of publication and is subject to change by Renesas Electronics Corp without notice Please review the latest information published by Renesas Electronics Corp through various means including the Renesas Electronics Corp website http www renesas com RZ V2M Linux Package Start Up Guide Rev 1 10 Oct 2021 RZ V2M User s Manual www renesas com ...

Page 2: ...D ALL WARRANTIES EXPRESS OR IMPLIED WITH RESPECT TO THIS DOCUMENT AND ANY RELATED OR ACCOMPANYING SOFTWARE OR HARDWARE INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE 8 When using Renesas Electronics products refer to the latest product information data sheets user s manuals application notes General Notes for Handling and Using Semiconduc...

Page 3: ...put signal during power off state as described in your product documentation 4 Handling of unused pins Handle unused pins in accordance with the directions given under handling of unused pins in the manual The input pins of CMOS products are generally in the high impedance state In operation with an unused pin in the open circuit state extra electromagnetic noise is induced in the vicinity of the ...

Page 4: ...spective owners Linux is a registered trademark or trademark of Linus Torvalds Yocto Project is a registered trademark or trademark of Linux Foundation U boot is a registered trademark or trademark of DENX Software Engineering Trademark or registered trademark marks may be omitted in this document The following documents apply to RZ V2M Linux Package Document Type Description Document Title Releas...

Page 5: ...apacity SDHI SD card host interface H W module SDIO SD Input Output SDK Software development kit SDXC SDXC SD extended capacity TCP Transmission Control Protocol UART Universal asynchronous receiver transmitter UDP User Datagram Protocol USB Universal serial bus V4L2 Video for Linux 2 WDT Watchdog timer xHCI Extensible Host Controller Interface 3 Conventions Command line runs on Linux host PC will...

Page 6: ...2 3 Insert a micro SD 12 3 2 4 LEDs 13 4 Boot Loader U Boot Loader Binaries 14 4 1 Boot loader and U Boot Images 14 4 2 Write loader binaries to eMMC 14 5 Run on the Board 23 5 1 Power on the board 23 5 2 Startup Linux 23 5 3 Shutdown the Board 24 6 Exporting Toolchains 25 7 Flash Writer 26 7 1 Functions 26 7 2 Environmental Requirement 26 7 3 Write loader binaries to eMMC 27 8 Appendix 34 8 1 Bui...

Page 7: ...tion Kit Please contact your Renesas representatives if you have any questions about this package 1 1 RZ V2M Linux BSP Package files Refer to RZ V2M Linux Package Release Note hereafter release note for the contents of files included in this package 1 2 Environmental Requirement Figure 1 1 shows the recommended environment for this package This environment uses the equipment and software listed in...

Page 8: ...ecessary OS Ubuntu 16 04 LTS Use a 64bit OS Windows PC Control the target board with terminal software OS Windows 10 recommended Terminal Software Control serial console of the target board Tera Term is recommended and available at https ttssh2 osdn jp index html en VCP Driver Virtual COM Port driver to enable the communication between Windows PC and the target board via USB This is virtually used...

Page 9: ...using the Yocto Project refer to https www yoctoproject org docs current brief yoctoprojectqs brief yoctoprojectqs html If Git has not been configured yet set Git coifing before building the Yocto package Run the following commands to set a username and mail address git config global user email you example com git config global user name Your Name Step 2 Set the environment variable Set the enviro...

Page 10: ... RZ V2M ISP Support Package apply all necessary recipes required for the build environments for these packages before executing bitbake commands Refer to each package s document to know how to apply the patches and build bitbake core image target Table 2 1 core image target core image target Detail core image bsp Basic BSP support core image minimal Minimum sets of components Notes 1 Building by b...

Page 11: ...aluation board dtb WORK build tmp deploy images rzv2m Linux kernel image Image rootfs core image bsp rzv2m tar bz2 1st loader binary loader_1st_128kb bin Boot parameter for 2nd loader loader_2nd bin 2nd loader binary loader_2nd_param bin U Boot binary u boot bin Boot parameter for u boot u boot_param bin Note Store these loader binaries in the appropriate partition on the SD card when writing load...

Page 12: ...ot files and partitions Partition No Size File system format File name Description 1 128MB or more FAT Image Linux kernel image r9a09g011gbg evaluation board dtb Device tree binary 2 The rest ext3 core image bsp rzv2m tar bz2 Root file system image rdk_shutdown Shutdown program Note These files will be generated after building bitbake Refer to Table 2 2 about stored directories 3 1 2 Prepare for b...

Page 13: ...9807 128M Created a new partition 1 of type Linux and of size 128 MiB Command m for help n Partition type p primary 1 primary 0 extended 3 free e extended container for logical partitions Select default p Press Enter Using default response p Partition number 2 4 default 2 Press Enter First sector 264192 30199807 default 264192 Press Enter Last sector sectors or size K M G T P 264192 30199807 defau...

Page 14: ...p 2 Store system files to the SD Card FAT partition Store Linux image and device tree binary listed in Table 3 1 under FAT partition on SD card Linux image and device tree binary are in WORK build tmp deploy images rzv2m Linux kernel image Image and Device tree binary r9a09g011gbg evaluation board dtb sudo mount dev sdb1 media cd media sudo cp WORK build tmp deploy images rzv2m Image sudo cp WORK ...

Page 15: ... 1 3 Set U Boot Environment Variables Connect between the RZ V2M Evaluation Kit and Windows PC with a serial to micro USB Cable And start the terminal software Tera Term on Windows PC Refer to 3 2 2 Terminal software setting and set up the terminal software After this setting power on the RZ V2M Evaluation Kit and U Boot will start When starting the countdown on the console press Enter to move U B...

Page 16: ...t 8 2021 3 2 Board Setting 3 2 1 Switch Confirm the switch setting shown in the red frame shown below Figure 3 1 Switch location and setting Table 3 2 SW2 Main setting Mode Switch 1 Switch 2 Switch 3 Switch 4 Normal OFF OFF OFF OFF Debug OFF OFF ON OFF SW1 Base SW2 Main Normal mode Debug Mode ...

Page 17: ...ble to Windows PC shown below Figure 3 2 Serial to micro USB cable connection Two serial ports are detected on the PC after injecting the cable Choose Silicon Labs Dual CP2105 USB to UART Bridge Standard COM Port The terminal software should be set the serial connection setting as follows Menu Setup Serial port Figure 3 3 Terminal software setting Socket Main CN5 ...

Page 18: ...ware setting 3 2 3 Insert a micro SD Set up a micro SD card as described in 3 1 SD Card Setting and insert a micro SD card into the slot shown in the following figure Figure 3 5 micro SD card slot Note The booting data should be written to the SD card beforehand to run the SD card booting on the RZ V2M Evaluation Kit micro SD card slot Main CN6 ...

Page 19: ...ide 3 Preparation R01US0527EJ0110 Rev 1 10 Page 13 of 39 Oct 8 2021 3 2 4 LEDs In this package LEDs shown in the following figure are used to know the status of Linux power on or shutdown Figure 3 6 LEDs LED1 Base LED2 Base LED3 Main ...

Page 20: ...rameter for u boot u boot bin H 57F00000 Boot partition 1 H 000902 H 7F179 U Boot binary Notes 1 The sector size is 512bytes 2 Each file size is the file size of the loader binary file provided in this package These file sizes may be different from the loader binary files generated by bitbake Also the size of these files may change in future versions 3 These RAM areas are not fixed because these b...

Page 21: ...version of the Linux package you use Enter the appropriate number and click OK Notes 1 Close a log file if you use the log function on Tera term before you run this script file 2 version_number indicates the Linux package version number Please use a file with the same number as the version of the Linux Package you are using Figure 4 1 Text box to select the target version The following pop up imag...

Page 22: ...the error message in the log file and take appropriate action according to the error message Refer to Table 4 2 for the eMMC write error and related operations After writing run the following commands to set the u boot environment variables to their default values env default a The following information describes each case of writing to the eMMC successfully or not This message will appear when th...

Page 23: ...0 loader_1st_128kb bin 131072 bytes read in 6 ms 20 8 MiB s CRC check of 1st Loader crc32 41000000 20000 crc32 for 41000000 4101ffff 4620b7df Extract 2nd loader param to DDR fatload mmc 0 1 41030000 loader_2nd_param bin 8 bytes read in 1 ms 7 8 KiB s CRC check of 2nd Loader param md l 41030000 2 41030000 00032520 000036a2 Extract 2nd loader to DDR fatload mmc 0 1 41030200 loader_2nd bin 206112 byt...

Page 24: ...8 bit Erase Group Size 512 KiB HC WP Group Size 8 MiB User Capacity 14 5 GiB Boot Capacity 8 MiB ENH RPMB Capacity 4 MiB ENH Read 1st loader to eMMC mmc read 40000000 0 100 MMC read dev 1 block 0 count 256 256 blocks read OK Read 2nd loader param to eMMC mmc read 40030000 100 1 MMC read dev 1 block 256 count 1 1 blocks read OK Read 2nd loader to eMMC mmc read 40030200 101 300 MMC read dev 1 block ...

Page 25: ...ion Your devices Erase group is 0x400 The erase range would be change to 0x1400 0x1bff 1024 blocks erased OK Write 1st loader to eMMC mmc write 0x41000000 0 100 MMC write dev 1 block 0 count 256 256 blocks written OK Write 2nd loader param to eMMC mmc write 41030000 100 1 MMC write dev 1 block 256 count 1 1 blocks written OK Write 2nd loader to eMMC mmc write 41030200 101 300 MMC write dev 1 block...

Page 26: ... OK Read U boot to eMMC mmc read 42140200 902 400 MMC read dev 1 block 2306 count 1024 1024 blocks read OK CMP 1st loader cmp l 41000000 42000000 8000 Total of 32768 word s were the same CMP 2nd loader param cmp l 41030000 42030000 2 Total of 2 word s were the same CMP 2nd loader cmp l 41030200 42030200 18000 Total of 98304 word s were the same CMP U boot param cmp l 41140000 42140000 2 Total of 2...

Page 27: ...d No 3 Failed to load loader_2nd_param bin from SD No 4 Failed to load loader_2nd bin from SD No 5 Failed to load u boot_param bin from SD No 6 Failed to load u boot bin from SD No 7 loader_1st_128kb bin is CRC error The CRC value of the file is different Write the appropriate Linux package version file to the SD card No 8 loader_2nd_param bin is CRC error No 9 loader_2nd bin is CRC error No 10 ub...

Page 28: ... executing rdk_shutdown confirm LED2 Base and LED3 Main are turned off Check the LED2 Base and LED3 Main and turn off the power switch SW1 Base on the RZ V2M Evaluation Kit Note Be sure to follow the steps correctly when shut down the system 1 run rdk_shutdown 2 Turn SW1 Base off 3 Remove AC adapter from the outlet When finished using the system completely If the shutdown process does not follow t...

Page 29: ...ter is connected the LED1 Base will light up After turning on SW1 Base LED3 Main and LED2 Base will light up and RZ V2M will start up 5 2 Startup Linux When you turn on the power switch the U Boot and Linux will startup After booting check the serial console on Windows PC The root file system will be booted after the Linux kernel initializing The red line in the following figure will appear after ...

Page 30: ...off sequence on rootfs Step 2 Confirm the power off After executing rdk_shutdown confirm LED2 Base and LED3 Main are turned off Step 3 Turn off the power switch on the board After checking the LED2 Base and LED3 Main turn SW1 Base off Note Be sure to follow the steps correctly when shut down the system 1 run rdk_shutdown 2 Turn SW1 Base off 3 Remove AC adapter from the outlet When finished using t...

Page 31: ...bitbake core image bsp bitbake core image bsp c populate_sdk Step 1 Building toolchain package with bitbake Run the following commands on Linux PC and build the SDK for core image bsp in WORK build bitbake core image bsp c populate_sdk Step 2 Install toolchain After the build the SDK installer will be generated Run the install shell poky glibc x86_64 core image bsp aarch64 toolchain 2 4 3 sh on Li...

Page 32: ... boot loader and U Boot images are pre written to the eMMC THGBMJG7C1LBAIL RZ V2M Base Board Base Connected to CN12 and CN 13 on the RZ V2M Board Board for the generation and supply of power Windows PC Control the target board with terminal software OS Windows 10 recommended Terminal Software Control serial console of the target board Tera Term is recommended and available at https ttssh2 osdn jp ...

Page 33: ... PC and RZ V2M Evaluation Kit with a serial to micro USB cable as shown in Figure 7 1 2 Start the terminal software on your PC The setting of the terminal software is shown in Table 7 2 3 Select the Standard COM Port on the terminal software Figure 7 1 Equipment setting Table 7 2 Terminal software setting Items Setting Baud rate bps 115200 Data bit 8 Parity bit None Stop bit 1 Flow control None RZ...

Page 34: ...etting for the forced write mode Switch 1 Switch 2 Switch 3 Switch 4 OFF OFF OFF ON Figure 7 2 LED lights in the forced write mode RZ V2M Board 4 Power on the RZ V2M Evaluation Kit Start RZ V2M in forced write mode and write the Flash writer binary from the micro SD card to eMMC 5 Check the lighting of LED2 Main like Figure 7 2 If the LED lights as shown in the above figure the writing to the eMMC...

Page 35: ...ot loader data stored in the eMMC File name Program top address eMMC save partition eMMC save sectors 1 File size byte 2 Description loader_1st_128kb bin H 80100000 Boot partition 1 H 000000 H 20000 1st loader binary loader_2nd_para m bin On RAMA area 3 Boot partition 1 H 000100 H 8 Boot parameter for 2nd loader loader_2nd bin H B6000000 Boot partition 1 H 000101 H 32520 2nd loader binary u boot_p...

Page 36: ...er_1st_128kb bin SAVE FLASH EM_WB Complete EM_WB EM_WB Start Please select eMMC Partition Area 0 User Partition Area 15388672 KBytes eMMC Sector Cnt H 0 H 01D59FFF 1 Boot Partition 1 4096 KBytes eMMC Sector Cnt H 0 H 00001FFF 2 Boot Partition 2 4096 KBytes eMMC Sector Cnt H 0 H 00001FFF Select area 0 2 1 Boot Partition 1 Program Please Input Start Address in sector 100 Input in hexadecimal Work RA...

Page 37: ...MC Partition Area 0 User Partition Area 15388672 KBytes eMMC Sector Cnt H 0 H 01D59FFF 1 Boot Partition 1 4096 KBytes eMMC Sector Cnt H 0 H 00001FFF 2 Boot Partition 2 4096 KBytes eMMC Sector Cnt H 0 H 00001FFF Select area 0 2 1 Boot Partition 1 Program Please Input Start Address in sector 901 Work RAM H B6000000 H B60FFFFF Clear Please Input File size byte 8 please send binary file Send u boot_pa...

Page 38: ...rt Address in sector 902 Work RAM H B6000000 H B60FFFFF Clear Please Input File size byte 7F179 please send binary file Send u boot bin SAVE FLASH EM_WB Complete How to send files by Tera term 1 Select File Send File as shown in the figure below Figure 7 4 Send files by Tera Term 2 Select the file to send Note that check Binary in the option ...

Page 39: ... booting by the boot loader and U boot Confirm that the loader binaries are written to eMMC normally by checking the operation of the boot loader and U boot 1 Check that SW2 Main is set to the normal mode 1 OFF 2 OFF 3 OFF 4 OFF Confirm that the startup operation mode is normal mode 2 Power on the RZ V2M Evaluation Kit 3 Confirm that the boot loader and U boot run normally Check this box ...

Page 40: ... Step 5 described in Chapter 2 Step 1 Extract OSS packages Run the following command and extract OSS packages cd WORK build 7z x oss_pkg 7z 001 Step 2 Download Linux kernel source codes Download the Linux kernel via the network cd WORK build bitbake linux renesas c fetch Step 3 Change the setting value of BB_NO_NETWORK Change the setting value of BB_NO_NETWORK to 1 in WORK build conf local conf BB...

Page 41: ...mands the following files will be generated Table 8 1 Generated files Boot loader and U Boot Generated files File name File stored path 1st loader binary loader_1st_128kb bin WORK build tmp deploy images rzv2m Boot parameter for 2nd loader loader_2nd bin 2nd loader binary loader_2nd_param bin U Boot binary u boot bin Boot parameter for u boot u boot_param bin Boot loader source codes Omitted WORK ...

Page 42: ...and CN 13 on the RZ V2M Board Board for the generation and supply of power Linux PC Build environment Max 100GB of free space on HDD is necessary OS Ubuntu 16 04 LTS Use a 64bit OS Windows PC Control the target board with terminal software OS Windows 10 recommended Terminal Software Control serial console of the target board Tera Term is recommended and available at https ttssh2 osdn jp index html...

Page 43: ...mcblk1 Welcome to fdisk util linux 2 30 Changes will remain in memory only until you decide to write them Be careful before using the write command Command m for help o Created a new DOS disklabel with disk identifier 0x0e5afecc Command m for help n Partition type p primary 0 primary 0 extended 4 free e extended container for logical partitions Select default p Press Enter Using default response p...

Page 44: ...ce Boot Start End Sectors Size Id Type dev mmcblk1p1 2048 264191 262144 128M 83 Linux dev mmcblk1p2 264192 30777343 30513152 14 6G 83 Linux Step 5 Format eMMC partitions Format each eMMC partition by the following commands root rzv2m mkfs ext3 L rootfs dev mmcblk1p2 mke2fs 1 43 5 04 Aug 2017 Creating filesystem with 3814144 4k blocks and 954720 inodes Filesystem UUID 6e5dc895 8778 4525 88ac 661ccf...

Page 45: ...t rootfs cd mnt rootfs usr bin root rzv2m mnt rootfs usr bin cp home root eMMC_Image rdk_shutdown 5 Run the shutdown command rdk_shutdown as follows root rzv2m mnt rootfs usr bin chmod x rdk_shutdown root rzv2m mnt rootfs usr bin sync root rzv2m mnt rootfs usr bin r dk_shutdown 6 Turn off the target board Step 7 Configure U boot environmental variables Power on the target board and press Enter to ...

Page 46: ...dated the figure for Version 1 1 0 17 20 4 2 1 Case of eMMC Writes Succeed Updated the log of eMMC writer script for Version 1 1 0 22 4 2 Step 5 Shutdown Added the notice when powering off 23 Figure 5 1 Root file system login screen Updated the figure for Version 1 1 0 24 5 3 Step 3 Turn off the power switch on the board Added the notice when powering off 29 Table 7 4 Boot loader data stored in th...

Page 47: ...RZ V2M Linux Package Start Up Guide Publication Date Rev 1 10 Oct 8 2021 Published by Renesas Electronics Corporation ...

Page 48: ...RZ V2M Linux Package Start Up Guide R01US0528EJ0110 ...

Reviews: