A.8.45. 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;



is the name of the application file.


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:

  • 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.


If 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 CADI_STATUS_ArgNotSupported.

Copyright © 2008-2010 ARM Limited. All rights reserved.ARM DUI 0444F