Reply by Mike V. March 12, 20042004-03-12
Thanks Ulf. I recently downloaded the IAR 30 day free distribution,
and they seem to have the first method that doesn't use #pragma. They
should have changed their tutorial source code accordingly.

Mike



"Ulf Samuelsson" <ulf@atmel.nospam.com> wrote in message news:<cm54c.4450$EV2.31937@amstwist00>...
> "Mike V." <valemike@yahoo.com> skrev i meddelandet > news:8188616d.0403111229.1a3be2d5@posting.google.com... > > I am very very new to the IAR compiler for TI's MSP430. > > > > I have seen tutorial code that says something like: > > interrupt[BASICTIMER_VECTOR] void my_isr() > > { > > ... > > } > > > > However, the compiler, with its current settings won't interpret it > > correctly. > > I have to type the more tedious statement: > > > > #pragma vector 0x00 > > __interrupt void my_isr() > > { > > ... > > } > > > > What is the setting i have to change or include to get the first > > interrupt function to work? > > > > I think that you are looking at two different generation of compilers. > It is the same for the AVR. > If you use EWAVR v1.xx then the first example works. > If you use EWAVR v2.xx and v3.xx, then the second example works. > > -- > Best Regards, > Ulf Samuelsson ulf@a-t-m-e-l.com > This is a personal view which may or may not be > share by my Employer Atmel Nordic AB > > > > Thanks, > > Mike
Reply by Ulf Samuelsson March 11, 20042004-03-11
"Mike V." <valemike@yahoo.com> skrev i meddelandet
news:8188616d.0403111229.1a3be2d5@posting.google.com...
> I am very very new to the IAR compiler for TI's MSP430. > > I have seen tutorial code that says something like: > interrupt[BASICTIMER_VECTOR] void my_isr() > { > ... > } > > However, the compiler, with its current settings won't interpret it > correctly. > I have to type the more tedious statement: > > #pragma vector 0x00 > __interrupt void my_isr() > { > ... > } > > What is the setting i have to change or include to get the first > interrupt function to work? >
I think that you are looking at two different generation of compilers. It is the same for the AVR. If you use EWAVR v1.xx then the first example works. If you use EWAVR v2.xx and v3.xx, then the second example works. -- Best Regards, Ulf Samuelsson ulf@a-t-m-e-l.com This is a personal view which may or may not be share by my Employer Atmel Nordic AB
> Thanks, > Mike
Reply by Mike V. March 11, 20042004-03-11
I am very very new to the IAR compiler for TI's MSP430.

I have seen tutorial code that says something like:
interrupt[BASICTIMER_VECTOR] void my_isr()
{
...
}

However, the compiler, with its current settings won't interpret it
correctly.
I have to type the more tedious statement:

#pragma vector 0x00
__interrupt void my_isr()
{
...
}

What is the setting i have to change or include to get the first
interrupt function to work?

Thanks,
Mike