debugger.Download.LoadModule


This function downloads a load module.

[Specification format]

debugger.Download.LoadModule(fileName = "", downloadOption = DownloadOption.Both, append = False, flashErase = False, vendorType = VendorType.Auto)

[Argument(s)]

Argument

Description

fileName

Specify a download file.

downloadOption

Specify an option.

The options that can be specified are shown below.

Type

Description

DownloadOption.NoSymbol

Do not load symbol information.

DownloadOption.SymbolOnly

Only load symbol information.

DownloadOption.Both

Load both symbol information and object information (default).

append

Specify whether to make an additional download.

True: Perform additional download.

False: Perform overwrite download (default).

flashErase

Specify whether to initialize a flash memory before download.

True: Initialize a flash memory before download.

False: Do not initialize a flash memory before download (default).

vendorType

Specify the vendor of the compiler.

The types that can be specified are shown below.

Type

Description

VendorType.Auto

Automatically specify the vendor of the compiler judging from the output contents of debugging information (default).

VendorType.Ghs

Make this specification when using a compiler made by Green Hills Software, Inc.

[Return value]

If a binary file was downloaded successfully: True

If there was an error when downloading a binary file: False

[Detailed description]

-

This function downloads a load module.

-

If fileName is not specified, the file specified on the [Download File Settings] tab in the Property panel of the debugging tool is downloaded.

-

If downloadOption is specified, the processing is performed in accordance with the specification.

[Example of use]

>>>debugger.Download.LoadModule("C:/test/testModule.lmf")
True
>>>debugger.Download.LoadModule("C:/test/testModule2.lmf", DownloadOption.SymbolOnly, True)
False
>>>