slau358q.pdf - 第126页

MSP-GANG.dll Description www.ti.com 126 SLAU358Q – September 2011 – Revised October 2019 Submit Documentation Feedback Copyright © 2011–2019, Texas Instruments Incorporated Dynamic Link Library for MSP-GANG Programmer 4.…

100%1 / 142
www.ti.com
MSP-GANG.dll Description
125
SLAU358QSeptember 2011Revised October 2019
Submit Documentation Feedback
Copyright © 2011–2019, Texas Instruments Incorporated
Dynamic Link Library for MSP-GANG Programmer
// 0 0 Vcc below 0.7V
// 0 1 Vcc below Vcc min ( 0.7 V < Vcc < Vcc min)
// 1 0 Vcc over Vcc min (OK status)
// 1 1 Vcc over 3.8V
BYTE VccErr; //byte offset - 26
//current Vcc below min
BYTE VccErr_Cumulative; //byte offset - 27
//Cumulative (during programminf) Vcc below min
BYTE JTAG_init_err_mask; //byte offset - 28
BYTE JTAG_Fuse_already_blown_mask; //byte offset - 29
BYTE Wrong_MCU_ID_mask; //byte offset - 30
BYTE Progress_bar; //byte offset - 31
// 0...100%
char comment[SCRIPT_TEXT_SIZE]; //byte offset - 32..47
}st;
};
union DLL_STATUS
{
BYTE bytes[DLL_STATUS_SIZE+4];
struct
{
BYTE new_data;
BYTE COM_status;
//reserved for future
}st;
};
void *text, *history;
GANG_PROGRESS_STATUS Gang_Status;
DLL_STATUS DLL_Status;
int pos;
pos = MSPGANG_CallBack_ProgressBar( &text, &history, Gang_Status.bytes+2, DLL_Status.bytes );
if( pos >= 0 )
{
ProgressBar->SetPos( pos );
...
}
MSP-GANG.dll Description
www.ti.com
126
SLAU358QSeptember 2011Revised October 2019
Submit Documentation Feedback
Copyright © 2011–2019, Texas Instruments Incorporated
Dynamic Link Library for MSP-GANG Programmer
4.2.51 MSPGANG_GetPCHardwareFingerprint
Reads the hardware fingerprint from the current PC. The function is used for projects that are protected
with a password or a hardware fingerprint number.
Syntax
DWORD WINAPI MSPGANG_GetPCHardwareFingerprint( void );
Result
DWORD Eight digit hardware fingerprint number taken from current PC
4.2.52 MSPGANG_Flash_valid_addr
Determines if the selected address space can be used for flash, FRAM, or OTP programming.
Syntax
LONG WINAPI MSPGANG_Flash_valid_addr(LONG dest, LONG start_addr, LONG size );
Arguments
LONG dest Spare not used
LONG start_addr Memory region start address
LONG size Number of bytes of memory region to be validated
Result
LONG ERR_NONE (0) if address is programmable
Error code otherwise
MSP-GANG-simlified.sch-1 - Sun Jan 15 14:25:06 2012
127
SLAU358QSeptember 2011Revised October 2019
Submit Documentation Feedback
Copyright © 2011–2019, Texas Instruments Incorporated
Schematics
Chapter 5
SLAU358Q September 2011 Revised October 2019
Schematics
5.1 Schematics
Figure 5-1. MSP-GANG Simplified Schematic (1 of 4)