User`s guide
Libraries and Runtime Code
EOnCE Library
332
Targeting MC56F83xx/DSP5685x Controllers
noinc:
tfra r0,sp ; set stack pointer too
move.w #0,r1
nop
move.w r1,x:(sp)
adda #1,sp
jsr F__init_sections
; Call main()
move.w #0,y0 ; Pass parameters to main()
move.w #0,R2
move.w #0,R3
jsr Fmain ; Call the Users program
;
; The fflush calls where removed because they added code
; growth in cases where the user is not using any debugger IO.
; Users should now make these calls at the end of main if they use
debugger IO
;
; move.w #0,r2
; jsr Ffflush ; Flush File IO
; jsr Ffflush_console ; Flush Console IO
; end of program; halt CPU
debughlt
rts
Finit_M56852END:
endsec
EOnCE Library
The EOnCE (Enhanced On Chip Emulator) library provides functions, which allows
your program to control the EOnCE. The library lets you set and clear triggers for
breakpoints, watchpoints, program traces, and counters. With several option
enumerations, the library greatly simplifies using the EOnCE from within the core,
and thus eliminates the need for a DSP56800E User Manual. The library and the
debugger are coordinated so that the debugger does not overwrite a trigger set by the
library, and vice versa.