User`s guide
Debugging for DSP56800E
Command-Line Debugging
248
Targeting MC56F83xx/DSP5685x Controllers
hsst_attach_listener
Use the hsst_attach_listener command to set up a Tcl procedure that the
debugger notifies whenever there is data in a communication channel.
Prototype
hsst_a[ttach_listener] channel_id tcl_proc_name
Example
Execute the procedure call_back automatically when a communication channel
has data available from the target.
proc call_back { } {
global hsst_descriptor;
global hsst_nmemb;
global hsst_size;
puts [ hsst_read $hsst_size $hsst_nmemb $hsst_descriptor ]
}
set cid [ hsst_open channel1 ]
hsst_attach_listener $cid call_back;
hsst_block_mode
Use the hsst_block_mode command to configure a communication channel in
blocking mode. Doing so causes all calls to hsst_read to block until the requested
amount of data is available from the target.
The default setting is for all channels to be in blocking mode.
Prototype
hsst_b[lock_mode] channel_id
Example
Configure a channel in blocking mode: