
B–61863E–1/06
5. TUTORIAL
GENERAL
31
In 5.6 the display screen of task1 and task2 executing have no relation.
Change the task1 to display the status of task2 in this chapter. The system
alarm which occurs at this process is subject in the debugging example.
The files are in the directory \tutorial\5–7.
(1) File confirmation.
Please use the files (ctl.c and tutorial.bld) in the directories as listed
below.
The files in \tutorial\5–7\rc for PMC–SC/SC3/SC4.
The files in \tutorial\5–7\nb for PMC–NB/NB2.
D ctl.c Link control statement
D softkey.c Source code task1
D task1.c Source code task1
D task1.con Command file for binder of task1
D task2.c Source code task2
D task2.con Command bile for binder of task2
D tutorial.bld Build file
D tutorial.con Command for binder of all
D tutorial.h Header file for task1 and task2
(2) Modification.
The difference from chapter 5.6 is described below.
D task1.c
The part to display changes by pressing a softkey.
→ The contents of D–area are displayed.
D tutorial.h
The line “#define ALL_TIME 10000” is added.
(3) Procedure for execution.
The necessary operations are described below. Please don’t forget to
add the code option, because it is necessary for debugging.
> ic286 softkey.c pr(softkey.lis) oj(softkey.obj) compact extend rom
code
> ic286 task1.c pr(task1.lis) oj(task1.obj) compact extend rom code
> ic286 task2.c pr(task2.lis) oj(task2.obj) compact extend rom code
> ic286 ctl.c pr(ctl.lis) oj(ctl.obj) compact extend rom code
> bnd386 &<task1.con
> bnd386 &<task2.con
> bnd386 &<tutorial.con
> bld386 tutorial.lnk oj(tutorial.dat) bf(tutorial.bld)
> oh386 tutorial.dat 386 >tutorial.hex
> map386 tutorial.dat notypecheck
Transfer to PMC
Setting LANGUAGE ORIGIN of SYSPRM
(4) Execution.
After pressing the softkey [RUN] and the function key “CUSTOM”,
the display switches to PMCMDI and an alarm will occurs.
5.7
DEBUG PRACTICE