Gang430.Dll Description - Texas Instruments MSP430 User Manual

Gang programmer
Hide thumbs Also See for MSP430:
Table of Contents

Advertisement

GANG430.DLL Description

4.1
GANG430.DLL Description
GANG430.DLL communicates with the MSP-GANG430 programmer unit and the connected MSP430
device(s). GANG430.INI must be in the same directory as GANG430.DLL.
The configuration of the MSP-GANG430 should be done with the following sequence.
InitCom
GangEraseImage
GangLoadImage(app.hex)
GangAppendImage
GangLoadImage(bsl.hex)
GangLoadParameters
ReleaseCom
Once the configuration is completed, all process-specific parameters are stored in the flash memory of the
MSP-GANG430 programmer unit.
InitCom
GangSelectBaudrate
...GangMainProcess
...GangGetResult
...GangAccessTargetSFR
...GangProgramTarget
ReleaseCom
The MSP-GANG430 is able to store two different program codes with two different parameters. This
makes it possible to use an MSP-GANG430 both for production test and for final programming of the
target systems. The following configuration will download "test code" to the target system, and after this,
the "final code" will be downloaded to the target system.
InitCom
GangSelectImage(0)
GangEraseImage
GangLoadImage
GangLoadParameters
GangSelectImage(1)
GangEraseImage
GangLoadImage
GangLoadParameters
...GangSelectImage(0)
...GangMainProcess
...GangGetResult
...GangSelectImage(1)
...GangMainProcess
...GangGetResult
ReleaseCom
Several examples showing how the DLL could be used are located in the DLL_Usage_Examples
subdirectory of the GANG430 system. The return codes for all functions are listed in
This DLL could be used separately using the following conventions.
34
Dynamic Link Library GANG430.DLL
// Open communication port
// Erase image flash memory
// Write target code into image flash memory
// use to append the second code image without erasing image flash memory (optional)
// append second code image without erasing image flash memory (optional)
// Determine process flow
// Close communication port
// Open communication port
// Optional: slow down communication speed
// Execute gang programming process
// Receive result for diagnostic
// Optional: stimulate device pins
// Optional: write serial numbers to targets
// Close communication port
// Open communication port
// select image #0 (test image)
// Erase image flash memory #0
// Write target code into image flash memory #0
// Determine process flow #0
// select image #1 (final product image)
// Erase image flash memory #1
// Write target code into image flash memory #1
// Determine process flow #1
// select image #0 (test image)
// Execute gang programming process
// Receive result for diagnostic
// select image #1 (final product image)
// Execute gang programming process
// Receive result for diagnostic
// Close communication port
Copyright © 2003–2010, Texas Instruments Incorporated
Section
4.2.
SLAU101O – March 2003 – Revised May 2010
www.ti.com

Advertisement

Table of Contents
loading

This manual is also suitable for:

Msp-gang430

Table of Contents