Renesas SH7670 manuel d'utilisation

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80

Aller à la page of

Un bon manuel d’utilisation

Les règles imposent au revendeur l'obligation de fournir à l'acheteur, avec des marchandises, le manuel d’utilisation Renesas SH7670. Le manque du manuel d’utilisation ou les informations incorrectes fournies au consommateur sont à la base d'une plainte pour non-conformité du dispositif avec le contrat. Conformément à la loi, l’inclusion du manuel d’utilisation sous une forme autre que le papier est autorisée, ce qui est souvent utilisé récemment, en incluant la forme graphique ou électronique du manuel Renesas SH7670 ou les vidéos d'instruction pour les utilisateurs. La condition est son caractère lisible et compréhensible.

Qu'est ce que le manuel d’utilisation?

Le mot vient du latin "Instructio", à savoir organiser. Ainsi, le manuel d’utilisation Renesas SH7670 décrit les étapes de la procédure. Le but du manuel d’utilisation est d’instruire, de faciliter le démarrage, l'utilisation de l'équipement ou l'exécution des actions spécifiques. Le manuel d’utilisation est une collection d'informations sur l'objet/service, une indice.

Malheureusement, peu d'utilisateurs prennent le temps de lire le manuel d’utilisation, et un bon manuel permet non seulement d’apprendre à connaître un certain nombre de fonctionnalités supplémentaires du dispositif acheté, mais aussi éviter la majorité des défaillances.

Donc, ce qui devrait contenir le manuel parfait?

Tout d'abord, le manuel d’utilisation Renesas SH7670 devrait contenir:
- informations sur les caractéristiques techniques du dispositif Renesas SH7670
- nom du fabricant et année de fabrication Renesas SH7670
- instructions d'utilisation, de réglage et d’entretien de l'équipement Renesas SH7670
- signes de sécurité et attestations confirmant la conformité avec les normes pertinentes

Pourquoi nous ne lisons pas les manuels d’utilisation?

Habituellement, cela est dû au manque de temps et de certitude quant à la fonctionnalité spécifique de l'équipement acheté. Malheureusement, la connexion et le démarrage Renesas SH7670 ne suffisent pas. Le manuel d’utilisation contient un certain nombre de lignes directrices concernant les fonctionnalités spécifiques, la sécurité, les méthodes d'entretien (même les moyens qui doivent être utilisés), les défauts possibles Renesas SH7670 et les moyens de résoudre des problèmes communs lors de l'utilisation. Enfin, le manuel contient les coordonnées du service Renesas en l'absence de l'efficacité des solutions proposées. Actuellement, les manuels d’utilisation sous la forme d'animations intéressantes et de vidéos pédagogiques qui sont meilleurs que la brochure, sont très populaires. Ce type de manuel permet à l'utilisateur de voir toute la vidéo d'instruction sans sauter les spécifications et les descriptions techniques compliquées Renesas SH7670, comme c’est le cas pour la version papier.

Pourquoi lire le manuel d’utilisation?

Tout d'abord, il contient la réponse sur la structure, les possibilités du dispositif Renesas SH7670, l'utilisation de divers accessoires et une gamme d'informations pour profiter pleinement de toutes les fonctionnalités et commodités.

Après un achat réussi de l’équipement/dispositif, prenez un moment pour vous familiariser avec toutes les parties du manuel d'utilisation Renesas SH7670. À l'heure actuelle, ils sont soigneusement préparés et traduits pour qu'ils soient non seulement compréhensibles pour les utilisateurs, mais pour qu’ils remplissent leur fonction de base de l'information et d’aide.

Table des matières du manuel d’utilisation

  • Page 1

    REJ1 1J0015-0101 Rev . 1.01 Issued: May 7. 2008 32 Renesas 32-Bit RISC Microcomputers SuperH TM RISC engine Family/SH7670 Series M3A-HS71 Inst allation Manual SH7670 CPU Board[...]

  • Page 2

    [...]

  • Page 3

    [...]

  • Page 4

    [...]

  • Page 5

    [ Indication of Warnings and Cautions ] The following explains the warnings and cauti ons indicated for the handli ng of the product. WANING If the product is improperly handled without regard for this indicati on, there will be a possibility of inf licting d eath or heavy wound o n perso ns. CA UTION If the product is improperly handled without re[...]

  • Page 6

    [...]

  • Page 7

    Important Before using this product, be sure to read the user’s manual (this user's manual) careful l y. Keep this user’s manual, and refer to this when you have ques tions ab out this product. About this product: The term “this product” referred to here mean the product manufactur ed by Renesas Technology Corporation. It does not incl[...]

  • Page 8

    [...]

  • Page 9

    Usage restrictions: This product has been dev eloped as a means of supporti ng s ystem development by users. Therefore, do n ot use it as a device used for equ ipment-embedded applicat ions. Also, do not use it for developing the s ystems or equipment used for the follo wing purpose s either: (1) Transportation and vehicul ar (2) Medical (equipment[...]

  • Page 10

    [...]

  • Page 11

    T able of Contents CHAPTER1 BEFORE USING THE SH7670 CPU BOARD ................................................................. 1-1 1.1 Overview ............................................................................................................................... ....................................... 1-2 1.2 Usage Precautions ...........[...]

  • Page 12

    5.2.3 Activating the Command Line W in dow ............................................................................................................... 5-10 5.3 Adding/Modifying Hard ware Setup Files .................................................................................................................... 5-10 5.3.1 Copying Hardware Se[...]

  • Page 13

    *This page is blank* Rev . 1.01 May 7, 2008 ( iii ) REJ1 1J0 015-0101[...]

  • Page 14

    [...]

  • Page 15

    Chapter1Before Using the SH7670 CPU Board Chapter1 Before Using the SH7670 CPU Board 1-1[...]

  • Page 16

    Before Using the SH7670 CPU Board 1.1 Overview Rev . 1.01 May 7, 2008 1-2 REJ1 1J0 015-0101 1 1.1 Overview The SH7670 CPU boar d(board type name: M3A-HS71) cons ists of the SH7670 CPU board and the sampl e software. This installation manual describes mainly how to set up the SH76 70 CPU board hard ware and software. For more information about SH767[...]

  • Page 17

    Before Using the SH7670 CPU Board 1.2.1 Symbols Used Rev . 1.01 May 7, 2008 1-3 REJ1 1J0 015-0101 1 <Caution Indication> CAUTION Regarding the reconstruction of this product: • Do not reconstruct this product. If the product has gotten out of order for reasons of disassembly or reconstruction, requests for repair may not be accepte d. Regar[...]

  • Page 18

    Before Using the SH7670 CPU Board 1.3 Procedure for Introducing This Product Rev . 1.01 May 7, 2008 1-4 REJ1 1J0 015-0101 1 1.3 Procedure for Introducing This Product In this manual, we follow the procedure outlin ed in Fig ure 1. 3.1 to perform the installation. Figure 1.3.1 SH7670 CPU board Install ation Procedure 1.4 Operating Guarantee for This[...]

  • Page 19

    Before Using the SH7670 CPU Board 1.5 Items to Be Prepared by User Rev . 1.01 May 7, 2008 1-5 REJ1 1J0 015-0101 1 1.5 Items to Be Prepared by User The following lists the items that need to be pr epared by users separate l y from this product. <For SH7670 CPU board> You need to prepare the follo wing power supply separately from the product p[...]

  • Page 20

    Before Using the SH7670 CPU Board 1.5 Items to Be Prepared by User Rev . 1.01 May 7, 2008 1-6 REJ1 1J0 015-0101 1 *This page is blank*[...]

  • Page 21

    Chapter2Setting Up the Hardware Chapter2 Setting Up the Hardware 2-1[...]

  • Page 22

    Setting Up the Hardware 2.1 Connections Between SH767 0 CPU bo ard and E10A-USB Emulator Rev . 1.01 May 7, 2008 2-2 REJ1 1J0 015-0101 2 2.1 Connections Between SH7670 CPU board and E10A-USB Emulator Figure 2.1.1 shows how SH7670 CPU board and E1 0A-USB emulator should be connect ed. Figure 2.1.1 System Connection of SH 7670 CPU board and E10A-USB E[...]

  • Page 23

    Setting Up the Hardware 2.2.1 SH7670 CPU board DIP Switch Setting Rev . 1.01 May 7, 2008 2-3 REJ1 1J0 015-0101 2 2.2.1 SH7670 CPU board DIP Switch Settin g To use the SH7670 CPU board following the installation d escr ibed here, be sure to set the DIP switch SW8 to its default settings as shown in Figure 2.2.1 and Table 2.2.1 . Figure 2.2.1 DIP Swi[...]

  • Page 24

    Setting Up the Hardware 2.3 System Connections and Po wer-On Sequence Rev . 1.01 May 7, 2008 2-4 REJ1 1J0 015-0101 2 2.3 System Connections and Power-On Sequence Follow the same procedure when you check to see that the power for the host computer is turned off, or that the E10A-USB emulator is not connected to the host computer with USB cable . 1. [...]

  • Page 25

    Chapter3Setting Up the Software Chapter3 Setting Up the Software 3-1[...]

  • Page 26

    Setting Up the Software 3.1 About the HEW Rev . 1.01 May 7, 2008 3-2 REJ1 1J0 015-0101 3 3.1 About the HEW HEW, or High-performance Embedded W orkshop, is an int egrated development environm ent with a graphical user interface designed to help use rs develop and debug the applica tions create d in C/C++ and assembly languages for use in Renesas mic[...]

  • Page 27

    Setting Up the Software 3.1 About the HEW Rev . 1.01 May 7, 2008 3-3 REJ1 1J0 015-0101 3 (2) Figure 3.1.2 is displa ye d, and click “Next”. Figure 3.1.2 HEW Installation Procedure (2) Note: If you have already inst alled a HEW on your PC, you can sel ect “Install a ne w High-performance Embed ded Workshop” and install a ne w HEW in another [...]

  • Page 28

    Setting Up the Software 3.1 About the HEW Rev . 1.01 May 7, 2008 3-4 REJ1 1J0 015-0101 3 (5) Continue to install follo wing the instru ctions in the installation window. When entir e installation is finished, the dialog shown in Figure 3.1.4 is displayed, click “Exit”. Figure 3.1.4 HEW Installation Procedure (5)[...]

  • Page 29

    Setting Up the Software 3.2.1 E10A-USB Software Installation Procedure Rev . 1.01 May 7, 2008 3-5 REJ1 1J0 015-0101 3 3.2 Setting Up the E10A-USB Emulator Software Next, the following explains ho w to set up the E10A-USB emulator software. 3.2.1 E10A-USB Software Installation Procedure (1) Execute “HewInstMan.exe” included in the E10A-U SB emul[...]

  • Page 30

    Setting Up the Software 3.2.1 E10A-USB Software Installation Procedure Rev . 1.01 May 7, 2008 3-6 REJ1 1J0 015-0101 3 Note: If you have already inst alled a HEW on your PC, you can sel ect “Install a ne w High-performance Embed ded Workshop” and install a ne w HEW in another directory on your PC. (3) When the dialog box sh own in Figure 3.2.3 i[...]

  • Page 31

    Setting Up the Software 3.2.1 E10A-USB Software Installation Procedure Rev . 1.01 May 7, 2008 3-7 REJ1 1J0 015-0101 3 (5) Next, install an Autou pdate Utilit y. Click “Next”. Figure 3.2.5 E10A-USB Software Installation Procedure (5 ) Note: When you have not selected “Aut oupdate” on the Choice of an installati on product, the above dialog i[...]

  • Page 32

    Setting Up the Software 3.2.1 E10A-USB Software Installation Procedure Rev . 1.01 May 7, 2008 3-8 REJ1 1J0 015-0101 3 (7) When entire installation is finishe d, the dialog shown in Figure 3.2.7 is displayed, click “Exit”. Figure 3.2.7 E10A-USB Software Installation Procedure (7 )[...]

  • Page 33

    Setting Up the Software 3.2.2 Setting Up the E10A-USB Emulator Rev . 1.01 May 7, 2008 3-9 REJ1 1J0 015-0101 3 3.2.2 Setting Up the E10A-USB Emulator (i) Setting Up New Firmware T he following explains the case where you se t up new firmware of the E10A-USB emulator. If your E10A-USB emulator alread y has the firmware suitable for the SH-2A group, s[...]

  • Page 34

    Setting Up the Software 3.2.2 Setting Up the E10A-USB Emulator Rev . 1.01 May 7, 2008 3-10 REJ1 1J0 015-0101 3 (1) Open the slide switch cover on the E10A-USB emulator main unit, and check to see that the emulator setup switch (SW1) is set to the “1” side. (2) From [All Programs] on [Start menu], choose [Renesas High-performance Embedde d Works[...]

  • Page 35

    Setting Up the Software 3.2.2 Setting Up the E10A-USB Emulator Rev . 1.01 May 7, 2008 3-1 1 REJ1 1J0 015-0101 3 Notes • If the versions shown in (b) and (c) are the same, you do no t need to set up. If the version shown in (b) is “-.-.--.---” or older than the version in (c), you need to set up. • If the emulator connected t o your system i[...]

  • Page 36

    Setting Up the Software 3.2.2 Setting Up the E10A-USB Emulator Rev . 1.01 May 7, 2008 3-12 REJ1 1J0 015-0101 3 (3) Press “Setup”( Figure3.2.9 ). The dialog box sho wn below will be displa yed. Figure3.2.12 Setup Tool for SHxxxx E10A-USB Emulator Dialog Box (4) Set the emulator setup switch (SW1 ) to the “0” side, and temporarily remove the [...]

  • Page 37

    Setting Up the Software 3.2.2 Setting Up the E10A-USB Emulator Rev . 1.01 May 7, 2008 3-13 REJ1 1J0 015-0101 3 (6) After the E10A-USB emulator setup is comple ted, the message sho wn below will be displayed. Set the emulator setup switch (SW1) to the “1” side, and temporaril y remove the USB cable and plug it in back ag ain. Then click “OK”[...]

  • Page 38

    Setting Up the Software 3.2.2 Setting Up the E10A-USB Emulator Rev . 1.01 May 7, 2008 3-14 REJ1 1J0 015-0101 3 (ii) Setting Up the E10A-USB Emulator Driv er The following shows how to set up the E10A-USB emulator driver. The setup procedure here is explai ned for the Windows XP case. Note: The dialog boxes sho wn here are displa yed when you se t u[...]

  • Page 39

    Setting Up the Software 3.2.2 Setting Up the E10A-USB Emulator Rev . 1.01 May 7, 2008 3-15 REJ1 1J0 015-0101 3 (3) Search the CD-ROM for drivers and se lect” <drive>:¥driver¥us b¥ xp ¥elu sb.inf“ and then click “Next”. The ‘ xp ’ in the underlined part (in the setup here, Windo ws XP) indicates the OS version. Figure3.2.19 Ne [...]

  • Page 40

    Setting Up the Software 3.2.2 Setting Up the E10A-USB Emulator Rev . 1.01 May 7, 2008 3-16 REJ1 1J0 015-0101 3 (5) Activate Device Manager to confirm whether the USB controller driver has been instal led. <Activating Device Manager> Choose [Control Panel] from [Start menu] a nd double-click [S ystem] icon. In [System Properties] dialog box, c[...]

  • Page 41

    Setting Up the Software 3.2.2 Setting Up the E10A-USB Emulator Rev . 1.01 May 7, 2008 3-17 REJ1 1J0 015-0101 3 *This page is blank*[...]

  • Page 42

    [...]

  • Page 43

    Chapter4Running the Software Chapter4 Running the Software 4-1[...]

  • Page 44

    Running the Software 4.1 Running the Software Rev . 1.01 May 7, 2008 4-2 REJ1 1J0 015-0101 4 4.1 Running the Software This product comes with sample software for verifying the hard ware operation as technical reference material for software development. The follo wing describes the necessar y steps to be followed before the l oad module of the samp[...]

  • Page 45

    Running the Software 4.1.2 SH7670 CPU board and E10A-USB S tartup Procedure (HEW St artup) Rev . 1.01 May 7, 2008 4-3 REJ1 1J0 015-0101 4 (5) The [Open Workspace] dialog box shown bel ow is displayed. In this dialog bo x, specify the directory indicated b elow. <Directory in which to store the sample software> "C:¥WorkSpace¥Sample_soft[...]

  • Page 46

    Running the Software 4.1.2 SH7670 CPU board and E10A-USB S tartup Procedure (HEW St artup) Rev . 1.01 May 7, 2008 4-4 REJ1 1J0 015-0101 4 Note: For the first time only, a message “Ple ase choose driver” is displa yed. Click “OK” to display the Dr iver Details, and select “Renesas E-Series Driver” for the Driver. Figure 4.1.4 Driver Deta[...]

  • Page 47

    Running the Software 4.1.2 SH7670 CPU board and E10A-USB S tartup Procedure (HEW St artup) Rev . 1.01 May 7, 2008 4-5 REJ1 1J0 015-0101 4 (10) Turn on the power for the SH7670 CPU boar d. (11) Press the reset button (SW3) on the SH7670 CP U bo ard and press “OK” in the above dialog bo x. (12) If the reset signal cannot be detected, the dialog b[...]

  • Page 48

    Running the Software 4.1.3 E10A-USB Emulator Connection Error Dial og Rev . 1.01 May 7, 2008 4-6 REJ1 1J0 015-0101 4 4.1.3 E10A-USB Emulator Connection Error Dialog If the E10A-USB emulator does not start up, t he dialog box sho wn below will be displa yed. (a) If the dialog box shown belo w is displayed and the E10A- U SB emulator cannot be starte[...]

  • Page 49

    Running the Software 4.1.3 E10A-USB Emulator Connection Error Dial og Rev . 1.01 May 7, 2008 4-7 REJ1 1J0 015-0101 4 (e) If the driver has not been set up correctly, the dialog bo x sho wn below will be displaye d. Figure 4.1.13 Unable to Restore Dia lo g Box (f) If a wrong device is selected, the following dialog box is d isplayed. Figure 4.1.14 [[...]

  • Page 50

    Running the Software 4.1.4 Sample Software Download Procedure Rev . 1.01 May 7, 2008 4-8 REJ1 1J0 015-0101 4 4.1.4 Sample Software Download Procedure Next, the following describes ho w to download the load module of the sample soft ware. Here, the sample software is downloaded to the flash memor y connected external to the SH7670 CPU boar d. For de[...]

  • Page 51

    Running the Software 4.1.4 Sample Software Download Procedure Rev . 1.01 May 7, 2008 4-9 REJ1 1J0 015-0101 4 (2) Specifying the command batch file before do wnloading Next, you need to run the script file (fmtool_hs71.hdc) in which the access timing and bu s control signal settings are written in the flash memory of the SH7670 C P U boar d before d[...]

  • Page 52

    Running the Software 4.1.4 Sample Software Download Procedure Rev . 1.01 May 7, 2008 4-10 REJ1 1J0 015-0101 4 (4) Downloading the sample load mo dul e Choose Download from the Debug menu an d then sample load module. Figure 4.1.17 sh ows the download operation wind ow. Immediately after you select th e sample load module, the scr ipt file is automa[...]

  • Page 53

    Running the Software 4.1.4 Sample Software Download Procedure Rev . 1.01 May 7, 2008 4-1 1 REJ1 1J0 015-0101 4 (5) Completion of downloading When the system has finished do wnloading the sample load module, the program count er is sho wn in “resetprg.c”. (See Figure 4.1.18 ) Figure 4.1.18 Download Completion Wind o w[...]

  • Page 54

    Running the Software are 4.1.4 4.1.4 Sample Software Download Procedure Sample Software Download Procedure Rev . 1.01 May 7, 2008 4-12 REJ1 1J0 015-0101 4 (6) Running the program To execute the program, select “Go” from the Debug menu (See F igure 4.1.19 ). If the sample software is downloaded norma lly, LED7 on the SH7670 CPU board lights up a[...]

  • Page 55

    Chapter5Creating and Running a New Project Workspace Chapter5 Creating and Running a New Project W orksp ace 5-1[...]

  • Page 56

    Creating and Running a New Project Worksp ace 5.1 Creating a New Project Workspace Rev . 1.01 May 7, 2008 5-2 REJ1 1J0 015-0101 5 5.1 Creating a New Project Workspace The following explanation des cribes how to create a new project workspace suitable for the SH7670 CPU board. The procedure for creating a load module from a ne w pr oject workspace a[...]

  • Page 57

    Creating and Running a New Project Worksp ace 5.1.2 Procedure for Creating a Ne w Project Worksp ace Rev . 1.01 May 7, 2008 5-3 REJ1 1J0 015-0101 5 (6) Project Generator will start. Here, enter “test” for the workspace name. After checki ng the directory, CPU type and tool chain, click “OK”. Figure 5.1.2 New Project Workspace Di alog Box (7[...]

  • Page 58

    Creating and Running a New Project Worksp ace 5.1.2 Procedure for Creating a Ne w Project Worksp ace Rev . 1.01 May 7, 2008 5-4 REJ1 1J0 015-0101 5 (8) Specify the global options from [New Project--2/9] dial og bo x. FPU: Single Round: Zero Figure 5.1.4 [New Project-2/9] Dialog Bo x (9) Fill out [New Project-3/9] to [New Project-4/9] dial og boxes.[...]

  • Page 59

    Creating and Running a New Project Worksp ace 5.1.2 Procedure for Creating a Ne w Project Worksp ace Rev . 1.01 May 7, 2008 5-5 REJ1 1J0 015-0101 5 (10) In [New Project-5/9] dialog box, set up a stack as follows; Stack Pointer Address: H’FFF88000 Stack Size: H’400 *Stack size can be changed according to n eed. Figure 5.1.5 New Project-5/9 Dial [...]

  • Page 60

    Creating and Running a New Project Worksp ace 5.1.2 Procedure for Creating a Ne w Project Worksp ace Rev . 1.01 May 7, 2008 5-6 REJ1 1J0 015-0101 5 (12) In [New Project-7/9] dialog box, set up the target as below. Firstly, select the Target type and then, select the Targets . Target type: SH2A-FPU Targets: SH2A-FPU E10A-USB SYSTEM(SH2A) Figure 5.1.[...]

  • Page 61

    Creating and Running a New Project Worksp ace 5.2 Setting Up the Flash Memory Download Rev . 1.01 May 7, 2008 5-7 REJ1 1J0 015-0101 5 (15) [Select Emulator mode] dialog box shown belo w will be displayed. For details on how to operate here, refer to par agraphs ”4.1.2 SH7670 CPU board and E1 0A-USB Startup Procedure (HEW Startup)” Figure 5.1.9 [...]

  • Page 62

    Creating and Running a New Project Worksp ace 5.2 Setting Up the Flash Memory Download Rev . 1.01 May 7, 2008 5-8 REJ1 1J0 015-0101 5 5.2 Setting Up the Flash Memory Download Next, the following shows how to set up the function for do wnloading load modul es into the flash memory connected external to the SH7670 CPU boar d. Here, we use the flash m[...]

  • Page 63

    Creating and Running a New Project Worksp ace 5.2.2 S pecifyi ng the Command Batch File Before Do wnloading Rev . 1.01 May 7, 2008 5-9 REJ1 1J0 015-0101 5 Table5.2.1 Loading flash mem ory Setting Loading flash memory Enable Erasing flash memory Disable File name C:¥W orkS pace¥Sample_s oftware¥sh76 70_sample¥fmtool_ hs71 ¥ fmtool_hs71.mot Bus [...]

  • Page 64

    Creating and Running a New Project Worksp ace 5.2.3 Activating the Command Line Windo w Rev . 1.01 May 7, 2008 5-10 REJ1 1J0 015-0101 5 5.2.3 Activating the Command Line Window Choose Command Line from the Vie w menu and open the Command Line window. When downloading the load modul es, activate the Command Line window to check whether the script fi[...]

  • Page 65

    Creating and Running a New Project Worksp ace 5.3.3 Adding Hardware Setup Files Rev . 1.01 May 7, 2008 5-1 1 REJ1 1J0 015-0101 5 (2) From [Remove Project Fil es] dialog box, select the file o f "dbsct.c", "intprg.c", "resetpr g.c", "sbrk.c", and "vecttbl.c". Then, click “Remove”. Figure 5.3.2 Se[...]

  • Page 66

    Creating and Running a New Project Worksp ace 5.3.3 Adding Hardware Setup Files Rev . 1.01 May 7, 2008 5-12 REJ1 1J0 015-0101 5 (2) From the "C:¥WorkSpace¥test¥Hard wareSetup" director y to which you copie d hardware setup files, add the fil es listed below. Files to add : "bsc_cs0c.c", "bscsdram.c", "cache.c?[...]

  • Page 67

    Creating and Running a New Project Worksp ace 5.3.4 Setting Compiler Options Rev . 1.01 May 7, 2008 5-13 REJ1 1J0 015-0101 5 5.3.4 Setting Compiler Options From the Build menu, open [S uperH RISC engine Stand ard Toolchain] dialog b ox an d open [C/C++] tab. On this tab, set “Category”, “Sho w entries for” and “Options C/C++ ” as necess[...]

  • Page 68

    Creating and Running a New Project Worksp ace 5.3.5 Setting Linker Options Rev . 1.01 May 7, 2008 5-14 REJ1 1J0 015-0101 5 5.3.5 Setting Linker Options Open the Build menu, open the dia log box [S uperH RISC engine Sta ndard T oolchain ], and select “Link/Librar y” tab. Set ”Category”, “Sho w entries for”, and “Optio n Link/Librar y?[...]

  • Page 69

    Creating and Running a New Project Worksp ace 5.3.5 Setting Linker Options Rev . 1.01 May 7, 2008 5-15 REJ1 1J0 015-0101 5 (a) Section setting example for th e case that a cache memory setup fu nction is used To use the io_init_cache funct ion (that sets cache memory), the section for it must be located in the non-cache able area of CS0. The follow[...]

  • Page 70

    Creating and Running a New Project Worksp ace 5.3.5 Setting Linker Options Rev . 1.01 May 7, 2008 5-16 REJ1 1J0 015-0101 5 (3) [Section address] dialog box sho wn below will be displayed. In this dialog box, enter “0x207F F000” for the Address as shown in Figure 5.3.1 1 , and press “OK”. Figure 5.3.11 Section Settings (3) (4) The section ad[...]

  • Page 71

    Creating and Running a New Project Worksp ace 5.3.5 Setting Linker Options Rev . 1.01 May 7, 2008 5-17 REJ1 1J0 015-0101 5 (5) [Add section] dialog box s ho wn below will be displa ye d. Enter “PCACHE” for “Section name” as shown in Figure 5.3.13 , and press “OK”. The “CACHE” section is defined in the “cach e.c” source file. The[...]

  • Page 72

    Creating and Running a New Project Worksp ace 5.3.5 Setting Linker Options Rev . 1.01 May 7, 2008 5-18 REJ1 1J0 015-0101 5 (b) Section modifications example fo r th e cas e that a B section is changed to the SDR AM area The following shows the section modification example for c hanging the loc ation of a B section to the SDRAM area. For a detailed [...]

  • Page 73

    Creating and Running a New Project Worksp ace 5.3.5 Setting Linker Options Rev . 1.01 May 7, 2008 5-19 REJ1 1J0 015-0101 5 (c) Setting example for sectio n in case for forwarding vector table section DINT TBL to on-chip RAM Interrupt response speed can be sped up by for warding ve ctor table to on-chip RAM, and using register bank. Forwarding vecto[...]

  • Page 74

    Creating and Running a New Project Worksp ace 5.3.5 Setting Linker Options Rev . 1.01 May 7, 2008 5-20 REJ1 1J0 015-0101 5 (2) Open [Link/Library] tab an d select the b el o w, and click “Add”. • Category : Output • Show entries for : ROM to RAM mapped sections Figure 5.3.18 Section Change (2) Note: In the sample software, the section initi[...]

  • Page 75

    Creating and Running a New Project Worksp ace 5.3.6 Writing the Main Functi on (Operation Confirmation) Rev . 1.01 May 7, 2008 5-21 REJ1 1J0 015-0101 5 5.3.6 Writing the Main Function (Operation Confirmation) In the main function (test.c source file), write a pro gram to turn on the LED (LED7 on th e SH7670 CPU board li ghts up). • Open the sourc[...]

  • Page 76

    Creating and Running a New Project Worksp ace 5.3.6 Writing the Main Functi on (Operation Confirmation) Rev . 1.01 May 7, 2008 5-22 REJ1 1J0 015-0101 5 *This page is blank*[...]

  • Page 77

    Revision History SH7670 CPU Board Installation Manual Rev . Date of Issue Content of Revision Page Points 1.00 Jan 9.08 - First edition issued. 1.01 May 7.08 - Revision history page location was changed. Colophon was changed from © 2007 to ©2008.[...]

  • Page 78

    [...]

  • Page 79

    SH7670 CPU Board M3A-HS71 Installation Manual Publication Date May 7, 2008 Rev . 1.01 Published by Renesas T echnology Corp. Renesas Solutions Corp. © 2008. Renesas Technology Corp., All rights reserved. Printed in Japan.[...]

  • Page 80

    M3A-HS71 Inst allation Manual[...]