Hi all, I am now working with MSP430F2410 and I think I found a bug in the system header file msp430x24x.h.
F24x series has SVSCTL register located at 0x0055, while msp430/svs.h specifies the register to be located at 0x0056 by default. Here is a simple patch to fix the problem. *** msp430x24x_orig.h Tue Dec 8 09:45:34 2009 --- msp430x24x.h Tue Dec 8 09:46:04 2009 *************** *** 41,46 **** --- 41,48 ---- #define __MSP430_HAS_CAPLUS__ #define __MSP430_HAS_ADC12__ + #define __msp430_has_svs_at_0x55 + #include <msp430/mpy.h> #include <msp430/gpio.h> #include <msp430/usci.h> I also noticed that the compiler reads 'msp430x24x.h', NOT 'msp430x241x.h', when I specify -mmcu=msp430x2410. Is this correct behavior? I'm currenly using the binary package 'mspgcc-20091230.exe' and have not checked the latest repository. Sorry in advance if it's already fixed. regards -- ------------------------------------------ Masao Kawamura Wireless Products Division Arrow7 Corporation ------------------------------------------
