Compiling The Project - Fujitsu F2MC-16FX MB2198 Getting Started

Emulator system
Table of Contents

Advertisement

your own placeholder or add necessary code here.
*/
__interrupt
void DefaultIRQHandler (void)
{
__DI();
while(1)
__wait_nop();
}
The level for the interrupt in the example above is set to 2. Because the global level
threshold is set to 7 by the main program, you can choose any other number between 0 and
6.
Note that a prototype of your Interrupt Routine has to be defined as well as the vector of this
routine.

2.3 Compiling the Project

Because of the usage of the "Template Project", you now can compile this example at this
moment. No other settings have to be done.
There are two ways to build to the whole project data. Either choose Project > Build or click
the button in the circle in the illustration below:
If no errors occur, the following message should be displayed in the lower window:
Now building...
------------------Configuration: Led.prj - Debug--------------------
Start.asm
Main.c
vectors.c
Mb96300.asm
Now linking...
<Your Path>\LED\ABS\Template.abs
Now starting load module converter...
<Your path>\LED\ABS\Template.mhx
------------------------------
No Error.
------------------------------
Assume you have forgotten to type the last ';' in the "Main.c" file. Then the message will look
like the following:
Now building...
------------------Configuration: Led.prj - Debug--------------------
Start.asm
Main.c
*** <Your path>\led\src\main.c(48) E4062C: syntax error near `}'
vectors.c
© Fujitsu Microelectronics Europe GmbH
MB2198 – Getting Started
Chapter 2 Creating the Project
/* disable interrupts */
/* halt system */
- 15 -
MCU-AN-300217-E-V10

Advertisement

Table of Contents
loading

Table of Contents