This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

编程器型号:MSP-GANG Programmer使用

Other Parts Discussed in Thread: MSP-GANG

为提高生产效率,客户计数设计自动程序烧录工装,通过编程器8个端口同时烧录,并通过我们自开发的软件判断8个端口中哪些成功,哪些失败,做标记。

   有两点疑问咨询,如下

⑴     脱机烧录时,串口RS-232或USB口是否能输出相关的协议报文?已知在线烧录时有报文输出?

⑵     自带的上位机与编程器之间的交互报文协议是否能公开给我们?我们要提取报文内容,判断各个端口的烧录状态!  麻烦帮忙提供下自带的上位机与编程器之间的交互报文协议

  • 您可以尝试使用MSP-GANG.dll来控制MSP-GANG.

    具体请您看一下

    www.ti.com/.../slau358p.pdf

    的4.2 MSP-GANG.dll Description

    且有相关的示例,您可以在下面的路径找到

    C:\Program Files\Texas Instruments\MSP-GANG\Examples\C_Applications_MSP_DLL

    C:\Program Files\Texas Instruments\MSP-GANG\Examples\Cpp_Applications_MSP_DLL
  • 如果不需要DLL的所有控制,则可以编写软件来通过USB /串行端口控制MSP-GANG。如您自己开发的软件那样。有关可从USB或RS-232连接使

    用的命令的参考第3章

    您可以通过以下步骤来实现:

    1. Using the MSP-GANG GUI software, configure the programmer for all of the settings you are going to want for your programming (which targets are enabled, SBW vs JTAG vs BSL used, programming voltage and how it's supplied, the binary file that you want to load, etc).

    2. Once you've tested programming using this configuration and know that it's all set the way you'd like, follow the steps in section 2.1.6 of the MSP-GANG user's guide to create and save the current configuration as an image in the MSP-GANG internal memory (select "Save to image")

    3. Now that the image is saved into the MSP-GANG memory, you no longer need the GUI, so close it. Now using a terminal program like Docklight, HyperTerminal, or PuTTY, you should be able to connect to the COM port that the MSP-GANG has enumerated on. See section 3.2 for the default serial communication setup (9600 baud, 1 start bit, 8 data bits, even parity, 1 stop bit). Note that if possible it is best to use the USB interface for the serial communication as it is much faster.

    4. Now following the protocol outlined in section 3 (make note of the data frame structure), you can do a sequence of commands like this:

    1)SYNC/"Hello" command (required at beginning)
    2)Select Baud Rate command (to increase baud rate for faster programming)
    3)Select Image (to choose the image that you loaded into the MSP-GANG memory earlier using the GUI, and select it to be used for programming)
    4)Main Process (this performs the actual programming according to the image you selected)
    5)now you will poll the Get Progress Status command until it indicates that the Main Process is complete (byte 6 will become an ACK instead of In Progress - see user's guide 3.5.2.10). Get Progress Status will also return any errors that were encountered during programming

    Instead of using a terminal software to send the commands, you could use any coding environment that allows you to access COM ports, and write a program to send and handle the above commands automatically.
  • MSP-GANG.dll最新的文档应该是这个
    www.ti.com/.../slau101q.pdf