I sent this already on 4th July, but was somehow filtered... Now without gpg.
According to http://mspgcc.sourceforge.net/manual/x1028.html READ_SR() should return the content of status register r2, however. When used, msp430-gcc will returns error: called object '__read_status_register()' is not a function Fix: --- /usr/local/msp430/include/intrinsics.h 2012-06-04 21:14:40.118415435 +0200 +++ /tmp/intrinsics.h 2012-06-04 21:14:13.414220890 +0200 @@ -134,7 +134,7 @@ #define _NOP() __nop() #define READ_SP __read_stack_pointer(); #define WRITE_SP(_x) __write_stack_pointer(_x) -#define READ_SR __read_status_register() +#define READ_SR() __read_status_register() #define WRITE_SR(_x) __write_status_register(_x) #define _BIS_SR(_b) __bis_status_register(_b) #define _BIC_SR(_b) __bic_status_register(_b) Workaround: use READ_SR instead of READ_SR() Version used: $ msp430-gcc --version msp430-gcc (GCC) 4.6.3 20120301 (mspgcc LTS 20120406 unpatched) And msp430mcu-20120407 Bests, Simeon -- M.Eng. Simeon Felis Fakultät Elektro- und Informationstechnik Laboratory for Safe and Secure Systems, LaS3 - a software engineering discipline (www.las3.de) Seybothstrasse 2 P.O. 12 03 27 93025 Regensburg Germany FON: +49 (0)941 / 943 9823 MOB: +49 (0)176 / 2323 8962 ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Mspgcc-users mailing list Mspgcc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mspgcc-users