slau358q.pdf - 第4页

www.ti.com 4 SLAU358Q – September 2011 – Revised October 2019 Submit Documentation Feedback Copyright © 2011–2019, Texas Instruments Incorporated Contents 4.2.47 MSPGANG_Interactive_ClrLockedDevice ......................…

100%1 / 142
www.ti.com
3
SLAU358QSeptember 2011Revised October 2019
Submit Documentation Feedback
Copyright © 2011–2019, Texas Instruments Incorporated
Contents
3.5.3 Commands Supported by Application Firmware .............................................................. 70
3.5.4 API Firmware Commands That Should Not be Used ........................................................ 73
4 Dynamic Link Library for MSP-GANG Programmer................................................................. 77
4.1 Gang430.dll Wrapper Description........................................................................................ 77
4.2 MSP-GANG.dll Description ............................................................................................... 77
4.2.1 MSPGANG_GetDataBuffers_ptr ................................................................................ 78
4.2.2 MSPGANG_SetGangBuffer, MSPGANG_GetGangBuffer................................................... 79
4.2.3 MSPGANG_GetDevice ........................................................................................... 81
4.2.4 MSPGANG_LoadFirmware ...................................................................................... 83
4.2.5 MSPGANG_InitCom .............................................................................................. 83
4.2.6 MSPGANG_ReleaseCom ........................................................................................ 83
4.2.7 MSPGANG_GetErrorString ...................................................................................... 84
4.2.8 MSPGANG_SelectBaudrate ..................................................................................... 84
4.2.9 MSPGANG_GetDiagnostic....................................................................................... 84
4.2.10 MSPGANG_MainProcess ....................................................................................... 85
4.2.11 MSPGANG_InteractiveProcess ................................................................................ 85
4.2.12 MSPGANG_Interactive_Open_Target_Device ............................................................... 85
4.2.13 MSPGANG_Interactive_Close_Target_Device............................................................... 86
4.2.14 MSPGANG_Interactive_DefReadTargets..................................................................... 86
4.2.15 MSPGANG_Interactive_ReadTargets ......................................................................... 87
4.2.16 MSPGANG_Interactive_ReadBytes ........................................................................... 88
4.2.17 MSPGANG_Interactive_WriteWord_to_RAM ................................................................ 88
4.2.18 MSPGANG_Interactive_WriteByte_to_RAM.................................................................. 89
4.2.19 MSPGANG_Interactive_WriteBytes_to_RAM ................................................................ 89
4.2.20 MSPGANG_Interactive_WriteBytes_to_FLASH ............................................................. 90
4.2.21 MSPGANG_Interactive_Copy_Gang_Buffer_to_RAM ...................................................... 90
4.2.22 MSPGANG_Interactive_Copy_Gang_Buffer_to_FLASH ................................................... 91
4.2.23 MSPGANG_Interactive_EraseSectors ........................................................................ 91
4.2.24 MSPGANG_Interactive_BlankCheck .......................................................................... 92
4.2.25 MSPGANG_Interactive_DCO_Test............................................................................ 92
4.2.26 MSPGANG_SelectImage ....................................................................................... 93
4.2.27 MSPGANG_EraseImage ........................................................................................ 94
4.2.28 MSPGANG_CreateGangImage ................................................................................ 94
4.2.29 MSPGANG_LoadImageBlock .................................................................................. 95
4.2.30 MSPGANG_VerifyPSAImageBlock ............................................................................ 96
4.2.31 MSPGANG_ReadImageBlock .................................................................................. 96
4.2.32 MSPGANG_Read_Code_File................................................................................. 100
4.2.33 MSPGANG_Save_Config, MSPGANG_Load_Config, MSPGANG_Default_Config................... 100
4.2.34 MSPGANG_SetConfig, MSPGANG_GetConfig ............................................................ 101
4.2.35 MSPGANG_GetNameConfig, MSPGANG_SetNameConfig.............................................. 110
4.2.36 MSPGANG_SetTmpGANG_Config .......................................................................... 112
4.2.37 MSPGANG_GetLabel .......................................................................................... 113
4.2.38 MSPGANG_GetInfoMemory, MSPGANG_SetInfoMemory ............................................... 114
4.2.39 MSPGANG_Get_qty_MCU_Type, MSPGANG_Set_MCU_Type,
MSPGANG_Get_MCU_TypeName, MSPGANG_Get_qty_MCU_Family,
MSPGANG_Get_MCU_FamilyName, MSPGANG_Get_MCU_Name.................................... 114
4.2.40 MSPGANG_Set_MCU_Name................................................................................. 115
4.2.41 MSPGANG_HW_devices...................................................................................... 116
4.2.42 MSPGANG_GetProgressStatus .............................................................................. 117
4.2.43 MSPGANG_GetAPIStatus..................................................................................... 119
4.2.44 MSPGANG_Set_IO_State..................................................................................... 120
4.2.45 MSPGANG_Convert_Address ................................................................................ 122
4.2.46 MSPGANG_Memory_Header_text ........................................................................... 122
www.ti.com
4
SLAU358QSeptember 2011Revised October 2019
Submit Documentation Feedback
Copyright © 2011–2019, Texas Instruments Incorporated
Contents
4.2.47 MSPGANG_Interactive_ClrLockedDevice................................................................... 122
4.2.48 MSPGANG_Get_Code_Info................................................................................... 123
4.2.49 MSPGANG_MakeSound....................................................................................... 123
4.2.50 MSPGANG_CallBack_ProgressBar.......................................................................... 124
4.2.51 MSPGANG_GetPCHardwareFingerprint .................................................................... 126
4.2.52 MSPGANG_Flash_valid_addr ................................................................................ 126
5 Schematics ...................................................................................................................... 127
5.1 Schematics ................................................................................................................ 127
6 Frequently Asked Questions .............................................................................................. 134
6.1 Question: Why does device init, connect, or programming fail?.................................................... 134
6.2 Question: Can I use single wires for connection between MSP-GANG and target device? .................... 135
6.3 Question: How to serialize parts? ...................................................................................... 135
6.4 Question: How to have parts run after programming? ............................................................... 135
6.5 Question: What are possible reasons for the part to fail Verify step? ............................................. 135
Revision History ........................................................................................................................ 136
www.ti.com
5
SLAU358QSeptember 2011Revised October 2019
Submit Documentation Feedback
Copyright © 2011–2019, Texas Instruments Incorporated
List of Figures
List of Figures
1-1. Top View of the MSP Gang Programmer ............................................................................... 10
2-1. Main MSP Gang Programmer Dialog GUI, Interactive Mode ........................................................ 14
2-2. Memory Options ............................................................................................................ 16
2-3. Reset Options............................................................................................................... 17
2-4. Verification Error............................................................................................................ 19
2-5. Flash Memory Data ........................................................................................................ 20
2-6. Main MSP Gang Programmer Dialog GUI, From Image Mode ...................................................... 21
2-7. Main MSP Gang Programmer Dialog GUI, From Image Mode and Custom Configuration Enabled ........... 23
2-8. Main MSP Gang Programmer Dialog GUI, From Script .............................................................. 25
2-9. Main MSP Gang Programmer Dialog GUI, Standalone Mode ....................................................... 30
2-10. Image Option................................................................................................................ 31
2-11. Target Enable or Disable Option ......................................................................................... 32
2-12. Memory Options, BSL Sectors Selected ................................................................................ 34
2-13. MSP430 Secure Device Options ......................................................................................... 35
2-14. MSP432 Secure Device Options ......................................................................................... 36
2-15. MSP432 Secure Device Options Details ................................................................................ 37
2-16. Memory Options Window.................................................................................................. 38
2-17. Serialization ................................................................................................................. 39
2-18. Image Name Configuration Screen ...................................................................................... 42
2-19. Image File Security Options .............................................................................................. 43
2-20. Hardware Fingerprint of Computer in Use .............................................................................. 43
2-21. Programming From Image File ........................................................................................... 44
2-22. Password for Image File................................................................................................... 45
2-23. Code File Data.............................................................................................................. 47
2-24. Comparison of Code and Flash Memory Data of the Target Microcontroller ...................................... 48
2-25. Self Test ..................................................................................................................... 54
2-26. Information About the MSP Gang Programmer ........................................................................ 58
2-27. Preferences Selection Window ........................................................................................... 59
5-1. MSP-GANG Simplified Schematic (1 of 4) ............................................................................ 127
5-2. MSP-GANG Simplified Schematic (2 of 4) ............................................................................ 128
5-3. MSP-GANG Simplified Schematic (3 of 4) ............................................................................ 129
5-4. MSP-GANG Simplified Schematic (4 of 4) ............................................................................ 130
5-5. Gang Splitter Schematic ................................................................................................. 131
5-6. BSL Connection Schematic ............................................................................................. 132
5-7. Schematic of MSP-GANG 14-20 Adapter ............................................................................. 133
5-8. Top View of MSP-GANG 14-20 Adapter (Order Separately From TI) ............................................. 133