background image

 
 

 
 
 
 
 
 
 
 
 
 

 
 
 
 

All information contained in these materials, including products and product specifications, represents 
information on the product at the time of publication and is subject to change by Renesas Electronics 
Corporation without notice. Please review the latest information published by Renesas Electronics 
Corporation through various means, including the Renesas Electronics Corporation website 
(http://www.renesas.com). 

 
 

RZ/A1H Group

 

Renesas Starter Kit+ Tutorial Manual

For DS-5

Rev. 2.00 Mar 2014

www.renesas.com

32

RENESAS MCU 

User's Manual 

32 

RZ Family / A1H Series 

Содержание RZ/A1H Series

Страница 1: ...ange by Renesas Electronics Corporation without notice Please review the latest information published by Renesas Electronics Corporation through various means including the Renesas Electronics Corporation website http www renesas com RZ A1H Group Renesas Starter Kit Tutorial Manual For DS 5 Rev 2 00 Mar 2014 www renesas com 32 RENESAS MCU User s Manual 32 RZ Family A1H Series ...

Страница 2: ... range heat radiation characteristics installation and other product characteristics Renesas Electronics shall have no liability for malfunctions or damages arising out of the use of Renesas Electronics products beyond such specified ranges 7 Although Renesas Electronics endeavors to improve the quality and reliability of its products semiconductor products have specific characteristics such as th...

Страница 3: ...e equipment Its use outside the laboratory classroom study area or similar such area invalidates conformity with the protection requirements of the Electromagnetic Compatibility Directive and could lead to prosecution The product generates uses and can radiate radio frequency energy and may cause harmful interference to radio communications However there is no guarantee that interference will not ...

Страница 4: ...es section The revision history summarizes the locations of revisions and additions It does not list all revisions Refer to the text of the manual for details The following documents apply to the RZA1H Group Make sure to refer to the latest versions of these documents The newest versions of the documents listed may be obtained from the Renesas Electronics Web site Document Type Description Documen...

Страница 5: ...grated Debugging Environment EMC Electromagnetic Compatibility ESD Electrostatic Discharge J LINK On chip Debugger LCD Liquid Crystal Display LED Light Emitting Diode MCU Micro controller Unit QSPI Quad Serial Programming Interface RSK Renesas Starter Kit RSK Renesas Starter Kit denotes extra functionality over standard RSK ...

Страница 6: ...orting Sample Code 9 3 4 Adding GNU Toolchain Support for DS 5 12 3 5 Build Configurations and Debug Sessions 16 3 6 Running the Tutorial 20 3 7 Running the code from the QSPI Flash ROM 21 4 Reviewing the Tutorial Program 23 4 1 Main Functions 23 5 QSPI Boot Loader 27 5 1 Loading Process 27 5 2 Boot Loader Sections 28 5 3 Generating a Binary File 29 5 4 Programming a User Application Program 29 6 ...

Страница 7: ...nual describes how to get the RSK tutorial started and basic debugging operations 1 2 Features This RSK provides an evaluation of the following features Renesas microcontroller programming User code debugging User circuitry such as switches LEDs and a potentiometer Sample application Sample peripheral device initialisation code The RSK board contains all the circuitry required for microcontroller ...

Страница 8: ...een completed Please refer to the Quick Start Guide for details of preparing the configuration These tutorials are designed to show you how to use the RSK and are not intended as a comprehensive introduction to the DS 5 environment compiler toolchains or the J Link Lite debugger Please refer to the relevant user manuals for more in depth information 2 1 Note Regarding Source Code Due to the projec...

Страница 9: ...Position Switch Position JP11 2 3 SW4 1 OFF SW6 1 OFF JP12 1 2 SW4 2 OFF SW6 2 ON JP18 1 2 SW4 3 OFF SW6 3 OFF JP21 1 2 SW4 4 OFF SW6 4 ON PWR_SEL 2 3 SW4 5 OFF SW6 5 ON SW4 6 OFF SW6 6 ON SW4 7 OFF SW4 8 OFF 3 3 Starting DS 5 and Importing Sample Code Start Eclipse for DS 5 by selecting it from the Start Menu All Programs ARM DS 5 Eclipse for DS 5 The first dialog box to appear will be the Worksp...

Страница 10: ...0 Page 10 of 34 The DS 5 welcome splash screen will appear Click the Go to the workbench arrow button on the far right circled in the screenshot opposite Once the environment has initialised right click in the Project Explorer window and select Import Mar 21 2014 ...

Страница 11: ... you to specify a project to import Click the Browse button and locate the following directory C Renesas Workspace RSK RSK RZA1_V02 Ensure that the Copy projects into workspace option is ticked Caution Ticking this box will copy the projects from the location where they were installed It is important to select this option to preserve the projects that were installed so that you can return to them ...

Страница 12: ...ary to import the GNU ARM RZ Toolchain into DS 5 The steps required to import the toolchain are described in this section Note that these steps only need to be performed once per WindowsTM workstation This process will require internet access to download the referenced packages From the DS 5 Help menu select Install New Software From the Install dialog select Add Mar 21 2014 ...

Страница 13: ...pecify the zip archive which is supplied with the RSK Click the Archive button and browse to C Renesas Workspace RSK RSK RZA1_V0 2 Renesas_ARM RZ_Update zip Click OK Back in the Install dialog ensure that the tick box next to Renesas ARM RZ Update is selected then click Next The Install dialog will appear click Next Mar 21 2014 ...

Страница 14: ... Rev 2 00 Page 14 of 34 The Review Licenses dialog will appear click Finish A security dialog will appear Click OK The toolchain software will be installed After installation has completed it will be necessary to restart DS 5 Click Restart Now Mar 21 2014 ...

Страница 15: ...5 of 34 Once DS 5 has restarted in the DS 5 Help menu there will now be a new item Integrate Toolchain Select this menu item In the Preferences dialog under C C Renesas Renesas Toolchain Management ensure the tick box is checked as shown opposite then click OK Mar 21 2014 ...

Страница 16: ... linear The Debug build configuration provided for this Tutorial program is configured to load the code directly into RAM Click the top level Tutorial folder again and then the arrow next to the build button hammer icon and select the Debug option DS 5 will now build the code The output from the build process will be presented in the console window of DS5 3 5 2 Debug Configuration Click the arrow ...

Страница 17: ...rowse button A security dialog may appear indicating that the Windows Firewall has blocked some features of the eclipse platform Under Allow eclipse to communicate on these networks ensure the check box next to Private networks such as my home or work network is ticked Click Allow access In the Select Debug Hardware dialog select J LinkUSB xxxxxxxx Click OK Append device R7S721001_DualSPI to the c...

Страница 18: ...ev 2 00 Page 18 of 34 In the Files tab under Target Configuration Application on host to download click the Workspace button Browse to Tutorial Debug RZ_A1H_Tutorial_RSK x and click OK Click Apply to save the changes then select the Debugger tab Mar 21 2014 ...

Страница 19: ...umper is set to match the power supply See the RSK RZA1H User s manual to locate the PWR_SEL jumper Connect a PSU to the RSK RZA1H PWR connector and apply power Click Debug to start the new debug session Before downloading the code a dialog box will appear asking if you would like to switch to the DS 5 Debug perspective If you agree click Remember my decision to prevent this dialog box from appear...

Страница 20: ...n within the top right corner of the screen as shown opposite and select the C C perspective 3 6 Running the Tutorial Once the code has been downloaded the program counter will stop on the first instruction in the main function Click the Continue button in the Debug perspective to run the rest of the code It is recommended that you run the entire tutorial demo first before continuing to debug it M...

Страница 21: ... On start up the boot loader will check the presence of the Tutorial code and then execute it If the code is not present it will flash the LED1 continuously The code can be loaded as follows Disconnect the debug session using the disconnect icon Open the Windows Explorer and select the Tutorial project directory Execute the file LoadTutorialToQSPI bat Select Option 1 Debug This will now load the T...

Страница 22: ... please re install it using QSPI_LOADER sample On start up the boot loader will check the presence of the above code and then transfer it into RAM and execute it If the code is not present it will flash the LED1 continuously The code can be loaded as follows Start the Tutorial project in DS5 as described above Select the arrow next to hammer icon and select Release Open the Windows Expolrer and se...

Страница 23: ... The debugger should connect and the program will be stopped on the first line of the main function as shown in the screenshot opposite Click on the line containing the flashled function call in main to position the cursor Right click and select Run to Selection to execute the program up to this line The R_LCD_Init function call enables and configures the LCD and Display_LCD will write RSK RZA1H o...

Страница 24: ... The program will now run the flashled function This function periodically polls the user switches and flashes the LEDs 200 times or until a user switch has been pressed The program counter should come to a halt at the static_test function Step into the function by clicking the Step Source Line button Alternatively press F5 Mar 21 2014 ...

Страница 25: ...ave been changed the LCD bottom line will return to displaying STATIC The debugger will stop the program at the cleardisplayarea function Press F6 or click Step Over to execute this function and clear the display The next portion of code sets up a timer to flash LEDs at a variable rate in an interrupt handler The timer is set up by calls to R_OSTM_Init and R_OSTM_Open The timer variable rate is co...

Страница 26: ...interrupt handler Continue to execute the program by clicking the Continue button The program will halt at the breakpoint due to the timer s period elapsing Remove the breakpoint by double clicking on the breakpoint column Continue to execute the program by clicking the Continue button For further details regarding hardware configuration please refer to the RSK RZA1H User s Manual and the RZA1H Gr...

Страница 27: ...ed cannot be altered whilst the code is running from QSPI The boot loader then transfers the next section section 2 Spibsc_init2 of the code into RAM and executes it This code will change the QSPI mode of operation to dual QSPI in quad mode enabling data transfer of 8 bits at a time It then checks if a user application is present in the QSPI starting from location 0x18080000 The check is performed...

Страница 28: ...using both the devices This code is executed in RAM as it cannot configure the QSPI when running executing from it It then checks if there is an application in the start location 0x18080000 If there is it checks if this application should be executed from QSPI or from RAM For QSPI it jumps to the start location if not it copies the code into RAM at location 0x20040000 and then jumps to it Note Thi...

Страница 29: ...ng files from the RZ_A1H_Tutorial_RSK folder to the root folder of your application LoadTutorialToQSPI bat LoadTutorialToQSPIDebug Command LoadTutorialToQSPIRelease Command Make the following changes taking care not to add or remove spaces to the line numbers in the LoadTutorialToQSPI bat file Line 4 Replace the word Tutorial with the name of your user application Line 32 Replace RZ_A1H_Tutorial_R...

Страница 30: ...ng system demonstration for the Renesas RZ microcontrollers ARM Cortex A9 is provided free of charge by FreeRTOS This can be found on the FreeRTOS website at http www freertos org Renesas_RZ_Cortex A9 RTOS html Trademarks All brand or product names used in this manual are trademarks or registered trademarks of their respective companies or organisations Copyright This document may be wholly or par...

Страница 31: ...REVISION HISTORY RSK RZA1H Tutorial Manual Description Rev Date Page Summary 1 00 Nov 10 2013 First Edition issued 2 00 Mar 21 2014 Boot Loader section moved to the User Manual ...

Страница 32: ...Renesas Starter Kit Manual Tutorial Manual Publication Date Rev 2 00 Mar 21 2014 Published by Renesas Electronics Corporation ...

Страница 33: ... 555 LanGao Rd Putuo District Shanghai China Tel 86 21 2226 0888 Fax 86 21 2226 0999 Renesas Electronics Hong Kong Limited Unit 1601 1613 16 F Tower 2 Grand Century Place 193 Prince Edward Road West Mongkok Kowloon Hong Kong Tel 852 2886 9318 Fax 852 2886 9022 9044 Renesas Electronics Taiwan Co Ltd 13F No 363 Fu Shing North Road Taipei Taiwan Tel 886 2 8175 9600 Fax 886 2 8175 9670 Renesas Electro...

Страница 34: ...RZA1H Group R20UT2845EG0200 ...

Отзывы: