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.

How to power on a MSP430F2618 MCU trought a MSP430 Gang Programmer ?

Hello ,

I'm creating my own software to control the MSP 430 gang programmer but I don't know what to do to make my target board powered  by the programmer.

I'm using Visual Studio 2010, and coding in C++.

I also use the DLL discribed in this doc : http://www.ti.com/lit/ug/slau358c/slau358c.pdf

My Programmer got his own power supply.

With my software, now, I'm abble to program my MCU with a .hex file chosen in a browser.

And now I want to control the power supply to be able to restart the mcu by the software and let the mcu switched on, not only during the programming phase.

If some of you got ideas :).

Thx for reading me, and sorry for my poor french's english :).

  • Ok I've found.

    So you should have a standard config loaded in the programmer.

    Then I've ask this function by a click on a button.

    This function just switch on or off, the power suply in a temp config :

    void CDLLtestDlg::OnReStart()
    {
        LONG defer;
        if(startstop==0)
        {
            startstop=1;

            //set Power form programmer, tmpconfig pwr onoff index 14, immDisable(0x0000) immEnable(0x0001)
            PrintReportMsg("MSPGangTmpSetConfig(pwron)  ", true);
            defer = MSPGANG_SetTmpGANG_Config(14, 0x0001);
            if(Evaluate(defer)) return;

            PrintReportMsg("Powered ON", true);
            return;
        }
        else if(startstop==1)
        {
            startstop=0;

            //set Power form programmer, tmpconfig pwr onoff index 14, immdisable(0x0000) immenable(0x0001)
            PrintReportMsg("MSPGangTmpSetConfig(pwroff)  ", true);
            defer = MSPGANG_SetTmpGANG_Config(14, 0x0000);
            if(Evaluate(defer)) return;
            
            PrintReportMsg("Powered OFF", true);
            return;
        }
    }

    Hope that may help someone else.

    Regards.

**Attention** This is a public forum