I am writing most of my code in assembly. So I don't think I have the option of using a snippet that looks like that. Its a pretty simple process, you have .section .vectors which will put your code at Mem Addr 0xFFE0 then you add the offset of your interrupt with a .org then you use .word to insert the memory address of you ISR.
msp430-gcc -v Reading specs from /usr/local/msp430/bin/../lib/gcc-lib/msp430/3.2.2/specs Configured with: ./configure --target=msp430 --prefix=/usr/local/msp430/ Thread model: single gcc version 3.2.2 msp430-as --version GNU assembler 2.14 20030612 Copyright 2002 Free Software Foundation, Inc. This program is free software; you may redistribute it under the terms of the GNU General Public License. This program has absolutely no warranty. This assembler was configured for a target of `msp430'. I should mention I made a makefile from the msp430/Examples, I used the assembler files there to base my assembler code on. All of the examples are also missing their Interrupt vectors as well. --Del On Thu, 15 Jul 2004 13:10:20 -0500 "Garst R. Reese" <gar...@isn.net> wrote: > $ msp430-as --version > GNU assembler 2.15 > Copyright 2002 Free Software Foundation, Inc. > This program is free software; you may redistribute it under the terms of > the GNU General Public License. This program has absolutely no warranty. > This assembler was configured for a target of `msp430'. > $ msp430-gcc -v > Reading specs from /usr/local/msp430/lib/gcc-lib/msp430/3.2.3/specs > Configured with: ./configure --target=msp430 --prefix=/usr/local/msp430 > --disable-nls : (reconfigured) ./configure --target=msp430 > --prefix=/usr/local/msp430 --disable-nls : (reconfigured) ./configure > --target=msp430 --prefix=/usr/local/msp430 --disable-nls > Thread model: single > gcc version 3.2.3 > [ > Delbert Martin wrote: > > >I have a problem the the msp430-gcc when compiling assembly. Im using > >gcc-3.2.2 with msp430 Ext from the mspgcc/files on Source Forge > >gdb-5.1.1 with msp430 Ext from the mspgcc/files on Source Forge > >binutils-2.14 > >Note: > > I tried binutils-2.15 but it failed to compile/assembled gcc so I > > downgraded to 2.14 that seemed to work. > >msp430-libc > > > >im my code I add .section .vectors and describe what all of the interrupt > >vectors are by using .org and .word > > > Sounds comlicated and error prone. > Why not just: > interrupt(ADC_VECTOR) adc12Isr(void){ > blah > } > or the like? > > >then I compile/assemble them. I then use pyjtag or msp430-gdbproxy to upload > >the code to the MCU. when using eaither if I use msp430-gdb to try and debug > >the program, if I do a Reset or a PUC. when I use c to continue. it returns > >with an error message od E00, So I went over to another computer running the > >quadravox tools and downloaded the code from the MCU into a TI Hex File. > >then I built the same program (used the quadravox syntax) and uploaded it to > >the chip. then I downloaded the TI Hex file from the chip and compared the > >two files. Well they looked pretty much Identical around Address 0x1100 > >which is where your main program is supposed to be. but down at the bottom > >around 0xFFE0 (Interrupt table) it was all 0xFF. the Quadravox program had > >the correct interrupt vectors there. this made me think about where am I > >messing up so I checked the linker script for the mps430x149 and it had > >definitions for the .section .vectors and appeared to be OK. I don't know > >much about linker scripts. so can anyone help me out with this? I was hoping > >to streamline alot of my compile and builds for msp430 as well as continue > >to work on a Linux only system. > >Oh yeah I'm running slackware-9.1 with kernel 2.6.7 > > > >-thanks > > > >--Del > > > > > > > > > Garst > > > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click > _______________________________________________ > Mspgcc-users mailing list > Mspgcc-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/mspgcc-users >