slau358q.pdf - 第72页

Detailed Description of Commands www.ti.com 72 SLAU358Q – September 2011 – Revised October 2019 Submit Documentation Feedback Copyright © 2011–2019, Texas Instruments Incorporated Firmware CFG_TMP_POWER_VCC_EN (8) Data 0…

100%1 / 142
www.ti.com
Detailed Description of Commands
71
SLAU358QSeptember 2011Revised October 2019
Submit Documentation Feedback
Copyright © 2011–2019, Texas Instruments Incorporated
Firmware
When ACK is received, then whole process is finished, and all results are available on bytes 8 to 32. See
the Get Progress Status command description for details. During the polling process, it is possible to
examine all bytes of the progress status and check the current state; for example, what targets are
connected or erased. In the comment bytes (34-50) is the current process, and the same message as is
displayed on the LCD display.
3.5.3.3 Set Temporary Configuration in MSP-GANG Command
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)
Detailed Description of Commands
www.ti.com
72
SLAU358QSeptember 2011Revised October 2019
Submit Documentation Feedback
Copyright © 2011–2019, Texas Instruments Incorporated
Firmware
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
www.ti.com
Detailed Description of Commands
73
SLAU358QSeptember 2011Revised October 2019
Submit Documentation Feedback
Copyright © 2011–2019, Texas Instruments Incorporated
Firmware
CFG_TMP_BSL_1ST_PASSW (36)
Data 0x00 BSL_ANY_PASSW
Data 0x01 BSL_PASSW_FROM_CODE_FILE
Data 0x02 BSL_PASSW_FROM_PASSWORD_FILE
Data 0x03 BSL_EMPTY_PASSW
3.5.3.4 Get Selected Status Command
Tx ->3E 58 04 04 A1 0 - - 0 0 - - CKL CKH
Rx ->80 0 n n B0 B1 B2 B3 ... Bn CKL CKH
The Get Selected Status command gets the selected status or results from the MSP-Gang programmer.
The following numbers (A1) are available. See the description of the MSPGANG_GetAPIStatus function
(Section 4.2.43) for details of the B0...Bn byte contents.
GET_APP_FLAGS 10
GET_LAST_STATUS 12
GET_LAST_ERROR_NO 14
3.5.3.5 Read From Gang Data Buffer Command
Tx -> 3E 49 4 4 T 0 - - n 0 - - CKL CKH
Rx -> 80 0 n n D1 D2 D3 D4 D5 D6 D7 D8...Dn CKL CKH
The MSP-GANG Programmer contains a temporary data buffer that can be used for writing data to and
reading data from each target device. The buffer size is 128 bytes for each target device Buffer[8] [128];
T = Target device number, 1 to 8
n = Number of bytes taken from the Buffer[T-1] [..]
3.5.3.6 Write to Gang Data Buffer Command
Tx -> 3E 4A n+4 n+4 T 0 - - n 0 D1 D2...Dn CKL CKH
Rx -> ACK
Write bytes to selected target’s Buffer -> Buffer[8] [128]
T = Target device number, 1 to 8
n = Number of bytes written to Buffer[T-1] [..]
3.5.4 API Firmware Commands That Should Not be Used
3.5.4.1 Interactive Process Command
Tx -> 3E 46 n n D1 ... Dn CKL CKH
Rx -> 80 0 k k D1 ... Dk CKL CKH
NOTE: Do not use this command. This command is used by the API-DLL and GUI only.
3.5.4.2 Erase Image Command
Tx -> 3E 33 4 4 0 0 0 0 CKL CKH
Rx -> B0 (In Progress)
NOTE: Do not use this command. This command is used by the API-DLL and GUI only.