Download Command and Control for ADSP-21992: template design for

Transcript
17
As a final step, all created objects have to be linked together into one executable file. The linker takes
all object files (.doj) and the library file (.dlb) and links them into the executable file called
“runme.dxe”. The command line to achieve this is shown in Listing 4-12.
cc219x -Os 2199x_ivt.doj pll.doj xxmain.doj -lccode -T ADSP-21992.ldf –proc
ADSP-21992 -o runme.dxe
Listing 4-12: Linking and building the final runme.dxe
An DSP executable file is now created which can be run at the ADSP-21992 EZ-kit Lite. As said
before, all commands above are wrapped together into one batch file which is started by the compiler
assistant. This means that the user will not have to have any concerns about compiling the generated
sources.
4.5
Deploy and run code
The process of the previous section is performed by a MS-DOS batch file which is run after the
hardware connector has finished. See Figure 4-5.
Figure 4-5: Finished compiler
When done, the compiler assistant should say it finished without any error. Now, the generated
runme.dxe executable file has to be transferred into the ADSP21992 EZ-kit Lite. For this task, the
Crosscore VisualDSP++ Integrated Development Environment (IDDE) is used.
In the VisualDSP++ environment, choose the ‘Load program’ option from the File menu. In the next
dialog box, specify the runme.dxe file that will be loaded. When the upload is finished, Visual DSP++
may run the code on the ADSP board (Press F5 in VisualDSP++, or choose Debug - Run).
It is possible to even decrease a couple of mouse clicks here by automating the process of loading and
running the dxe file. For this, a tcl file will have to be created, which can be loaded by the idde.
Put these 2 lines in a file:
dspload runme.dxe
dsprun
and enter this command at the command prompt:
idde –f runandload.tcl
where “runandload.tcl” is the filename of the created tcl file. When running the target this way,
"Switching off" of the ADSP-21992 EZ-kit Lite board is in this case performed by hitting the ‘reset’
switch.
For a tutorial / user manual of the complete process, see Appendix A – User manual.
Control Engineering