Re: [Mspgcc-users] Using XIN pin as port or timer output

2016-11-29 Thread Eric Decker
Table 21 on pg 53 is confusing. There are two columns, P2SEL.6/P2SEL.7 and P2SEL2.6/P2SEL2.7. I have no idea what the P2SEL2.6/P2SEL2.7 column is referring to (and it has the opposite value of P2SEL.6/P2SEL.7. Same table says that for Capative Sensing P2SEL2.6 is a 1. Not sure where that gets s

Re: [Mspgcc-users] Code does not fit in ROM with mspgcc but fits with CCS compiler

2015-02-18 Thread Eric Decker
have you tried, -g -Os or -ggdb -Os that is what I use to debug size optimized code. works fine. figuring out what the code is doing can be a bit tricky but it can be done. On Wed, Feb 18, 2015 at 9:10 PM, Arvind Padmanabhan < arvindpadmanab...@yahoo.com.sg> wrote: > Hi Folks, > > My friend

Re: [Mspgcc-users] cannot debug

2014-07-18 Thread Eric Decker
where did you get the code from? the mspgcc I've used the packages from tinyprod.net/repos/debian/msp430-46 for years now and have been able using mspdebug to debug msp430f5438a processors using single step and upto 8 breakpoints using a TI MSP430 UIF jtag debugging pod. On Fri, Jul 18, 2014

Re: [Mspgcc-users] Fwd: flash code with msp430-jtag

2014-06-24 Thread Eric Decker
these days we use mspdebug msp430-jtag hasn't been supported for years On Tuesday, June 24, 2014, Pedro Helou wrote: > -- Forwarded message -- > From: Pedro Helou > > Date: 2014-06-24 10:24 GMT+02:00 > Subject: flash code with msp430-jtag > To: mspgcc-users@lists.sourceforge.n

Re: [Mspgcc-users] MSP430 instruction pipeline

2014-06-16 Thread Eric Decker
I haven't seen any thing that describes the internal architecture of the MSP430. And I've looked. Sorry. On Mon, Jun 16, 2014 at 8:36 PM, Jose Luis Honorato L. < joseluishonor...@gmail.com> wrote: > Hi, > > An e-mail from Peter a few days ago hinted the existence of an instruction > pipeline

Re: [Mspgcc-users] Unable to use LARGE MEMORY MODEL with RH GCC

2014-05-30 Thread Eric Decker
CCS is Code Composer Studio which is basically a gui front end to the gcc toolchain. Devaiah, there should be a way to examine the logs to see exactly what command lines and switches are being generated to the toolchain when it gets invoked by CCS. You'll have to figure out how to go see those lo

Re: [Mspgcc-users] medium memory model debug issues

2014-05-12 Thread Eric Decker
the gdb that is part of 4.7 doesn't work changes for 20 bit gdb for the msp430 haven't been done (for the 4.7 toolchain) the new tool chain that redhat/ti is working on maybe more functional but I haven't checked it out yet >From cPhone > On May 12, 2014, at 7:49 AM, "Dockter, Michael" >

Re: [Mspgcc-users] Accessing 20-bit memory range - issues with indirect addressing mode

2014-05-04 Thread Eric Decker
look at the actual code generated see what the difference in the actual code is >From cPhone > On May 4, 2014, at 1:14 PM, Tomek Lorek wrote: > > 2014-05-04 22:04 GMT+02:00 Tomek Lorek : >> 1. Possibly the main reason my code did not work was using >> __asm__ __volatile__ ("movx #0, @%0"::"

Re: [Mspgcc-users] Are 20-bit pointers supported in mspgcc 4.6.3 LTS?

2014-04-21 Thread Eric Decker
no they are supported in the experimental 4.7 but it is unsupported >From cPhone > On Apr 21, 2014, at 2:26 PM, Tomek Lorek wrote: > > Hi, > I'm facing problems with accessing flash at its 20-bit addressed > regions. While looking for the solution I stumbled upon this website > https://source

Re: [Mspgcc-users] MSPDebug unable to find 0451:f430

2013-11-24 Thread Eric Decker
hi Daniel is it possible to use the ver 3 firmware with Linux dev boxes >From cPhone > On Nov 24, 2013, at 5:22 PM, Daniel Beer wrote: > >> On Sat, Nov 23, 2013 at 01:20:02PM -0800, garyr wrote: >> My OS is XP, Im using the FET430UIF. I've installed MSPDebug according to the >> instructions f

Re: [Mspgcc-users] gdb-loop in Mspdebug

2013-11-04 Thread Eric Decker
it is gdb_loop not gdb-loop under vs. dash. ouch. took me a while to see it. On Sun, Nov 3, 2013 at 7:21 PM, Andrew McLaren wrote: > I'm running Mspdebug outboard of Eclipse. In the old gdbproxy, once I set > this listening on its input port, it remained active until it was > explicitly

Re: [Mspgcc-users] linker relocation errors

2013-10-24 Thread Eric Decker
I don't think this is the same but try this patch:…. +++ a/bfd/elf32-msp430.c 2013-07-24 23:48:07.731767510 -0700 --- b/bfd/elf32-msp430.c 2013-07-24 23:54:57.073797079 -0700 @@ -27,6 +27,7 @@ #include "elf-bfd.h" #include "elf/msp430.h" #include +#include /* Use RELA instead of REL. */ #

Re: [Mspgcc-users] GCC MSP430

2013-09-23 Thread Eric Decker
you should be doing something like -mmcu=msp430fr5739 i'm not sure what -mmcu=msp430x does On Mon, Sep 23, 2013 at 3:38 AM, Ilya Dmitrichenko wrote: > It is actually a bit more odd then I thought: > > % cat test.c > #include > > int main() { return 0; }; > > % msp430-elf-gcc -mmcu=msp430fr573

Re: [Mspgcc-users] Unofficial Red Hat Port

2013-09-12 Thread Eric Decker
Okay I'll ask... Is there FORTRAN support? Now on to my real question... how much real world testing has been done? Has the output been put onto real msp430 chips? Or are you testing against the test suites? just wondering how much it has been banged on. Is it Alpha/Beta status? I hand

Re: [Mspgcc-users] msp430-gdbproxy loses connection with target

2013-09-02 Thread Eric Decker
have you verified that the board is getting the voltage that you think it should be? On Mon, Sep 2, 2013 at 3:38 PM, Andrew McLaren wrote: > > > > On Tue, Aug 27, 2013 at 10:40:45AM +1200, Andrew McLaren wrote: > > > It would have been easy if the problem had been gdbproxy, > > but no such > >

Re: [Mspgcc-users] msp430-gdbproxy loses connection with target

2013-08-24 Thread Eric Decker
is there some reason you are using msp430-gdbproxy rather than mspdebug? msp430-gdbproxy has been deprecated for many years now. current devlopment is occuring on mspdebug. it is a superset of msp430-gdbproxy. On Sat, Aug 24, 2013 at 6:16 PM, Andrew McLaren wrote: > I've been struggling with

Re: [Mspgcc-users] mspgcc Red Hat release

2013-07-07 Thread Eric Decker
There definitely needs to be a way to not have malloc get used automatically. Malloc will cause all kinds of problems in the tinyos community. We discourage the use of malloc and that kind of dynamic memory allocation to minimize wild pointers in very small embedded systems. On Sun, Jul 7, 201

Re: [Mspgcc-users] mspgcc Red Hat release

2013-07-07 Thread Eric Decker
Hi Brendan, will this newlib support for msp430 have support for the MSP430X cpus? I assume. On Sun, Jul 7, 2013 at 6:28 PM, Brendan Conoboy wrote: > On 07/05/2013 11:24 AM, Przemek Klosowski wrote: > > Kudos to Peter Bigot for maintaining MSP430 toolchain for so long and > > for getting it

Re: [Mspgcc-users] mspgcc Red Hat release

2013-07-04 Thread Eric Decker
If you are building 4.7 which I beleive you are. You should use the msp430mcu and msp430-libc that came with the 4.7 release that Peter talked about. yes you need them... On Thu, Jul 4, 2013 at 6:36 PM, Howard0Su wrote: > I grab the patch and latest binutils. I sucessfully build the gcc and

Re: [Mspgcc-users] using in-board ez430 FET emulator

2013-06-22 Thread Eric Decker
Segment fault when I tried to use gdb. > > -- > John > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > > > On 06/22/2013 05:12 PM, Eric Decker wrote: >> >> What version of msp430-gdb are you running? Where did you get it? >> >> do.. >> >> dpkg -l &

Re: [Mspgcc-users] using in-board ez430 FET emulator

2013-06-22 Thread Eric Decker
ying to use gdb to debug code running on a Launchpad with a > msp430g2553 chip. > > > -- > John > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > > > On 06/22/2013 01:06 PM, Eric Decker wrote: > > > Just asking how to get rid of a "seg f

Re: [Mspgcc-users] using in-board ez430 FET emulator

2013-06-22 Thread Eric Decker
Just asking how to get rid of a "seg fault" isn't to helpful. What program was actually running? What version? What address? On Sat, Jun 22, 2013 at 11:55 AM, John Willauer wrote: > How do I eliminate the "Segmentation fault" I get when I try it using: > >Ubuntu 12.04 >mspd

Re: [Mspgcc-users] Hi everybody. Programming in assembler

2013-03-30 Thread Eric Decker
can you make it generally available? if not can you send it to me too? thanks >From cPhone On Mar 30, 2013, at 2:43 PM, "garyr" wrote: > I could send you some assembler code I've written; some serial I/O stuff. > Would > that be of interest? > > - Original Message - > From: > To:

Re: [Mspgcc-users] MPS430-gcc on Mac...

2013-03-26 Thread Eric Decker
yeah that looks weird. I don't know how much testing -mcpu=430 has had done on it. All of the testing I've seen and have used myself uses -mmcu= ie. ie -mmcu=msp430f1611 or -mmcu=msp430f2618 or -mmcu=msp430f5438a If that help, submit a bug report and see what Peter says about it.

Re: [Mspgcc-users] MPS430-gcc on Mac...

2013-03-26 Thread Eric Decker
Hi Bill, Eric here. That is the current non-experimental version and should work. It is the most recent primary version. It support the CPUX cpus just not the 20 bit extensions. There is also an experimental version 4.7 that has 20 bit support. If you give me more information about what you

Re: [Mspgcc-users] gdb + mspdebug - tip for efficient use

2013-03-18 Thread Eric Decker
Thanks David I'll add that to the tinyos msp430 stuff that I maintain On Monday, March 18, 2013, David Brown wrote: > Hi, > > This is just a tip for users of gdb and mspdebug - slow debugging had > been annoying me, and it took me a while to find a solution. I had > originally planned to ask ab

Re: [Mspgcc-users] Upgrade woes

2013-03-13 Thread Eric Decker
On Tue, Mar 12, 2013 at 3:30 PM, garyr wrote: > I'm trying to switch to the latest version of the mspgcc tools. I've > downloaded > the latest version from sourceforge. When I attempt to compile a file I > get the > following warning message: > > c:\program > > files\mspgcc_4.6\bin\../lib/gcc/msp

Re: [Mspgcc-users] MSP430 GCC goes Red Hat

2013-03-11 Thread Eric Decker
Haven't seen any update yet. On Mon, Mar 11, 2013 at 2:42 PM, Stefano Bocchino < bocchino.stef...@gmail.com> wrote: > >> I haven't seen any status update, initial beta or public code branch > >> since the original announce (if patches have been scattered across > >> several trackers, I may simply

Re: [Mspgcc-users] mps430f5438a - accidentially blowing fuse!?

2013-03-11 Thread Eric Decker
On Mon, Mar 11, 2013 at 6:58 PM, Chris Liechti wrote: > Am 12.03.2013 00:31, schrieb Nils Faerber: > > Then I extended my testcode with some SPI init code, a ~1kbyte buffer in > > RAM and a polling SPI write of that buffer to the SPI - BANG! > > so without knowing details, two possible causes com

Re: [Mspgcc-users] /usr/msp430/lib/etc

2013-02-26 Thread Eric Decker
4.5.3 is deprecated try installing 4.6.3 and see if you get the same result >From cPhone On Feb 26, 2013, at 5:15 PM, Ian Chapman wrote: > Hi, I do not seem to have all the files to deal with msp430f5338, I get > the below error. Usin msp430f5438 all compiles well and runs under > mspde

Re: [Mspgcc-users] TinyOS and -ffunction-sections / -fdata-sections

2013-02-24 Thread Eric Decker
uot;far" part is larger than the data > section. > Note that my app's "near" part starts at 0xBC00; the lower 30k of flash are > used by a bootloader and a second app. > > > Martin > > On 02/23/2013 12:57 AM, Eric Decker wrote: >> >> >

Re: [Mspgcc-users] TinyOS and -ffunction-sections / -fdata-sections

2013-02-22 Thread Eric Decker
btained via git from https://github.com/tp-freeforall/prod On Fri, Feb 22, 2013 at 9:58 AM, Peter Bigot wrote: > Figure out why those asm statements are getting emitted and replace it with > something that references a linker symbol like __P3OUT and __P4OUT. > > I believe Eric Decker was

Re: [Mspgcc-users] MSP430 GCC goes Red Hat

2012-11-02 Thread Eric Decker
One of the outstanding issues with the current 20 bit msp430-gcc is msp430-gdb doesn't understand enough to work properly. msp430-gdb should also be mutated forward to be based on a more modern gdb. Currently we've been using 7.2 with the 4.6.3 msp430-gcc toolchain. Eventually, I hope to take a

Re: [Mspgcc-users] On volatile for long type.

2012-10-24 Thread Eric Decker
On Wed, Oct 24, 2012 at 12:38 AM, mind entropy wrote: > > On Wed, Oct 24, 2012 at 12:36 PM, Eric Decker wrote: > >> >> >> On Tue, Oct 23, 2012 at 11:14 PM, mind entropy wrote: >> >>> Hi, >>> >>> I was reading the mspgcc manual ( &g

Re: [Mspgcc-users] On volatile for long type.

2012-10-24 Thread Eric Decker
On Tue, Oct 23, 2012 at 11:14 PM, mind entropy wrote: > Hi, > > I was reading the mspgcc manual ( > > http://www.eecs.harvard.edu/~konrad/projects/motetrack/mspgcc-manual-20031127.pdf > ) > and on Pg 39 its written as > I believe there is a more up to date version but I'm not usre where it live

Re: [Mspgcc-users] Timer interrupt problem

2012-09-27 Thread Eric Decker
Couple of things. First when sending source do it as an attachment so it doesn't get mangled. lose the #include and replace it with #include See if that helps. The command line will cause the right thing to happen when you say -mmcu=msp430g2231. On Thu, Sep 27, 2012 at 6:09 PM, Brian Gorma

Re: [Mspgcc-users] MSP-FET430UIF uif: read error: Connection timed out

2012-08-20 Thread Eric Decker
ase see: > <http://bugs.launchpad.net/gdb-linaro/>. > (gdb) set remoteaddresssize 64 > (gdb) set remotetimeout 99 > (gdb) target remote localhost:2000 > Remote debugging using localhost:2000 > Segmentation fault > > > > > On Mon, Aug 20, 2012 at 11:54 AM, Eric

Re: [Mspgcc-users] USB-based msp distro

2012-08-20 Thread Eric Decker
On Sun, Aug 19, 2012 at 11:57 PM, Yamandu Ploskonka wrote: > > On 08/20/2012 01:47 AM, Eric Decker wrote: > >> >> >> On Sun, Aug 19, 2012 at 11:08 PM, Yamandu Ploskonka >> > yamap...@gmail.com>> wrote: >> >> Question: any ideas on a

Re: [Mspgcc-users] USB-based msp distro

2012-08-19 Thread Eric Decker
On Sun, Aug 19, 2012 at 11:08 PM, Yamandu Ploskonka wrote: > Question: any ideas on a simple OS that would fit in a USB and have the > basic MSP toolchain? > A bit beyond the scope of this list. I did a simple search on google "running linux from usb", First page http://www.pendrivelinux.com bu

Re: [Mspgcc-users] MSP-FET430UIF uif: read error: Connection timed out

2012-08-19 Thread Eric Decker
d an error code (1) > > > On Sat, Aug 18, 2012 at 6:01 PM, kudiarasu wrote: > >> Thanks Eric, >> I got mspdebug prompt . >> >> On Sat, Aug 18, 2012 at 5:38 PM, Eric Decker wrote: >> >>> >>> try >>> >>> mspdebug uif -jd /dev

Re: [Mspgcc-users] MSP-FET430UIF uif: read error: Connection timed out

2012-08-18 Thread Eric Decker
gt; warning: fet: reset failed > fet: FET returned error code 4 (Could not find device (or device not > supported)) > warning: fet: set VCC failed > fet: reply type mismatch > fet: command C_IDENT1 failed > fet: identify failed > > > > > > On Sat, Aug 18, 2

Re: [Mspgcc-users] MSP-FET430UIF uif: read error: Connection timed out

2012-08-18 Thread Eric Decker
if you can get tilib to work. On Sat, Aug 18, 2012 at 3:43 AM, kudiarasu wrote: > Hi eric, > > ya i don't have V2 FET f/w , where i can get this? > > On Sat, Aug 18, 2012 at 1:15 AM, Eric Decker wrote: > >> >> >> On Fri, Aug 17, 2012 at 10:25 AM, kudia

Re: [Mspgcc-users] MSP-FET430UIF uif: read error: Connection timed out

2012-08-17 Thread Eric Decker
On Fri, Aug 17, 2012 at 10:25 AM, kudiarasu wrote: > Hi all , > i am using MSP-FET430UIF for debugging my development board,i successfully > installed mspgcc in linux 11.10,finally trying to run gdb through > mspdebug command but it failed in initialization . i enclosed the log > files below.

Re: [Mspgcc-users] best ubuntu version for mspgcc

2012-08-16 Thread Eric Decker
Doesn't matter. mspgcc is os agnostic. i would use either 11.10 or 12.04 On Thu, Aug 16, 2012 at 9:54 PM, kudiarasu murugesan < kudiara...@apexcomtel.com> wrote: > Hi all > > I am newbee to msp430, i setup development environment and myself willing > to use open source (mspgcc and eclipse ).

Re: [Mspgcc-users] View settings of peripherals in debug

2012-07-22 Thread Eric Decker
On Sun, Jul 22, 2012 at 2:03 PM, Kuba wrote: > Dear Peter, > > Thank you for your answer. I do understand that my question only touches > mspgcc toolchain, however I decided to give it a try since people reading > this list have also quite some "toolset" knowledge. > > Thank you for the __P1DIR h

Re: [Mspgcc-users] mspgcc development release 20120716 now available (complete 20-bit support)

2012-07-16 Thread Eric Decker
to further expound on what Peter has said. I would paraphrase it as follows: If an underlying implementation provides time services, then it is higly desireable that the api for those services looke like the POSIX time functions and can be provided by libc. The fix makes sure that is is reasonab

Re: [Mspgcc-users] New MCU with old MSPGCC

2012-07-11 Thread Eric Decker
On Wed, Jul 11, 2012 at 9:02 PM, Георгий Охохонин wrote: > Hi! > > Tell me please, can I use MSP430FR5739 with MSPGCC 3.2.3? > I don't beleive you can do thisor at least you don't want to. The old (3.2.3) toolchain had built into it descriptions of different processors which mad it diffi

Re: [Mspgcc-users] BUG: READ_SR instead of READ_SR(void)

2012-06-28 Thread Eric Decker
I would like us to move towards less obfuscation. my $0.02CDN On Thu, Jun 28, 2012 at 4:01 AM, JMGross wrote: > - Ursprüngliche Nachricht - > Von: Peter Bigot > Gesendet am: 27 Jun 2012 16:36:58 > > >> P.s.: I also wish all this TIMER1_VECTOR/TIMER0_A1_VECTOR > >> confusion would vanish

Re: [Mspgcc-users] BUG: READ_SR instead of READ_SR(void)

2012-06-26 Thread Eric Decker
On Tue, Jun 26, 2012 at 5:05 PM, Simeon Felis wrote: > Am 26.06.2012 13:12, schrieb Peter Bigot: > >> 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:

Re: [Mspgcc-users] msp430f1612 device with wrong memory mapping?

2012-06-26 Thread Eric Decker
On Tue, Jun 26, 2012 at 4:53 PM, Simeon Felis wrote: > > > The linker script appears consistent with the device datasheet at > > http://www.ti.com/product/msp430f1612; see page 15. The device does > > not have 55 kiB ROM; that's been rounded up by 256 bytes. > > That was what I was afraid of. >

Re: [Mspgcc-users] msp430f1612 device with wrong memory mapping?

2012-06-26 Thread Eric Decker
It would be more helpful if you tell us what version of the toolchain you are running... On Tue, Jun 26, 2012 at 1:39 AM, Simeon Felis wrote: > According to [1] page 12 the f1612 has 55k rom. But the > msp430/lib/ldscripts/msp430f1612/memory.x > indicates that it has about 54k rom: > rom (rx)

Re: [Mspgcc-users] Updated Debian/Ubuntu Packages ?

2012-05-16 Thread Eric Decker
On Wed, May 16, 2012 at 12:56 AM, Hans Henry von Tresckow < hvont...@gmail.com> wrote: > Is there any timeline for updated debian or Ubuntu packages based on > the current LTS Relaease? > > The packages available out there are still based on the old 20110612 > release. > Out where? You can find

Re: [Mspgcc-users] mspgcc development release 20120514 now available

2012-05-16 Thread Eric Decker
I don't see a patch bundle for 20120514 at DEVEL-4.7.x. Last patch bundle I see still remains 20120425. Am I looking in the wrong place? eric On Mon, May 14, 2012 at 7:12 PM, Peter Bigot wrote: > Development release 20120514 of mspgcc is now available. > > This is a development release. It

Re: [Mspgcc-users] mspgcc long-term-support release 20120406 now available

2012-04-20 Thread Eric Decker
I have a script that builds deb packages if that helps. On Fri, Apr 20, 2012 at 2:06 PM, Peter Bigot wrote: > On Fri, Apr 20, 2012 at 2:47 PM, Matthias Ringwald > wrote: > > Hello Peter > > > > could you please provide a tar.gz of .. > > > >> > >> The tag workspace/release/20120406 in > >> git:

Re: [Mspgcc-users] Could not build latest LTS on FreeBSD: need help from gcc cross-build guru

2012-04-07 Thread Eric Decker
What is the version of gcc that you are using to build with? version numbers of your host toolchain would be helpful. On Sat, Apr 7, 2012 at 2:38 PM, Lev Serebryakov wrote: > Hello, MSPGCC. > > Maybe, it is not proper list to ask. But gcc-specific lists are very > noisy and I'm not subscribed

Re: [Mspgcc-users] mspgcc development release 20120224 now available

2012-02-29 Thread Eric Decker
the form msp430x1611 has been removed. Peter clearly documented this on this list. There are very good reasons for the removal. you need to use -mmcu=msp430f1611 From cPhone On Feb 29, 2012, at 3:04 AM, Stefan Nürnberger wrote: > You could try to pass the full controller name instead o

Re: [Mspgcc-users] Programming MSP430 under Linux

2012-02-10 Thread Eric Decker
> >>>> -Original Message- > >>>> From: John Porubek [mailto:jporu...@gmail.com] > >>>> Sent: Friday, February 10, 2012 12:14 AM > >>>> To: Mspgcc-users@lists.sourceforge.net > >>>> Subject: Re: [Mspgcc-users] Prog

Re: [Mspgcc-users] Programming MSP430 under Linux

2012-02-10 Thread Eric Decker
;> To: Mspgcc-users@lists.sourceforge.net > >>> Subject: Re: [Mspgcc-users] Programming MSP430 under Linux > >>> > >>> On Mon, Jan 30, 2012 at 6:58 AM, Eric Decker > wrote: > >>> > On Mon, Jan 30, 2012 at 3:00 AM, Ori Idan

Re: [Mspgcc-users] Programming MSP430 under Linux

2012-02-10 Thread Eric Decker
>>> >>> Since the op didn't mention which MSP430 chip he was using, you might >>> also mention the $4.30 LaunchPad. The LaunchPad will directly program >>> any MSP430 chip in a 14 or 20-pin DIP package that supports >>> Spy-Bi-Wire. It should also be able to program other chips externally >

Re: [Mspgcc-users] Programming MSP430 under Linux

2012-02-10 Thread Eric Decker
t; -Original Message- > From: John Porubek [mailto:jporu...@gmail.com] > Sent: Friday, February 10, 2012 12:14 AM > To: Mspgcc-users@lists.sourceforge.net > Subject: Re: [Mspgcc-users] Programming MSP430 under Linux > > On Mon, Jan 30, 2012 at 6:58 AM, Eric Decker wrote

Re: [Mspgcc-users] Programming MSP430 under Linux

2012-01-30 Thread Eric Decker
s the TI-FET MSP-FETU430IF. there is the OLIMEX tinyusb there is the goodfet. various levels of cost. > > > -- > Ori Idan > > > On Mon, Jan 30, 2012 at 12:46 PM, Eric Decker wrote: > >> >> mspdebug >> >> See: http://mspdebug.sourceforge.ne

Re: [Mspgcc-users] Programming MSP430 under Linux

2012-01-30 Thread Eric Decker
mspdebug See: http://mspdebug.sourceforge.net/ On Mon, Jan 30, 2012 at 1:44 AM, Ori Idan wrote: > I need to program a MSP430 device using Linux. > I do not need debugging, just send an existing .hex file to the device and > program it's flash. > What is the best tool, hardware and software? >

Re: [Mspgcc-users] Static analysis stack tool

2012-01-12 Thread Eric Decker
On Thu, Jan 12, 2012 at 4:01 PM, Wayne Uroda wrote: > Hi Peter, > > Regarding your first comment, are you saying that while I can put a > definite lower bound on stack usage (stack uses at least X bytes), I cannot > put a definite upper bound on stack use (stack never uses more than Y > bytes)? >

Re: [Mspgcc-users] Vector Problems with processor type

2011-12-23 Thread Eric Decker
Howdy Bob, When messing with low level stuff (like interrupts) one must learn to read and deal with TI's weird interrupt schemes. One can learn all from looking at the include files: These files can be found in /usr/msp430/include with a normal install from one of the Debian packages (msp430mcu.

Re: [Mspgcc-users] Enter LPM4 without missing the wakeup interrupt

2011-12-05 Thread Eric Decker
On Mon, Dec 5, 2011 at 4:05 PM, Sergio Campamá wrote: > Hello Wayne, > > The only difference between LPM3 and LPM4 is that the ACLK is stopped in > LPM4, so moving onto LPM3 won't solve your problem. What is the P1.1 > connected to? If you wanted to wake the system up from LPM4 when there is > an

Re: [Mspgcc-users] Problems with erasing MSP-EXP430FR5739 and then "Security fuse blown" error

2011-11-21 Thread Eric Decker
On Mon, Nov 21, 2011 at 11:34 PM, Kuba wrote: > Dear Eric, Daniel, > > I see. Indeed if the INFO section contains only "useful" data and not > "critical" data, then I can safely erase the device. > Not silly at all. How many of us have bricked a device accidentally. Understanding is good and

Re: [Mspgcc-users] Problems with erasing MSP-EXP430FR5739 and then "Security fuse blown" error

2011-11-21 Thread Eric Decker
On Mon, Nov 21, 2011 at 11:06 PM, Kuba wrote: > Hi Daniel, > > Thanks for the info. That sounds a bit better than the chip replacement > (though I will try that if nothing else works, thanks Crazy Casta). > > Did you come across an instruction to follow this procedure? Can it be done > with mspde

Re: [Mspgcc-users] mspgcc and printf

2011-11-16 Thread Eric Decker
something like READ_SR() & GIE From cPhone On Nov 16, 2011, at 6:28 PM, Sergio Campamá wrote: > Umm, what would be the proper way to check the GIE bit from the SR? > > Something like _BIS_SR(GIE), but not to set, just to read the SR... > --- > Sergio Cam

Re: [Mspgcc-users] mspgcc and printf

2011-11-16 Thread Eric Decker
it would be better to figure out why disabling around the hw output makes a difference. you really shouldn't have to do that. some other piece of code must be mucking with the uart I/o the other more efficient way to mess with this is to go buffered and run the I/O off interrupts. From

Re: [Mspgcc-users] Device support list

2011-10-11 Thread Eric Decker
I'm not aware of a device support list. However, I know that the CC430f5137 is definitely supported as are the 5438a The intent is to support any device that we have cpu headers for. But I don't know if that means the goal was accomplished. The proof is in the actual code generated and if

Re: [Mspgcc-users] MSP430-insight

2011-10-10 Thread Eric Decker
On Mon, Oct 10, 2011 at 3:12 PM, Wayne Uroda wrote: > I have a couple of stupid questions: > > 1. Is there any way to search the mspgcc-users mail archive on sourceforge? > (I may not have needed to ask question 2). > http://www.mail-archive.com/mspgcc-users@lists.sourceforge.net/ > > 2. How/w

Re: [Mspgcc-users] VLA in MSPGCC

2011-10-06 Thread Eric Decker
On Thu, Oct 6, 2011 at 2:03 AM, David Brown wrote: > On 05/10/2011 18:05, JMGross wrote: > > > > > > > > > > - Ursprüngliche Nachricht - > > Von: David Brown > > Gesendet am: 04 Okt 2011 16:22:18 > > > >> On 04/10/2011 15:59, Peter Bigot wrote: > > > >>> The words "stack" and "heap" do no

Re: [Mspgcc-users] Incorrect TASSEL0/1 comments in msp430mcu headers

2011-10-01 Thread Eric Decker
Hey Jasper, Thanks for the find. Here is the situation First, these files come directly from TI and for maintanence and sanity reasons we don't want to modify them. There is a very simple mod done at the very front which adds the define for TI_HEADERS. Peter takes care of that. And he m

Re: [Mspgcc-users] VLA in MSPGCC

2011-09-29 Thread Eric Decker
Harumph. I'm not sure where to point you. I learned about this stuff in basic computer science classes and/or on the fly. The major question is where to data variables live 1st there is registers (clearly local scope) next up is the stack. This depends on the architecture of the underl

Re: [Mspgcc-users] memory.x not found and debugger crashing

2011-09-19 Thread Eric Decker
that is one way of doing it but I don't think it is required. What I beleive is required is that you tell the linker about the mcu. I beleive there is a way of doing this directly to the linker but I don't recall the syntax. The mechanism Matthias is using certainly works to tell the linker wha

Re: [Mspgcc-users] uint64_t issue?

2011-09-14 Thread Eric Decker
Michel please try again but use one of the more current builds from http://tinyprod.net/razvanm/debian >From cPhone On Sep 14, 2011, at 8:01 AM, Peter Bigot wrote: > Interesting. I'll have to figure out where that extra information is > getting added; when I do that on one of my internal bui

Re: [Mspgcc-users] uint64_t issue?

2011-09-14 Thread Eric Decker
this one of my early builds Michel please try ag >From cPhone On Sep 14, 2011, at 8:01 AM, Peter Bigot wrote: > Interesting. I'll have to figure out where that extra information is > getting added; when I do that on one of my internal builds, I just get 4.5.3 > with no msp430-specific versio

Re: [Mspgcc-users] data loads at strange addresses

2011-08-30 Thread Eric Decker
gt; > Am 30.08.2011 11:06, schrieb aliko: > > 30.08.2011 12:54, Eric Decker пишет: > >> we need more details about the compile process, turn on verbose and see > >> what switches are being fed to the compiler and linker. > > compiller (for one of files in project): > &g

Re: [Mspgcc-users] data loads at strange addresses

2011-08-30 Thread Eric Decker
On Tue, Aug 30, 2011 at 2:06 AM, aliko wrote: > 30.08.2011 12:54, Eric Decker пишет: > > we need more details about the compile process, turn on verbose and see > > what switches are being fed to the compiler and linker. > > compiller (for one of files in project):

Re: [Mspgcc-users] data loads at strange addresses

2011-08-30 Thread Eric Decker
: > 30.08.2011 12:32, Eric Decker пишет: > > 1cxx etc is ram. and for some reason gdb is thinking that it is down > in > > ram which is probably where it ends up. > > > > Not sure what is different in the elf file you are feeding into gdb. > Which > > gdb by the way. &

Re: [Mspgcc-users] data loads at strange addresses

2011-08-30 Thread Eric Decker
1cxx etc is ram. and for some reason gdb is thinking that it is down in ram which is probably where it ends up. Not sure what is different in the elf file you are feeding into gdb. Which gdb by the way. it would help more if you include things like what gdb, what toolchain, versions, etc. t

Re: [Mspgcc-users] Source build (and instructions need to be fixed)

2011-08-28 Thread Eric Decker
there is an experimental debian archive at http://tinyprod.net/debian-dev/ This is based on debian squeeze so should work fine on Ubuntu 11.04 I don't know what 2.21.1a or 7.2a are. Those seem kind of odd. Where are your references coming from? More context would be nice. eric On Sun, Au

Re: [Mspgcc-users] RAM Management

2011-08-19 Thread Eric Decker
On Fri, Aug 19, 2011 at 11:23 AM, Sergio Campamá wrote: > Wow, thanks for all the info! I had thought about having arrays for > everything, but didn't want to because I wouldn't know how many of each > struct I would have in each module. But if what you're telling me about > malloc and free is tru

[Mspgcc-users] latest version of the toolchain available

2011-08-17 Thread Eric Decker
I've put together a revised version of LTS 20110716 with the patches through 20110813 from Peter's releases. It is located as a tar ball at: http://tinyprod.net/downloads/msp430-20110813.tgz It gets installed in /opt. It has been built for Ubuntu Lucid (10.04) and also needs to have libmpc-dev

Re: [Mspgcc-users] how to stop watchdog prior to C++ constructors calling

2011-08-12 Thread Eric Decker
I don't know what the C++ code looks like after the compiler gets done with it. But... You should be able to generate a listing from the object that includes the underlying assembly language. I don't know how ugly the constructors and destructors are but you should be able to figure out where t

Re: [Mspgcc-users] Custom linker file

2011-08-08 Thread Eric Decker
On Mon, Aug 8, 2011 at 10:57 PM, Alex Stefan wrote: > > As I said, seems like a very good idea, but there's one thing I don't > understand. Why do you need the 'indirect jumping zone'. Why wouldn't it be > possible to program the vector in bootvect to jump directly to the > interrupt > vector tabl

Re: [Mspgcc-users] Questions about 5438 FLL and DCO

2011-08-08 Thread Eric Decker
> However, you cannot rely on this if you enter an LPM that switches the FLL or > the DCO or the reference off. In case the FLL is switched off, it is NOT > switched on during ISR execution. But disabling reference or > DCO will cause the FLL (if sitll enabled) to try to adjust the DCO up

Re: [Mspgcc-users] MSP430-GCC + Eclipse

2011-07-04 Thread Eric Decker
msp430-gdbproxy hasn't been supported for a long time. you can try porting mspdebug to the windows/cygwin environment. I don't know what is required, prehaps a port of libusb. or you can switch to a linux environment, perhaps dual boot. sorry that there isn't a better answer. I started my de

Re: [Mspgcc-users] GDB for Uniarch?

2011-05-11 Thread Eric Decker
I've been using the GDB from the previous builds that Peter was doing before uniarch. Its GDB 7.2 from mspgcc 4.4.5. Download from Mspgcc4/Sourceforge. The file you want is mspgcc4-201103112.zip. Unpack it and follow the instructions.

Re: [Mspgcc-users] How to get 20 bit immediate...

2011-04-15 Thread Eric Decker
thanks. appreciated. On Fri, Apr 15, 2011 at 7:12 AM, JMGross wrote: > - Ursprüngliche Nachricht - > Von: Eric Decker > Gesendet am: 15 Apr 2011 05:38:43 > > > I know uniarch currently doesn't support 20 bit. That is why I'm > > using 3.2.3 with t

Re: [Mspgcc-users] How to get 20 bit immediate...

2011-04-14 Thread Eric Decker
On Thu, Apr 14, 2011 at 4:21 PM, Peter Bigot wrote: > And yes, if you did it in assembler, you could use a 20-bit immediate. > > Peter > > >> Can the msp430X instruction set even access a 20 bit immediate field? > This is kind of what I was getting at From my original post: > Anyone know

Re: [Mspgcc-users] How to get 20 bit immediate...

2011-04-14 Thread Eric Decker
;0x0002(r1) __asm__ __volatile__ ("movx.a %1,%0":"=m" (DMA0SA):"m" (addr)); 3b9a:00 18 e2 41 d2 01 movx.a@r1,&0x001d2 3ba0:21 52 add#4,r1;r2 As==10 3ba2:10 01 reta > > > O

[Mspgcc-users] How to get 20 bit immediate...

2011-04-14 Thread Eric Decker
0xefefeUL)); 3b12:00 18 f2 40 fe fe d2 01 movx.a#65278, &0x001d2;#0x0fefe Can the msp430X instruction set even access a 20 bit immediate field? Or do I have to initialize a long in memory first then load it using movx.a? eric On Wed, Apr 13, 2011 at 12:23 PM, JMGross wr

Re: [Mspgcc-users] [tinyos-msp430] How to access 20 bit peripheral registers...

2011-04-13 Thread Eric Decker
Thanks Jens, Do you perhaps have a code snipet of access to a 20 bit register? Say DMA0SA for example. I love working examples. more below ... On Wed, Apr 13, 2011 at 4:00 AM, JMGross wrote: > > - Ursprüngliche Nachricht - > Von: Eric Decker > Gesendet am: 12 Apr 2

Re: [Mspgcc-users] [tinyos-msp430] How to access 20 bit peripheral registers...

2011-04-12 Thread Eric Decker
se I haven't figured out how to generate the instruction yet. Does anyone have information about the behavior of 20 bit registers. and I'm talking about the 2617 processor. although I'm also interested in any information about the cc430f5137 and/or the 5438. > > Peter &

[Mspgcc-users] How to access 20 bit peripheral registers...

2011-04-12 Thread Eric Decker
Hi, 1st before anything else... Is there a reasonable way to search the mspgcc-users archive? I've poked around a bit and doesn't seem to be. I'm playing with the dma engines on the msp430f2617. I've written a unified driver that handles all three main processor varients. (x1: msp430f1611, x2

Re: [Mspgcc-users] Anyone know what RWM in the TI 5438 means?

2011-04-05 Thread Eric Decker
On Tue, Apr 5, 2011 at 7:24 AM, Peter Bigot wrote: > On Tue, Apr 5, 2011 at 9:12 AM, Eric Decker wrote: > > On Tue, Apr 5, 2011 at 6:58 AM, Grant Edwards >wrote: > >> > Ah. I guess I got taken in by TI calling the MSP430 a RISC machine. > >> > >>

Re: [Mspgcc-users] Anyone know what RWM in the TI 5438 means?

2011-04-05 Thread Eric Decker
On Tue, Apr 5, 2011 at 6:58 AM, Grant Edwards wrote: > On 2011-04-05, Eric Decker wrote: > > On Mon, Apr 4, 2011 at 8:43 PM, Steve Underwood > wrote: > > > >> > >> A large part of the MSP430 instruction set is read-modify-write. How do > >> you thi

Re: [Mspgcc-users] Anyone know what RWM in the TI 5438 means?

2011-04-05 Thread Eric Decker
This is far a field but hey Don't get much chance these days to talk about this stuff... Oh and thanks for your reply. It most certainly was the kind of stuff I was looking for. On Tue, Apr 5, 2011 at 3:40 AM, JMGross wrote: > > - Ursprüngliche Nachricht ----- > Vo

Re: [Mspgcc-users] Anyone know what RWM in the TI 5438 means?

2011-04-04 Thread Eric Decker
On Mon, Apr 4, 2011 at 8:43 PM, Steve Underwood wrote: > > A large part of the MSP430 instruction set is read-modify-write. How do > you think all those memory to memory operations work? > Ah. I guess I got taken in by TI calling the MSP430 a RISC machine. Silly me. Thanks Steve, eric > >

  1   2   >