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.

Gang430.dll and Gang430.ini

Other Parts Discussed in Thread: MSP-GANG, MSP430F2481

Hello,

I'm using the gang430.dll wrapper. I saw in http://www.ti.com/lit/ug/slau101q/slau101q.pdf, that the gang430.ini file has to be in the same directory of the gang430.dll. So I did it. When I want to configure the MSP430Gang-programmer with the ini file, it looks like that the dll don't care of the ini file.

Why? 

Best regards.

Guillaume Mahut

  • Hi Guillaume Mahut,

    I will look into this. Can you provide an example of what you did to test this, so that we can reproduce your issue?

    Regards,

    Katie

  • Hi Katie,

    You can see the part of my project in the attached. It contain the dll files with gang.ini and the main.c file from the wrapper folder found in the folder of your install of msp gang programmer (I arranged a little for my project)

    Regards

    Part of project wrapper Gang dll.zip
  • Hi mahut guillaume,

    Which information were you hoping to configure using the .ini file? I believe even when you were using the MSP-GANG430 and its DLL you still had to do some configuration in the code to set some of the settings.

    Are you migrating a program from the old MSP-GANG430 tool to the new MSP-GANG programmer? If not and you are actually just starting out a new project using MSP-GANG, then I would recommend not using the wrapper DLL, and just using the normal MSP-GANG DLL as it will provide you with more features (the wrapper is really only there for people porting over from the old tool).

    Regards,

    Katie

  • hi Katie,

    I would like to configure the secure flag to disable. It is automatically enable and it blew all of my MCU.

    I already tried to use the MSP-Gang.dll but in function of the hex file size, the behavior is different. For exemple, When I flashed my hex file with about 45Ko into flash MCU, when I reset the MCU, i can't reflash it correctly. But when the hex file size is about 35ko, i can flash my hex file when i want. that's the reason why I changed the dll.

    However, if you can answer of the problem that I have just explained, i will use the old dll (MSP-gang.dll) like you told me.

    Regards

    Guillaume

  • Hi Mahut,

    mahut guillaume said:
    However, if you can answer of the problem that I have just explained, i will use the old dll (MSP-gang.dll) like you told me.

    Just to clarify - the wrapper and msp-gang430 dll are the "old" dll. It is recommended if you are setting up a new production process with the MSP-GANG programmer (the black programmer with LCD screen) to use the msp-gang.dll (not the wrapper or anything).

    Just to confirm and rule out any confustion, do you have the old MSP-GANG430 (grey box with a bunch of LEDs, no screen) or the new MSP-GANG (black box with an LCD screen on the front)?

    For your other issue you mention, I have never seen something like that before. Do you have any issues if you simply use the MSP-GANG GUI (instead of writing a DLL program) to program the device with the same hex files? Can you provide more details about the MSP430 device used, the memory settings used, and step-by-step how you generated the hex file using CCS or IAR? - maybe attach a hex file that fails and that works?

    Finally, what version of the MSP-GANG firmware do you have - you can find this in the GUI by selecting About > About while your MSP-GANG is connected, and then providing the screenshot.

    Regards,

    Katie

  • Hi Katie,

    In my software, i'l using this dll:  #define Dll430 "MSP-Gang.dll", i think this is the good dll, isn't it?

    I have the new MSP gang programmer (black with screen).

    For the hex file size problem, I have the same issue with the MSP-GANG GUI.

    The chip used is the MSP430F2481 and CCS. I programmed all memory info except the segment A. To generate the hex file I proceed like second attached. I can't give you the hex file for the moment.

    Regards, Guillaume

    In attached, the firmware revision

  • Hi mahut,

    Ok. Yes you are correct the MSP-GANG.dll is the one you'll want to use.

    Let's focus on the issue with the GUI first just because it is a known piece of software (less variables). With the GUI, try the following:

    1. Try downloading the newest version the the MSP-GANG software (1.1.7.0) - this was just released. http://software-dl.ti.com/msp430/msp430_public_sw/mcu/msp430/MSP_GANG/latest/index_FDS.html

    Make sure that the MSP-GANG updates the firmware version loaded into the MSP-GANG itself as well - I can see in your screenshot that while you had the GUI firmware 1.1.6.0, the MSP-GANG was still using 1.1.1.1. You can force this updated by going to Tools > GANG API Firmware Update.

    2. Try generating a TI-txt file instead of the Intel Hex file to see if this makes any difference: http://processors.wiki.ti.com/index.php/Generating_and_Loading_MSP430_Binary_Files#Using_CCS

    What is the behavior (exact error messages etc) that you see when you are using the larger file? What hardware connections have you made between the MSP430 and the MSP-GANG?

    Regards,

    Katie

  • Hi Katie,

    I updated the firmware into the msp gang programmer and now it works!

    Thank you for your support

    Best regards

    Guillaume Mahut

**Attention** This is a public forum