slau358q.pdf - 第74页

Detailed Description of Commands www.ti.com 74 SLAU358Q – September 2011 – Revised October 2019 Submit Documentation Feedback Copyright © 2011–2019, Texas Instruments Incorporated Firmware 3.5.4.3 Read Info Memory From M…

100%1 / 142
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.
www.ti.com
Detailed Description of Commands
75
SLAU358QSeptember 2011Revised October 2019
Submit Documentation Feedback
Copyright © 2011–2019, Texas Instruments Incorporated
Firmware
3.5.4.10 Display Message on LCD Display Command
Tx -> 3E 54 n+4 n+4 A1 A2 n 0 D1 ... Dn CKL CKH
Rx -> ACK
NOTE: Do not use this command. This command is used by the API-DLL and GUI only.
3.5.4.11 Set IO State Command
Tx -> 3E 4E 0C 0C VL VH 08 00 D1 D2 D3 D4 D5 D6 D7 D8 CKL CKH
Rx -> ACK
Modify static levels on the I/O pins (JTAG lines).
Vcc V
CC
level in mV ( V
CC
= VH × 256 + VL)
D1 Open destination buffer for output and transferred data for each target
0 = none
1 = TDI (target1 to target8)
2 = TDOI (target1 to target8)
3 = TMS (target1 to target8)
4 = RST (target1 to target8)
5 = BSL-RX (target1 to target8)
D2 data transferred to the buffer above
b0 to b7 target1 to target8
D3 output enable bits: 0 = high impedance, 1 = output
b2 (0x04) common RST the same state for all eight targets (Note: if the RST buffer above is
selected, then this state is ignored)
b3 (0x08) common TEST the same state for all eight targets
b4 (0x10) common TCK the same state for all eight targets
b5 (0x20) common TMS the same state for all eight targets (Note: if the TMS buffer above is
selected, then this state is ignored)
D4 output level on all targets: 0 = LOW, 1 = HIGH
b2 (0x04) common RST the same level for all eight targets (Note: if the RST buffer above is
selected, then this state is ignored)
b3 (0x08) common TEST the same level for all eight targets
b4 (0x10) common TCK the same level for all eight targets
b5 (0x20) common TMS the same level for all eight targets (Note: if the TMS buffer above is
selected, then this state is ignored)
D5 V
CC
enable bits to each targets
b0 to b7 target1 to target8
D6 I
CC
HI enable: 0 = disable, 1 = enable
D7 spare
D8 spare
Example 1
Generate a short RST pulse on target 1 only and force RST level LOW on targets 2 to 5 and RST level
HIGH on targets 6 and 7. V
CC
on targets 1 to 7 is 3.3 V ( 0x0CE4) and on target 8 is 0 V (disabled).
Tx -> 3E 4E 0C 0C E4 0C 08 00 04 60 00 00 7F 00 00 00 CKL CKH
then
Tx -> 3E 4E 0C 0C E4 0C 08 00 04 61 00 00 7F 00 00 00 CKL CKH