|Home > Class Reference > CADI class > CADI::CADIExecLoadApplication()|
This method 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;
If 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:
true, the target can print
verbose messages while loading a file.
The target decides whether or not it outputs messages.
If 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