Everything

csplus.download_loadmodule


This function downloads a file.

[Specification format]

csplus.download_loadmodule(session_id, file_path="", offset=0, load_image=True, load_symbols=True, clear_old_symbols=False, core_name="")

[Argument(s)]

Argument

Description

session_id

This argument is ignored in this version.

file_path

Full path of the file to download.

offset

The offset to download the file at.

load_image

Specify whether to download image from the specified file.

load_symbols

Specify whether to download symbols from the specified file.

clear_old_symbols

Specify whether to add symbols from the specified file to current symbol table or overwrite symbol table in debugger.

core_name

The name of the core to download to.

[Return value]

None

[Detailed description]

-

If file_path is not specified or empty, download all loadmodules defined in launch configuration of the specified debug session, ignoring all other parameter's value.

-

No reset happens after downloading, "csplus.reset_debug_session()" command need to be called manually.

[Example of use]

 

>>> import sys
>>> sys.path.append("C:\Program Files (x86)\Renesas Electronics\CS+\CC\Plugins\PythonConsole\integration_service")
>>> import csplus
>>> csplus.connect()
>>> session_id = csplus.launch_debug_session("", True)
>>> csplus.download_loadmodule(session_id)
>>>