 |
|
 |
MESC TOOL NEWS:
MESCT-MR32R-990201D
|
MR32R V.2.00 Release 2 Precaution
|
Please take note of the following items in using real-time OS MR32R V.2.00 Release 2 for the M32R family of microcomputers.
Incomplete and incorrect descriptions are found in the release note of MR32R V.2.00 Release 2 with respect to the procedures for developing application programs using MR32R in the environment of the integrated development environment TM. The correct procedures are explained below:
Procedures for Developing New Program
- Create a new project file
- Select the [FILE] -> [New Project] command.
- Uncheck the "Copy Startup and Section File" check box.
Note: Use the start-up file included with MR32R, not the one included with TW32R.
- Change the output directory
- Select the [Environment] -> [Project Setting] command.
- Click on the [Target] tab.
- Enter a "." (dot) in the "Output Directory" text box.
- Register the configurator cfg32r.exe to TM.
- Select the [Environment] -> [Tools] command.
- Click on the [Other] tab.
- Press the [Add] button.
- Type "cfg32r" in the "Tool Name" text box.
- Type the name of the executable file of the configurator in full path in the "File Path" text box.
Example: C:\MTOOL\BIN\CFG32R.EXE
- Give the "-m" option to the "Parameters".
When the name of the configuration file is given, enter the name at the same time.
- Type environment variable "LIB32R" and "GCC_EXEC_PREFIX" in the "Environment" text box.
Example of typing LIB32R:
C:\MTOOL\LIB32R
Example of typing GCC_EXEC_PREFIX:
C:\MTOOL\TW32R\H-I386-CYGWIN32\LIB\GCC-LIB
- Create an application program
Note: At least one program file must be saved in the Working Directory.
- Create a configuration file
- Choose options "compile" and others
- Select the [Environment] -> [Project Setting] command
Click on the [BUILD] tab.
- Give options to each tool.
- Delete the linker script m32r.cmd in the working directory.
Note: The linker script included with TW32R gets copied in the working directory by default. This file must be deleted to run programs normally.
- Execute the configurator cfg32r.exe
-
Select the [Action] -> [Other] -> [cfg32r] command.
Note: By giving the "-m" option to the configurator, the templates of the startup file (crt0mr.s) and the linker script (m32r.cmd) available for MR32R are copied in the working directory.
- Register the startup file (crt0mr.s or start.s) and the source file
- Select the [Environment] -> [Add Source File] command to register the startup file (crt0mr.s or start.s) and the source file of the application program.
- Build your system
Procedures after Changing Configuration File
After exercising procedure 8 above, build your system.
Procedures after Making Addition to or Deletion from Source File
After exercising procedure 9 above, rebuild your system.
Procedures after Modifying Compile Options and Others
Rebuild your system.
Rebuild your system.
Build your system.
|
 |