Sample Program
F²MC-16FX Family, Emulating and Debugging with Softune and MB2198-01, Doc. No. 002-04828 Rev. *B
7
This program is only an example with no “great assignment“. It contains a simple wait-function (
voidwait
) ,
which needs an integer value for the wait time. The resulting delay time depends on the value itself and the clock
speed of the emulation system.
At first the interrupts are enabled (although they are not used in this example), then the Port00 of the MCU is set
to “output“ (Port00 is the LED-Port of the Flash-CAN-100P-340 board). Then the
wait
function is called with the
value
5000.
2.3
Compiling “Main.c”
To compile the project, please use “Setup Project” first. In Project
Setup Project
C Compiler
Category:
Optimize has to be selected General-purpose Optimization Level:
None
.
Then compile the project by clicking on
or selecting
Project
Build
, or pressing “Ctrl-F8”.
Watch for error messages. If all is ok, you will get the following message:
Build all source files regardless of data