DownloadTxt Method


This method is used to download calibration data stored in a txt file to flash. Each calibration value in the text file must have its own line. After a successful exit from the DownloadTxt() method, the target C8051xxx will be in a "Halt" state. If the device is left in the "Halt" state, it will not begin code execution until the device is reset by a Power-On reset or by a SetTargetGo() method call.


Syntax
[cs = ] object.DownloadTxt( _
        sDownloadFile As String, _
        [ nStartAddress As Long, ] _
        [ blDeviceErase As Boolean ] _
        [ nLockFlash As Boolean ] _
        [ bPersistFlash As Boolean ] _
    )

Parameters
sDownloadFile
    A String containing the full path and filename of the file to be downloaded.
nStartAddress
    The start address of the flash memory to write the calbration data to.
blDeviceErase
    When set to True performs a device erase before the download initiates. If set to
    False the part will not be erased. A device erase will erase the entire contents
    of the device's Flash. The default is False.
nLockFlash
    Set this parameter to True to lock the Flash following the download. If Flash is
    locked, the DLL will no longer be able to connect to the device.
bPersistFlash
    If set to True the contents of flash will be read prior to programming. Flash pages
    are erased prior to programming. If there is any data in Flash on the same pages that
    will be programmed that needs to be preserved then set this parameter to True.

Possible Values
cs
    Long. 16 Bit Checksum.