SLAU358Q September 2011 – October 2019
Tx -> 3E 56 6 6 A1 0 2 0 DL DH CKL CKH
Rx -> 90 (ACK)
By default the Main Process command takes all configuration and setup from the image memory. It is possible to overwrite some of the configuration parameters and execute the Main Process commands with a modified configuration. The following parameters can be modified: Targets VCC, high or low current, external VCC enable or disable, VCC settle time, communication interface (JTAG or SBW), enabled target devices and enable process mask (for example, erase or program verify). The Set Temporary Configuration in MSP-GANG command allows modification of these parameters.
When the Main Process command is finished, then the temporary setups are erased and the configuration from the image memory is restored. When the modified configuration should be used in the next run, then the temporary configuration should be transferred to MSP-GANG again before starting the Main Process command.
The Set Temporary Configuration in MSP-GANG command transfers two data: address index (A1) and one 16-bit data [DL (LSB byte) and DH (MSB byte)].
The following address indexes are defined:
CFG_TMP_CLEAR (2)
Data (DH, DH) is irrelevant.
Remove temporary configuration and take it from the image memory.
CFG_TMP_TASK_MASK (4)
Set the execution mask.
By default execution mask is 0xFFFF (execute all procedures).
Data (DH, DL) can be from 0x0000 up to 0xFFFF.
Currently supported bits in the execution mask:
CONNECT_TASK_BIT | 0x0001 |
ERASE_TASK_BIT | 0x0002 |
BLANKCHECK_TASK_BIT | 0x0004 |
PROGRAM_TASK_BIT | 0x0008 |
VERIFY_TASK_BIT | 0x0010 |
SECURE_TASK_BIT | 0x0020 |
DCO_CAL_TASK_BIT | 0x0040 |
For example, when the target device must be erased, then only the following data should be send (A1, D).
4, 0x0003
Full command:
Tx -> 3E 56 6 6 4 0 2 0 3 0 CKL CKH
CFG_TMP_VCC_VALUE (6)
Data – VCC value in mV (range from 1800 to 3600)
CFG_TMP_POWER_VCC_EN (8)
Data | 0 | Target devices powered from an external power supply |
Data | 1 | Target devices powered from MSP-GANG programmer |
CFG_TMP_INTERFACE (10)
Data | JTAG_FAST | 0x0004 |
Data | JTAG_MED | 0x0005 |
Data | JTAG_SLOW | 0x0006 |
Data | SBW_FAST | 0x0008 |
Data | SBW_MED | 0x0009 |
Data | SBW_SLOW | 0x000A |
CFG_TMP_GANG_MASK (12)
Sum of target bit masks
Target 1 | 0x01 |
Target 2 | 0x02 |
Target 3 | 0x04 |
⋮ | ⋮ |
Target 8 | 0x80 |
One target only – Target 1 | Data = 0x0001 |
All targets | Data = 0x00FF |
CFG_TMP_VCC_ONOFF (14)
Immediately turn VCC target on of off
Data | 0x0001 | ON |
Data | 0x0000 | OFF |
CFG_TMP_ICC_HI_EN (18)
High (50 mA) current from programmer enable or disable
Data | 0x0001 | Enable |
Data | 0x0000 | Disable |
CFG_TMP_IO_INTERFACE (20)
Set interface configuration
Data | 0x0000 | SBW through TDOI line |
Data | 0x0001 | SBW through RST line |
CFG_TMP_RESET (22)
Immediately reset target device
Data | 0x0001 | Reset target device |
Data | 0x0000 | Release Reset line |
CFG_TMP_VCC_SETTLE_TIME (26)
Data | 0x0000 to 0x00C8 | Settle VCC time in step 20 ms |
Data | 0x00 | BSL_ANY_PASSW |
Data | 0x01 | BSL_PASSW_FROM_CODE_FILE |
Data | 0x02 | BSL_PASSW_FROM_PASSWORD_FILE |
Data | 0x03 | BSL_EMPTY_PASSW |