
M16C/62
C Compiler Startup Files for the M16C/62 MCU
initialized integers, long integers
un-initialized integers, long integers
initialized characters
un-initialized characters
RAM allocated for stack
RAM allocated for heap
constant near integers, long integers
constant near characters
far initialized integers, long integers
far un-initialized integers, long integers
far initialized characters
far un-initialized characters
far (default) constant integers, long integers
far (default) constant characters
This is the ROM area where 'initialized
variables' are held and copied to RAM by the
startup program.
interrupt functions (code) stored here
program (code) stored here
variable vector table section
fixed vector table section
Figure 1. M16C/62 Memory Map of Startup Files
5. Automatic Installation
When starting a new project using “TOOL MANAGER” (Mitsubishi’s development environment), the
project wizard will ask if you wish to have the default startup files copied into the project’s working
directory. In order to have the project wizard copy the custom files instead, replace the default files with
the custom startup files in the directory:
c:\MTOOL\SRC30\STARTUP
This assumes that when you installed the compiler, the default directory c:\MTOOL was specified. It is
strongly recommended that you back up the default files first. Also, if you installed the development tools
from a “Starter Kit” CD, the custom startup files included with the kit will automatically be used.
6. References
data sheets: 62aeds.pdf
C Language Programming Manual: 6020EC.PDF
AN-DECE-MCU-23-A
February 2002
2