slau358q.pdf - 第73页

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

100%1 / 142
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.
Detailed Description of Commands
www.ti.com
74
SLAU358QSeptember 2011Revised October 2019
Submit Documentation Feedback
Copyright © 2011–2019, Texas Instruments Incorporated
Firmware
3.5.4.3 Read Info Memory From MSP-GANG Command
Tx -> 3E 41 4 4 A1 0 0 0 CKL CKH
Rx -> 80 0 80 80 D1 ... D128 CKL CKH
NOTE: Do not use this command. This command is used by the API-DLL and GUI only.
3.5.4.4 Write to MSP-GANG Info Memory Command
Tx -> 3E 42 84 84 A1 0 80 0 D1 ... D128 CKL CKH
Rx -> ACK
NOTE: Do not use this command. This command is used by the API-DLL and GUI only.
3.5.4.5 Verify Access Key Command
Tx -> 3E 44 4 4 0 0 0 0 CKL CKH
Rx -> ACK or NACK
NOTE: Do not use this command. This command is used by the API-DLL and GUI only.
3.5.4.6 Write to Image Block Command
Tx -> 3E 43 n n A1 A2 A3 0 –6 0 D1 ... Dn-6 CKL CKH
Rx -> ACK or NACK
The Write to Image Block command loads the data bytes into the image buffer of the MSP-GANG. Do not
use this function in your application. Use MSP-GANG GUI and MSP-GANG DLL for writing data into the
internal image buffer.
3.5.4.7 Verify Image Check Sum Command
Tx -> 3E 45 08 08 A1 A2 A3 0 LL LH D1 D2 CKL CKH
Rx -> ACK or NACK
The Verify Image Check Sum command verifies the image check sum of all written image contents. Do
not use this function in your application. Use MSP-GANG GUI and MSP-GANG DLL for writing and
verifying data in the internal image buffer.
3.5.4.8 Read Image Header Command
Tx -> 3E 47 6 6 A1 A2 0 0 n 0 CKL CKH
Rx -> 80 0 n n D1 ... Dn CKL CKH
NOTE: Do not use this command. This command is used by the API-DLL and GUI only.
3.5.4.9 Disable API Interrupts Command
Tx -> 3E 4C 4 4 R R R R CKL CKH
Rx -> ACK
NOTE: Do not use this command. This command is used by the API-DLL and GUI only.