EasyManua.ls Logo

Elprotronic MSP430 - F_Setconfig

Default Icon
119 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
- 0x08 - BSL Segment 3 (0x1600-0x17FF)
[ CFG_BSL_FLASH_RD_EN 91 ]
Sum of enabled BSL sectors
- 0x01 - BSL Segment 0 (0x1000-0x11FF)
- 0x02 - BSL Segment 1 (0x1200-0x13FF)
- 0x04 - BSL Segment 2 (0x1400-0x15FF)
- 0x08 - BSL Segment 3 (0x1600-0x17FF)
[ CFG_DCO_EXT_RESISTOR_EN 92 ]
0 - disable
1 - enable
Note: See the MSPPRG-Dll.h header file for the list of the latest indexes,
definitions etc.
Example:
Example below shows the method of modification of the programmers configuration setup. First the
current setup from the programmer is uploaded to the application, after that some of the parameters
have been modified and at the end the modified setup is returned back to the programmer.
CONFIG_BLOCK config; //programmer’s configuration data
.......................
F_GetSetup( &config );
//API-DLL - get configuration from the programmer
config.Interface = INTERFACE_JTAG;
//select JTAG interface
config.BlowFuseEn = 0;
//disable fuse blow option
config.FlashEraseModeIndex = ERASE_ALL_MEM_INDEX;
//select all memory erase option
F_ConfigSetup( config );
//API-DLL - setup configuration in the programmer
The same configuration can be read/set using the by the F_SetConfig function as follows
F_SetConfig( CFG_INTERFACE, INTERFACE_JTAG );
F_SetConfig( CFG_BLOWFUSE, 0 );
F_SetConfig( CFG_FLASHERASEMODE, ERASE_ALL_MEM_INDEX );
F_SetConfig
F_SetConfig - Setup one item of the programmer’s configuration.
VALID FPA index - ( 1 to 64 ) or 0 (ALL FPAs) executed sequentially.
63

Table of Contents