Download Debugger User`s Manual

Transcript
Freescale Semiconductor, Inc.
Library Function Descriptions
Example 14-2. ads_startup()
/* Initialize ADS software (PC)*/
#include “simcom.h”
#include “protocom.h”
int status;
status=ads_startup(“100”, ADSP56000);
Freescale Semiconductor, Inc...
/* Initialize ADS software (UNIX™)*/
#include “simcom.h”
#include “protocom.h”
int status;
status=ads_startup(“/dev/mdsp0”, ADSP56000);
14.2.3 dspd_break—Force Running DSP into Debug Mode
#include “cc.h”
#include “simcom.h”
#include “driver.h”
int dspd_break(device_index, command)
int device_index;/* DSP device to be affected by command */
int command;/* command to be sent to DSP device */
dspd_break() forces the target device device_index into debug mode, using the
method specified by the parameter command.
Valid values for command are:
•
DSP_JTAG_BREAK—used for devices with JTAG port
•
DSP_ONCE_BREAK—used for devices with OnCE port
The function returns DSP_OK if the operation succeeds, DSP_ERROR otherwise. See
Example 14-3.
Motorola
Library Functions
For More Information On This Product,
Go to: www.freescale.com
14-9