To our customers, Old Company Name in Catalogs and Other Documents On April 1st, 2010, NEC Electronics Corporation merged with Renesas Technology C
81. OverviewThe M3T-ICC740 is a cross tool kit for the 740 family of Renesas 8-bit microcomputers.The product package includes the C compiler ICC740 f
9Furthermore, the following software items are included with the package.• M3T-PD38SIMThis is a simulator debugger for the 740 family.• SC74This is a
102. Installing ToolsThe M3T-ICC740 requires installing the following tools:• ICC740• TM• TW74The installation procedure is described below (Figure 1)
11Figure Figure Figure Figure 1111 Procedure for installing the M3T-ICC740Procedure for installing the M3T-ICC740Procedure for installing the M3T-I
123. Starting and Quitting the TM3.1. Starting the TMWhen the TM has been installed normally, you can start it from the Start menu by selectingProgr
133.3. Quitting the TMTo quit the TM, click the [Close] button in the project bar (when in a floating state) or right-click in the project bar and se
144. Quick TourLet’s try using the TM actually following a quick tour.In the TM, you need to specify a project name and a working directory before you
15Source program tutor3.c/*----------------------------------------------------- * File: tutor3.c * * Purpose: Handling real time interrupts * * Us
164.1. Creating a New Project Click the New Project button in the project bar (Figure 6).Figure Figure Figure Figure 6666 New Project Button in th
174.2. Complementing a New ProjectTo develop an ICC740 project in the TM, you need to complement the new project.Follow the procedure described below
Notice 1. All information included in this document is current as of the date this document is issued. Such information, however, is subject to chang
184.3. Creating a FileCreate a source file using the editor. Because tutor3.c is located in the SmpTw74 folder, copyit to the working directory. The S
19Figure Figure Figure Figure 9999 Registering a source fileRegistering a source fileRegistering a source fileRegistering a source file4.5. Saving
204.6. Building a ProjectTo build a project, use the Build, the Rebuild or the Partial Build Button in the ProjectBar. Here, click the Rebuild Button
214.7. Starting the DebuggerFor the project you’ve finished building, an absolute file proj_1.695 is generated in theworking directory.This file proj
22If the M3T-PD38SIM and M3T-PD38 are not displayed in the dialog box, use the Add...button to register the debuggers. After registering the debuggers
234.8. Debugging a ProgramUse the M3T-PD38SIM to debug the program (Figure 16).Figure Figure Figure Figure 16161616 M3T-PD38SIMM3T-PD38SIMM3T-PD38
244.8.1. Loading a ProgramTo load a program, use the File menu commands “Download” and “Load Module.” In theensuing Download dialog box, select the p
255. Creating a New ProjectThe ICC740 requires setting up a processor group, memory model and stack area before youcan develop a project. The M3T-ICC
265.1. New ProjectTo create a new project, you must first start the TM.Launch the TM from the Start menu.When the TM has started up, the project bar s
27Table Table Table Table 4444 New Project Wizard Execution StepsNew Project Wizard Execution StepsNew Project Wizard Execution StepsNew Project Wi
M3T-ICC740 V.1.00User’s ManualUser’s ManualRev.1.00 2004.07Cross Tool Kit for 740 Family<Included ICC740 of IAR Systems>
28Figure Figure Figure Figure 20202020 Registering the Registering the Registering the Registering the lnk740.xcl file file file fileThe .\proj_1.c
296. Editing the ProjectAfter you created a new project, you must edit cstartup.s31 and lnk740.xcl and changeoptions as necessary.6.1. Editing cstart
306.2. Editing the lnk740.xcl FileYou need to edit the lnk740.xcl file according to the target microcomputer, memory modeland other settings you made
31Note, however, that if you change the stack area to page 0, you also need to alter thecstartup.s31 file.6.2.2. Changing the Beginning Address of Pa
32group, remove the SFR area from page N.6.2.4. Changing the ROM Area AddressSet the ROM area as suitable for your target microcomputer. Here, you se
336.2.6. Changing the LibrarySelect the library that suits the processor group and memory model of your targetmicrocomputer from Table 8.Table Table
346.3. Changing the ICC740 OptionsDefault options of the ICC740 are set as listed in Table 9.Table Table Table Table 9999 ICC740 OptionsICC740 Opt
35In this dialog box, click the option macro CFLAGS and then the Edit button. The Optionsdialog box for the ICC740 will appear (Figure 23 (a)).Before
366.3.2. Changing the Memory ModelSelect Target for the category. In the ensuing dialog box, click the list “-ml, -mt” and thenthe Select button. The
376.4. Changing the A740 OptionsDefault options of the A740 are set as listed in Table 10.Table Table Table Table 10101010 Default Options of the
• Microsoft, MS-DOS, Windows, and Windows NT are registered trademarks of Microsoft Corporation in the U.S. and other countries.• IBM and AT are regis
386.4.2. Changing the Memory ModelSelect Code Generation for the category. If all of the referenced symbols are located in page 0,deselect the “-uN”
396.5. Changing the XLINK OptionsThe XLINK options are set in the lnk740.xcl file and in the TM.Default options of XLINK in the TM are set as listed
407. Developing a Project7.1. Creating and Registering the Source FilesUse your desired editor to create the C source and assembly language source f
417.2. Altering the lnk740.xcl FileIf you’ve created new segments in an assembler source file, etc., you must set the locations ofthose segments in t
428. Building a ProjectWhen you’ve finished creating and registering the source files, execute Build togenerate an absolute module from the source fi
438.2. Errors in the Linker XLINKIf an error occurs while you are executing the linker XLINK, correct the project according tothe displayed messages.
44declaration.extern npage int n_i1;void func( char a, npage int n_b );In assembler sources attach “np.” when referencing the data.lda np:n_dataz Er
458.3. Setting Options in Source File UnitsIn C and assembler source files, it may sometimes be necessary to set options in file units.In such a case
469. Debugging a ProjectFor the project you’ve finished building, an absolute file proj_1.695 is generated in theworking directory.This file can be d
47If you installed the M3T-PD38 or M3T-PD38SIM after installing the TW74, you mustregister the installed debugger in the same way as you do for other
3ContentsContentsContentsContentsPREFACE ...
4810. Creating a Hex FileBefore you can create a Hex file, you must first register xlink(lmc) as a load moduleconverter to the TM.First, choose Inform
49Note that the options of xlink(lmc) in the TM are set as listed in Table 12.Table Table Table Table 12121212 Default Options of xlink(lmc) (Comma
M3T-ICC740 V.1.00 User’s ManualRev. 1.00July 16, 2004REJ10J0750-0100ZCOPYRIGHT ©2004 RENESAS TECHNOLOGY CORPORATIONAND RENESAS SOLUTIONS CORPORATION A
1753, Shimonumabe, Nakahara-ku, Kawasaki-shi, Kanagawa 211-8668 JapanM3T-ICC740 V.1.00REJ10J0750-0100ZUser’s Manual
46.3. CHANGING THE ICC740 OPTIONS... 346.3.1. Changing the Processor Grou
5Figure of ContentsFigure of ContentsFigure of ContentsFigure of ContentsFIGURE 1 PROCEDURE FOR INSTALLING THE M3T-ICC740 ...
6Teble of ContentsTeble of ContentsTeble of ContentsTeble of ContentsTABLE 1 NEW PROJECT WIZARD EXECUTION STEPS....
7PrefaceBefore reading this user’s manual, please read the release notes included with your product.Product configuration, product handling, precautio
Comentarios a estos manuales