simpleavr 399 Posted December 3, 2010 Share Posted December 3, 2010 i haven't got a chance to port the assembler and try it yet. but if u have a "c" and a "asm" source, i would rename the .asm to .s and use $GCCBIN/msp430-gcc -D_GNU_ASSEMBLER_ -x assembler-with-cpp -c dco_lib.s -o dco_lib.o $GCCBIN/msp430-gcc -Os -mmcu=msp430x2013 -c setdco.c -o setdco.o $GCCBIN/msp430-gcc -mmcu=msp430x2013 -o setdco.elf dco_lib.o setdco.o or something similar this may or may not work, depending on how the assembly was coded (it's machine level now), may require tweaks. but you can do $GCCBIN/msp430-objdump -DS setdco.elf > setdco.lst and get a list file and examine it, see if the linker does a good job bridging the assembly and the c (w/o stepping into each other, i.e. use of registers) i am not an assembler guy but do use in-lines and functions from time to time. [EDIT] if your compile failed, it's because u need to definitely "port" the assembly code, IAR/CCS is using quite a bit of directives that gnu assembler does not recognize, if in doubt, google for a gnu assembler menu (i think msp430-gcc is just gnu + some extensions), this will help the porting. jbremnant 1 Quote Link to post Share on other sites
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.