EmbeddedRelated.com
Forums

MSP430f449 led programming doubt

Started by Anupreethi February 20, 2012
Hi ,
I am a beginner of MSP430

I have an header board for MSP430f449.
As i am a beginner i tried to off the LED which is glowing using the following program.
The programmer i am using is jtag tiny.and the softeare i am using is IAR workbench
i dint get any error for the below program
#include

int main( void )
{
// Stop watchdog timer to prevent time out reset
WDTCTL = WDTPW + WDTHOLD;
P6SEL=0X00;
P6DIR =0XFF;
P6OUT =0X00;

return 0;
}

i debugged and downloaded to the target

its coming as

Mon Feb 20 11:18:31 2012: Download complete.
Mon Feb 20 11:18:31 2012: Loaded debugee: C:\Documents and Settings\Administrator\Desktop\New Folder (6)\Debug\Exe\LED.d43
Mon Feb 20 11:18:31 2012: Target reset
Mon Feb 20 11:19:39 2012: Program exit reached.
But i dint get the expected result
though i have no target board the same is coming
could someone please suggest me something to get my expected result?

Beginning Microcontrollers with the MSP430

Hi,

If you are a beginner you should definitely check out the references and
examples provided by TI. http://www.ti.com/product/msp430f449

Here are some example programs for your chip:
http://www.ti.com/litv/zip/slac019j
Good luck!

On Mon, Feb 20, 2012 at 1:26 AM, Anupreethi wrote:

> **
> Hi ,
> I am a beginner of MSP430
>
> I have an header board for MSP430f449.
> As i am a beginner i tried to off the LED which is glowing using the
> following program.
> The programmer i am using is jtag tiny.and the softeare i am using is IAR
> workbench
> i dint get any error for the below program
> #include int main( void )
> {
> // Stop watchdog timer to prevent time out reset
> WDTCTL = WDTPW + WDTHOLD;
> P6SEL=0X00;
> P6DIR =0XFF;
> P6OUT =0X00;
>
> return 0;
> }
>
> i debugged and downloaded to the target
>
> its coming as
>
> Mon Feb 20 11:18:31 2012: Download complete.
> Mon Feb 20 11:18:31 2012: Loaded debugee: C:\Documents and
> Settings\Administrator\Desktop\New Folder (6)\Debug\Exe\LED.d43
> Mon Feb 20 11:18:31 2012: Target reset
> Mon Feb 20 11:19:39 2012: Program exit reached.
>
> But i dint get the expected result
> though i have no target board the same is coming
> could someone please suggest me something to get my expected result?
>
>
>


what to do when an error is like this
Fatal error: Failed to initialize device. Session aborted!
On Mon, Feb 20, 2012 at 12:01 PM, Kyle Lewis wrote:

> Hi,
>
> If you are a beginner you should definitely check out the references and
> examples provided by TI. http://www.ti.com/product/msp430f449
>
> Here are some example programs for your chip:
> http://www.ti.com/litv/zip/slac019j
> Good luck!
>
> On Mon, Feb 20, 2012 at 1:26 AM, Anupreethi > >wrote:
>
> > **
> >
> >
> > Hi ,
> > I am a beginner of MSP430
> >
> > I have an header board for MSP430f449.
> > As i am a beginner i tried to off the LED which is glowing using the
> > following program.
> > The programmer i am using is jtag tiny.and the softeare i am using is IAR
> > workbench
> > i dint get any error for the below program
> > #include
> >
> > int main( void )
> > {
> > // Stop watchdog timer to prevent time out reset
> > WDTCTL = WDTPW + WDTHOLD;
> > P6SEL=0X00;
> > P6DIR =0XFF;
> > P6OUT =0X00;
> >
> > return 0;
> > }
> >
> > i debugged and downloaded to the target
> >
> > its coming as
> >
> > Mon Feb 20 11:18:31 2012: Download complete.
> > Mon Feb 20 11:18:31 2012: Loaded debugee: C:\Documents and
> > Settings\Administrator\Desktop\New Folder (6)\Debug\Exe\LED.d43
> > Mon Feb 20 11:18:31 2012: Target reset
> > Mon Feb 20 11:19:39 2012: Program exit reached.
> >
> > But i dint get the expected result
> > though i have no target board the same is coming
> > could someone please suggest me something to get my expected result?
> >
> >
> >
>
>
>