| |||
| Home > Class Reference > The CADI class > CADI::CADIExecLoadApplication() |
This is used to load an application file to program memory. The target is not reset or restarted. The implementation of the model determines which file formats, ELF for example, are supported. The debugger is responsible for initiating the execution of the application by, for example, setting the program counter to the entry point in the application.
virtual CADIReturn_t CADI::CADIExecLoadApplication(const char *filename,
bool loadData,
bool verbose,
const char *parameters) =0;
where:
filenameis the name of the application file.
loadDataIf set to true, the target loads
data, symbols, and code.
If set to false, the target does not reload
the application code to its program memory. This can be used, for
example, to either:
forward information about applications that are loaded to a target by other platform components
change command line parameters for an application
that was loaded by a previous CADIExecLoadApplication() call.
verboseIf true, the target can print
verbose messages while loading a file.
The target decides whether or not it outputs messages.
parametersIf not NULL, this is the command line parameters to pass to the loaded application. The forwarded character string might contain whitespaces and must be 0 terminated.
If command line parameters are passed to a model that does
not support this argument, the target must return CADI_STATUS_ArgNotSupported.