EmbeddedRelated.com
Forums
The 2024 Embedded Online Conference

download with IAR

Started by m_j_suttora August 20, 2007
Hi,

I just started using the IAR IDE. I can download the debug file (.d43)
& the file verification passes. My LED hanging off of my port does not
turn on. Is the debugger waiting on the first instruction in my C file
or does the program take off (run)? If I don't want to use the
debugger, what program (file extension?) do I need to download to my
MSP430F169 chip & how do I do it thru IAR?

Thanks
Mario

P.S. - the micro is getting it's 3.3V and I can see the 32 KHz osc.

Here's my code:

#include

void main(void)

{

WDTCTL = WDTPW + WDTHOLD; // Stop WDT

BCSCTL1 &= ~BIT7; // XT2-ON
BCSCTL2 |= BIT3; // XT2 is SMCLK

P6SEL = 0x00; // P6.5 selected as digital
output port
P6DIR = 0x20; // P6.5 output for heartbeat LED

for (;;)
{
P6OUT = 0x20; // turn LED on
}

}

Beginning Microcontrollers with the MSP430

--- In m..., "m_j_suttora" wrote:
>
> Hi,
>
> I just started using the IAR IDE. I can download the debug
> file (.d43) & the file verification passes. My LED hanging
> off of my port does not turn on. Is the debugger waiting on
> the first instruction in my C file or does the program take
> off (run)?

The debugger is waiting for you. You have to either click
[Debug]=>[Go], or type F5 to make it takeoff running.

Depends on how your LED is wired to P6.5, "P6OUT=0x20;" could
have turned it off instead of on.

> If I don't want to use the debugger, what program (file
> extension?) do I need to download to my > MSP430F169 chip
> & how do I do it thru IAR?

You need to change the Linker Output Format Option. The so
called "msp430-txt" format works for most of the programmers.

The "Gang Programmer" form TI is one of those programmers.

You can also use your existing hardware (UIF or PIF) with
a free PC software called FET-Pro430 Lite from
www.elprotronic.com

>
> Thanks
> Mario
>
> P.S. - the micro is getting it's 3.3V and I can see the 32 KHz osc.
>
> Here's my code:
>
> #include void main(void)
>
> {
>
> WDTCTL = WDTPW + WDTHOLD; // Stop WDT
>
> BCSCTL1 &= ~BIT7; // XT2-ON
> BCSCTL2 |= BIT3; // XT2 is SMCLK
>
> P6SEL = 0x00; // P6.5 selected as digital
> output port
> P6DIR = 0x20; // P6.5 output for heartbeat LED
>
> for (;;)
> {
> P6OUT = 0x20; // turn LED on
> }
>
> }
>

The 2024 Embedded Online Conference