Syntax:
MSPPRG_API INT_X F_AutoProgram( INT_X mode );
mode = 0;
mode = 1 and up - reserved
Return value:
0 - FALSE
1 - TRUE
-2 (0xFFFFFFFE) - FPA_INVALID_NO
Example:
............................
if( F_Initialization() != TRUE ) //required API-Dll - initialization
{
// Initialization error
}
int st = F_ConfigFileLoad( “c:\test\configfile.cfg” );
if(( st & 1 ) != TRUE )
{
Info = st & 0xFFFE;
....................
}
F_GetSetup( &config ); //API-DLL - get configuration from the programmer
............................ // modify configuration if required
F_ConfigSetup( config ); // download setup to programmer
F_SetConfig( ....., ..... ) // modify configuration if required
do{
.................... // prepare next microcontroller
F_AutoProgram(0);
.................... //exit if the last microcontroller
// has been programmed
} while(1);
....................
F_VerifyFuseOrPassword
F_VerifyFuseOrPassword -Verify the Security fuse if JTAG/SBW interface is active, or
verify the password access if BSL interface is active.
VALID FPA index - ( 1 to 64 ) or 0 (ALL FPAs) executed simultaneously.
Syntax:
MSPPRG_API INT_X F_VerifyFuseOrPassword( void );
85