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.

MSP430G2332: MSP-GANG DLL error

Part Number: MSP430G2332
Other Parts Discussed in Thread: MSP-GANG,

Hi,

We are using MSP-GANG DLL for mass production.
As the current MSP-GANG was being for few years, we are trying to replace it with new programmers.
The MSP-GANG DLL doesn't work(cannot program) if use the older version of API firmware.

Error: "Failed ! Err  17  Header CRC"

Below are the details of the current MSP-GANG software.

Hardware    G430:  01.02
Silicon Number    15D1 9046 1300 0100
API Firmware    MSP-Gang   A430:  01.01.10.00
BOOT Firmware    G430BOOT   B430:  01.00.02.00
GUI Software    MSP-Gang-GUI   G430:  01.01.10.00
DLL Software    MSP-Gang-DLL   D430:  01.01.10.00

Below are the details of the new MSP-GANG software.

Hardware    G430:  01.04
Silicon Number  8A26 1147 2900 1300
API Firmware    MSP-Gang   A430:  01.01.10.00
BOOT Firmware   G430BOOT   B430:  01.00.02.00
GUI Software    MSP-Gang-GUI   G430:  01.01.10.00
DLL Software    MSP-Gang-DLL   D430:  01.01.10.00

We are trying to use the same software environment which we have used already.
But when we try to program the MSP's, it gives an error and we are not able to program.
Note: This problem occurs only when programming through DLL, it works fine when we 
      program directly through MSP-GANG (without DLL).

Note: Programming through DLL works if we update MSP-GANG API to version 01.02.04.00.

We have also tried to debug(step execute) the DLL through visual basic and all the functions
returns correct value during the first execution but the successive execution
goes wrong. 

Please let us know if using 01.01.10.00 API Firmware on MSP-GANG version(01.04) is 
not allowed, especially when programming through DLL?
If possible please let us know what could go wrong when programming through DLL and 
the older version of API firmware.

Best Regards,

  • Hi,

    I see that you mention programming works if you update to MSP-GANG API to version 1.2.4.0. I am going to check further with our MSP-GANG software designers, but I do know that starting with version 1.2.1.0 the way the image memory is used has changed - see the note in the user's guide www.ti.com/lit/pdf/slau358 beneath Figure 2-16 - it discusses how the image memory format changed. I wonder if this may be part of the problem.

    Do you have any information about the errors that occur with 1.1.10.0 API - on which function calls and what error number is returned?

    Would it be possible for you to use the latest MSP-GANG DLL + APIs for your purposes going forward? It would be my suggestion to update to the latest version.

    Regards,
    Katie

  • Hi Katie,

    Thank you very much for the quick support.

    When executing "MSPGANG_EraseImage" we get the return value of "17"
    and we get 「Failed ! Err 17 Header CRC」on the MSP-GANG LCD when we execute "MSPGANG_MainProcess" .
    Below are the APIs and procedure used to program the MCU.

    MSPGANG_InitCom(szComPort, lComRate) // szComPort = "com4"; lComRate = 115200
    MSPGANG_Default_Config()
    MSPGANG_Set_MCU_Name(szMCUName) // szMCUName = "MSP430G2332"
    MSPGANG_SetConfig(CFG_FLASHERASEMODE, ERASE_ALL_MEM_INDEX)
    MSPGANG_SetConfig(CFG_RETAIN_CAL_DATA_INDEX, 1)
    MSPGANG_SetConfig(CFG_MASSERASE_AND_INFOA_EN, 0)
    MSPGANG_SetConfig(CFG_ERASEINFOA, 0)
    MSPGANG_SetConfig(CFG_VCCINDEX, lVCC) // lVCC = 3300
    MSPGANG_SetConfig(CFG_VCC_SETTLE_TIME, lSettleTime) // lSettleTime = 10
    MSPGANG_SetConfig(CFG_INTERFACE, INTERFACE_SBW)
    MSPGANG_SetConfig(CFG_SBW_SPEED, INTERFACE_FAST)
    MSPGANG_SetConfig(CFG_IO_INTERFACE, SBW_VIA_TDOI)
    MSPGANG_SetConfig(CFG_TARGET_EN_INDEX, lTargetEN) // lTargetEN = TARGET_1_MASK
    MSPGANG_Read_Code_File(szReadFile) // szReadFile = filename.txt"
    MSPGANG_CreateGangImage(szImageName) // szImageName = "Imagename"
    MSPGANG_SelectImage(0)
    MSPGANG_EraseImage()
    MSPGANG_LoadImageBlock()
    MSPGANG_VerifyPSAImageBlock()
    MSPGANG_MainProcess(lTimeout) // lTimeout = 1000
    MSPGANG_ReleaseCom()

    We can use the latest Firmaware, but we would like to know what is the reason
    that 01.01.10.00 API Firmware on MSP-GANG version(01.04) is not working.
    And if possible please let us know if there is a written statement on the manual or
    the web saying that we should use the latest software.

    Best Regards,

  • Hi tadaaki-san,

    I checked with our MSP-GANG software designer and they say that the issue was with some API addresses moved with one of the builds so that there was incompatibility between the boot code installed in the programmer and the firmware DLL version you were using, because they are using different addresses. This is fixed in newer versions of the firmware, so we'd recommend you to use the latest MSP-GANG firmware version from this page (currently 1.2.8.0) www.ti.com/.../msp-gang

    Regards,
    Katie
  • As one more update, you can find the full revision table of compatible hardware and software revisions included in the release notes:

    Release-Notes-MSP-GANG.htm

    See the section called "Version Matrix"

**Attention** This is a public forum