Deprecated class for downloading executables to the target. More...
#include <CLoaderController.h>
Public Types | |
| enum | DownloadListType { DLIST_PRIMARY , DLIST_TARGET } |
| Identifies which download list to use. More... | |
| typedef std::vector< DownloadListMember > | DownloadListVector |
| Contains a list of download files with advanced download options. | |
Public Member Functions | |
| void | addToDownloadList (CDownloadConfigurationSPtr downloadConfig, CLoaderController::DownloadListType listType, const std::string &fileName, const std::string &cmdLineOptions) |
| void | addToDownloadList (CLoaderController::DownloadListType listType, const std::string &fileName, bool isAbsolutePath, const std::string &options) |
| void | clearDownloadList (CLoaderController::DownloadListType listType) |
| CLoaderController (std::shared_ptr< ConnectionMgr > connectionMgr) | |
| int | download () |
| int | downloadFromList (CLoaderController::DownloadListType listType, const std::string &fileName, bool isRealTime) |
| int | downloadFromList (CLoaderController::DownloadListType listType, int fileIndex, bool isRealTime) |
| int | downloadWithoutCode () |
| const DownloadListVector | getDownloadList (CLoaderController::DownloadListType listType, bool isAbsolutePath) |
| int | removeFromDownloadList (CLoaderController::DownloadListType listType, int fileIndex) |
| int | targetDownload (CDownloadConfiguration::DownloadFileFormats format, const std::string &fileName) |
| This is a specialized version of the more general method targetDownload(CDownloadConfigurationSPtr , const std::string &, const std::string &). | |
| int | targetDownload (CDownloadConfigurationSPtr downloadConfig, const std::string &fileName, const std::string &cmdLineOptions) |
| This method downloads a file in winIDEA's target file list (see Debug / Configure Session / SoCs / Edit / Target Files) without resetting the target and initializing emulation. | |
| void | verifyDownload () |
| Verifies download. | |
Deprecated class for downloading executables to the target.
This class can be used for downloading executables to the target.
| isys::CLoaderController::CLoaderController | ( | std::shared_ptr< ConnectionMgr > | connectionMgr | ) |
Instantiates object.
| connectionMgr | class which maintains connection to winIDEA. Connection must be established before this call. |
| void isys::CLoaderController::addToDownloadList | ( | CDownloadConfigurationSPtr | downloadConfig, |
| CLoaderController::DownloadListType | listType, | ||
| const std::string & | fileName, | ||
| const std::string & | cmdLineOptions ) |
Adds a file to download list in winIDEA (see dialog Debug / Configure Session / SoCs / Edit).
| downloadConfig | download configuration |
| listType | selects main or target download list in winIDEA |
| fileName | the file to be downloaded |
| cmdLineOptions | command line options for download. These options contain settings from the winIDEA advanced download options dialog (Debug / Configure Session / SoCs / Edit / Target Files / Edit / Advanced). To see how to format this string, set the options manually in winIDEA, and then call getDownloadList() and print the options attribute of the returned items. |
| void isys::CLoaderController::addToDownloadList | ( | CLoaderController::DownloadListType | listType, |
| const std::string & | fileName, | ||
| bool | isAbsolutePath, | ||
| const std::string & | options ) |
Adds a file to download list in winIDEA (see dialog Debug / Configure Session / SoCs / Edit).
| listType | selects main or target download list in winIDEA (see dialog Debug / Configure Session / SoCs / Edit) |
| fileName | name of the file to add |
| isAbsolutePath | if true, the specified path is not converted into a workspace relative path |
| options | command line options for download. These options contain settings from the winIDEA advanced download options dialog (Debug / Configure Session / SoCs / Edit / Target Files / Edit / Advanced). To see how to format this string, set the options manually in winIDEA, and then call getDownloadList() and print the options attribute of the returned items. |
| void isys::CLoaderController::clearDownloadList | ( | CLoaderController::DownloadListType | listType | ) |
Removes all files from the specified download list.
| listType | selects main or target download list in winIDEA (see dialog Debug / Configure Session / SoCs / Edit) |
Python example: test_clear_download_list.py
| int isys::CLoaderController::download | ( | ) |
Downloads executables to the target. The download files are defined in winIDEA, Debug / Configure Session / SoCs / Edit / Program Files. This method resets the target.
| IOException | in case of an error |
Note: this method is superseded by CSessionCtrl::begin_program
| int isys::CLoaderController::downloadFromList | ( | CLoaderController::DownloadListType | listType, |
| const std::string & | fileName, | ||
| bool | isRealTime ) |
Downloads a file from winIDEA's download list.
| listType | selects main or target download list in winIDEA (see dialog Debug / Configure Session / SoCs / Edit) |
| fileName | name of the file to download |
| isRealTime | if true, real-time access is performed. |
| IOException | in case of an error |
| int isys::CLoaderController::downloadFromList | ( | CLoaderController::DownloadListType | listType, |
| int | fileIndex, | ||
| bool | isRealTime ) |
Downloads a file from winIDEA's download list.
| listType | selects main or target download list in winIDEA (see dialog Debug / Configure Session / SoCs / Edit) |
| fileIndex | index of the file in the list |
| isRealTime | if true, real-time access is performed. |
| IOException | in case of an error |
| int isys::CLoaderController::downloadWithoutCode | ( | ) |
Download without code - initialize target and load symbols. The download files are defined in winIDEA, Debug / Configure Session / Applications / Edit / Symbol Files.
| IOException | in case of an error |
Note: this method is superseded by CSessionCtrl::begin_reset
| const DownloadListVector isys::CLoaderController::getDownloadList | ( | CLoaderController::DownloadListType | listType, |
| bool | isAbsolutePath ) |
Gets list of files to be downloaded from winIDEA.
| listType | selects main or target download list in winIDEA (see dialog Debug / Configure Session / SoCs / Edit) |
| isAbsolutePath | if true, absolute paths are returned |
| IOException | in case of an error |
Python example: test_get_download_list.py
| int isys::CLoaderController::removeFromDownloadList | ( | CLoaderController::DownloadListType | listType, |
| int | fileIndex ) |
Removes the file at the given index from the list.
| listType | selects main or target download list in winIDEA (see dialog Debug / Configure Session / SoCs / Edit) |
| fileIndex | index of file to be removed from the list. |
Python example: test_remove_from_download_list.py
| int isys::CLoaderController::targetDownload | ( | CDownloadConfiguration::DownloadFileFormats | format, |
| const std::string & | fileName ) |
This is a specialized version of the more general method targetDownload(CDownloadConfigurationSPtr , const std::string &, const std::string &).
It downloads code and symbols, memory area is not used, no real-time access. It is equivalent to the following code snippet:
CDownloadConfiguration downloadConfig; downloadConfig.setCodeOffset(0).setSymbolsOffset(0).setDownloadFileFormat(format); loader.targetDownload(downloadConfig, fileName, "");
| format | format of the download file |
| fileName | the file to be downloaded |
| IOException | in case of an error |
| int isys::CLoaderController::targetDownload | ( | CDownloadConfigurationSPtr | downloadConfig, |
| const std::string & | fileName, | ||
| const std::string & | cmdLineOptions ) |
This method downloads a file in winIDEA's target file list (see Debug / Configure Session / SoCs / Edit / Target Files) without resetting the target and initializing emulation.
| downloadConfig | download configuration |
| fileName | the file to be downloaded |
| cmdLineOptions | command line options for download. These options contain settings from the winIDEA advanced download options dialog (Debug / Configure Session / SoCs / Edit / Target Files / Edit / Advanced). To see how to format this string, set the options manually in winIDEA, and then call getDownloadList() and print the options attribute of the returned items. |
| IOException | in case of an error |
| void isys::CLoaderController::verifyDownload | ( | ) |
Verifies download.
| IOException | if verification can not be performed |
| IllegalStateException | if verification detects error in download |