|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
Fw: Header files for x2618 and compile errorI'm using mspgcc for programming an x2618 mcu.
I've had to make a few changes to the header files for this chip. Below is the
diff for these files, compared to a CVS snapshot from just minutes ago, and I'll
attach these files as well in case the server doesn't strip them. If someone
could review these and put these in CVS I'm sure they may be useful to
others.
Also, I'm trying to compile the new CVS code, and
I'm having a problem compiling Insight/GDB. I've had this problem for a while
now, and have just been ignoring it.
I'm not dead without Insight, but it would be kind
of nice. I used to use DDD with GDB when I was working on x4618 chips, but I've
just been using the MSPGCC downloader with a USBFET for the x2618 chips. I
wouldn't mind trying to get a debugger running again.
Thanks,
TonyB
[root@tonyb packaging]# diff
../../msp430/include/msp430x261x.h
/data/msp430x261x.h 11a12,13 > * 2008-06-04 - TonyB (tony.borries@...) > * - Defined __MSP430_HAS_PORT7_R__ and __MSP430_HAS_PORT8_R__ 35a38,39 > #define __MSP430_HAS_PORT7_R__ > #define __MSP430_HAS_PORT8_R__ [root@tonyb packaging]# diff
../../msp430/include/msp430/gpio.h /data/gpio.h
9a10,13 > * > * 2008-06-04 - TonyB (tony.borries@...) > * - for msp430x2618 (and possibly others) > * - define __MSP430_HAS_PORT7_R__ and __MSP430_HAS_PORT7_R__ 28a33 > __MSP430_HAS_PORT5_R__ - if device has port 5 with pull-downs 29a35 > __MSP430_HAS_PORT6_R__ - if device has port 6 with pull-downs 30a37 > __MSP430_HAS_PORT7_R__ - if device has port 7 with pull-downs 31a39 > __MSP430_HAS_PORT8_R__ - if device has port 8 with pull-downs 214c222 < #if defined(__MSP430_HAS_PORT7__) --- > #if defined(__MSP430_HAS_PORT7__) || defined(__MSP430_HAS_PORT7_R__) 222a231,234 > #if defined(__MSP430_HAS_PORT7_R__) > #define P7REN_ 0x0014 /* Port 7 Resistor enable */ > sfrb(P7REN, P7REN_); > #endif 225c237 < #if defined(__MSP430_HAS_PORT8__) --- > #if defined(__MSP430_HAS_PORT8__) || defined(__MSP430_HAS_PORT8_R__) 233a246,249 > #if defined(__MSP430_HAS_PORT8_R__) > #define P8REN_ 0x0015 /* Port 8 Resistor enable */ > sfrb(P8REN, P8REN_); > #endif ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Mspgcc-users mailing list Mspgcc-users@... https://lists.sourceforge.net/lists/listinfo/mspgcc-users |
|
|
Re: Fw: Header files for x2618 and compile errorTonyB wrote:
> I'm using mspgcc for programming an x2618 mcu. I've had to make a few > changes to the header files for this chip. Below is the diff for these > files, compared to a CVS snapshot from just minutes ago, and I'll attach > these files as well in case the server doesn't strip them. If someone > could review these and put these in CVS I'm sure they may be useful to > others. > I've taken the freedom to convert your patch to a unified diff format, so it's easiest to read and apply. Regards, > > Thanks, > > TonyB > -- Raúl Sánchez Siles [msp430x261x-port7_8.diff] Index: msp430x261x.h =================================================================== RCS file: /cvsroot/mspgcc/msp430-libc/include/msp430x261x.h,v retrieving revision 1.3 diff -u -r1.3 msp430x261x.h --- msp430x261x.h 26 May 2008 20:27:52 -0000 1.3 +++ msp430x261x.h 10 Jun 2008 08:34:21 -0000 @@ -9,6 +9,8 @@ * (c) 2007 by Steve Underwood <steveu@...> * Originally based in part on work by Texas Instruments Inc. * + * 2008-06-04 - TonyB (tony.borries@...) + * - Defined __MSP430_HAS_PORT7_R__ and __MSP430_HAS_PORT8_R__ * * 2008-03-05 - modifications by MB <mbarnes@...>, based on msp430x24x.h (G.Lemm) and original msp430x24x (Steve Underwood). * - defined __DisableCalData to get rid of assembler errors @@ -33,6 +35,8 @@ #define __MSP430_HAS_PORT4_R__ #define __MSP430_HAS_PORT5_R__ #define __MSP430_HAS_PORT6_R__ +#define __MSP430_HAS_PORT7_R__ +#define __MSP430_HAS_PORT8_R__ #define __MSP430_HAS_SVS__ #define __MSP430_HAS_USCI__ #define __MSP430_HAS_USCI1__ Index: msp430/gpio.h =================================================================== RCS file: /cvsroot/mspgcc/msp430-libc/include/msp430/gpio.h,v retrieving revision 1.6 diff -u -r1.6 gpio.h --- msp430/gpio.h 25 Jan 2006 16:19:12 -0000 1.6 +++ msp430/gpio.h 10 Jun 2008 08:34:21 -0000 @@ -7,6 +7,10 @@ * * mspgcc project: MSP430 device headers * GPIO module header + * + * 2008-06-04 - TonyB (tony.borries@...) + * - for msp430x2618 (and possibly others) + * - define __MSP430_HAS_PORT7_R__ and __MSP430_HAS_PORT7_R__ * * (c) 2002 by M. P. Ashton <data@...> * Originally based in part on work by Texas Instruments Inc. @@ -26,9 +30,13 @@ __MSP430_HAS_PORT4__ - if device has port 4 __MSP430_HAS_PORT4_R__ - if device has port 4 with pull-downs __MSP430_HAS_PORT5__ - if device has port 5 +__MSP430_HAS_PORT5_R__ - if device has port 5 with pull-downs __MSP430_HAS_PORT6__ - if device has port 6 +__MSP430_HAS_PORT6_R__ - if device has port 6 with pull-downs __MSP430_HAS_PORT7__ - if device has port 7 +__MSP430_HAS_PORT7_R__ - if device has port 7 with pull-downs __MSP430_HAS_PORT8__ - if device has port 8 +__MSP430_HAS_PORT8_R__ - if device has port 8 with pull-downs __MSP430_HAS_PORTA__ - if device has port A (16 bit view of ports 7 & 8) __MSP430_HAS_PORT9__ - if device has port 9 __MSP430_HAS_PORT10__ - if device has port 10 @@ -211,7 +219,7 @@ #endif #endif -#if defined(__MSP430_HAS_PORT7__) +#if defined(__MSP430_HAS_PORT7__) || defined(__MSP430_HAS_PORT7_R__) #define P7IN_ 0x0038 /* Port 7 Input */ sfrb(P7IN, P7IN_); #define P7OUT_ 0x003A /* Port 7 Output */ @@ -220,9 +228,13 @@ sfrb(P7DIR, P7DIR_); #define P7SEL_ 0x003E /* Port 7 Selection */ sfrb(P7SEL, P7SEL_); +#if defined(__MSP430_HAS_PORT7_R__) +#define P7REN_ 0x0014 /* Port 7 Resistor enable */ +sfrb(P7REN, P7REN_); +#endif #endif -#if defined(__MSP430_HAS_PORT8__) +#if defined(__MSP430_HAS_PORT8__) || defined(__MSP430_HAS_PORT8_R__) #define P8IN_ 0x0039 /* Port 8 Input */ sfrb(P8IN, P8IN_); #define P8OUT_ 0x003B /* Port 8 Output */ @@ -231,6 +243,10 @@ sfrb(P8DIR, P8DIR_); #define P8SEL_ 0x003F /* Port 8 Selection */ sfrb(P8SEL, P8SEL_); +#if defined(__MSP430_HAS_PORT8_R__) +#define P8REN_ 0x0015 /* Port 8 Resistor enable */ +sfrb(P8REN, P8REN_); +#endif #endif #if defined(__MSP430_HAS_PORTA__) ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Mspgcc-users mailing list Mspgcc-users@... https://lists.sourceforge.net/lists/listinfo/mspgcc-users |
|
|
Re: Fw: Header files for x2618 and compile errorThanks for posting these. This comes at an ideal time for me since I'm just starting a new '2618 based project. I'm still a bit confused about emulator support for this processor though. I've been having trouble getting gdbproxy to work with this chip and was under the impression that it wasn't yet supported. Can anyone tell me what the status of support for the '2618 processor is with gdbproxy? Does this work in Linux, or Windows only? If there's a more recent version of the gdbproxy executable then what's on source forge, can someone post a link to it? Thanks, Steve TonyB wrote:
------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Mspgcc-users mailing list Mspgcc-users@... https://lists.sourceforge.net/lists/listinfo/mspgcc-users |
|
|
Re: Fw: Header files for x2618 and compile errorRaúl Sánchez Siles schrieb:
> TonyB wrote: > >> I'm using mspgcc for programming an x2618 mcu. I've had to make a few >> changes to the header files for this chip. Below is the diff for these >> files, compared to a CVS snapshot from just minutes ago, and I'll attach >> these files as well in case the server doesn't strip them. If someone >> could review these and put these in CVS I'm sure they may be useful to >> others. > > I've taken the freedom to convert your patch to a unified diff format, so > it's easiest to read and apply. thanks to both of you. patch is applied. chris ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Mspgcc-users mailing list Mspgcc-users@... https://lists.sourceforge.net/lists/listinfo/mspgcc-users |
| Free Forum Powered by Nabble | Forum Help |