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如何使用命令控制

Other Parts Discussed in Thread: MSP-GANG

请问MSP-GANG如何使用命令控制,我想实现通过命令去控制烧录器烧录,读取烧录成功/失败状态

  • 您可以看一下 

    的第3章

    The MSP-GANG can be controlled by firmware commands received through USB or its RS-232 serial port. 

  • 我看了第三章的介绍,目前我用“Hello”指令是可以访问MSP-GANG的,以及我会如何使用检验码,但是我最主要的控制烧录器烧录指令用不了,文档介绍:不要使用此命令。此命令在固件或信息内存更新期间使用。如果需要使用msp-gang可执行图形用户界面软件来更新固件或信息内存更新。请告诉我怎么样才能使用这个命令呢

    3.5.2.7 Load Firmware Command
    Tx -> 3E 3A ... ... ... CKL CKH
    Rx -> 0x90 (ACK)
    Do not use this command. This command is used during firmware or information memory update. Use the MSP-GANG executable GUI software for updating firmware or information memory update if required.

  • 建议您看一下 

    您所使用的Load Firmware Command属于3.5.2 Commands Supported by the BOOT Loader。而BOOT Loader的命令主要是用于操作 MSP-GANG 本身的固件firmware的

    建议您使用 3.5.3 Commands Supported by Application Firmware

    1. Synchronization Sequence  (see MSP-GANG User's Guide section 3.3)

    TX: 0D

    RX: 90 (ACK)

    2. Select Image 0  (see MSP-GANG User's Guide section 3.5.3.1) - byte 4 sets the index in the MSP-GANG for the desired image, in this case 0 (the first image in memory)

    TX: 3E 50 04 04 00 00 00 00 C5 AB

    RX: 90 (ACK)

    3. Main Process (see MSP-GANG User's Guide section 3.5.3.2)

    TX: 3E 31 04 04 00 00 00 00 C5 CA

    RX: B0 (In Progress)

    4. Get Progress Status  (see MSP-GANG User's Guide section 3.5.2.10)

    Poll Get Progress Status command (TX: A5) until byte 6 of the response stops being B0 (In Progress) and becomes 90 (ACK).

  • 谢谢你的帮助,我根据你回复的信息已经解决。谢谢
  • 谢谢你的帮助,已经解决了
  • 很高兴您能解决问题!