Re: LPM3 seems to interfere with MSP's ability to restart
Valentin Sawadski <[email protected]>
| Newsgroups | gmane.comp.hardware.texas-instruments.msp430.gcc.user |
|---|---|
| Message-ID | <CABgPX1=yGJUuqaW1DuJ4CcLBRd_23FT0MiBMbW7s7ZCSvtx3AQ@mail.gmail.com> |
Hi I'm not sure if it is directy related to your issue but one thing I noticed when debugging targets with MSPGCC is the following. My program is using Timer A and directly after programming the MSP with mspdebug the Timer A is not starting up. It is simply not counting. I have to powercycle the board to have it operate correctly. This happens every time I program the MSP. Are you by any chance also using Timer A? Btw have you tried to evaluate the program counter to see where it is stuck? Best, Valentin On Thu, Nov 21, 2013 at 12:51 AM, Andrew McLaren <[email protected]>wrote: > I'm seeing a bit of a weird situation that I don't really understand. I > suspect it will be something simple (hopefully just a 'dumb user error'!). > It affects the ability of the debugger to reload/restart code following an > LPM3 state. > > I've been able to reduce the logic to simply the command that triggers the > LPM3 state (I'm using C, so its just the LPM3 macro). As expected, the > command drops the MSP into lpm3, and the logic promptly hangs (there is > nothing there to exit this). This is running via mspdebug under Eclipse, so > if I pause the logic, I'll see that it is indeed sitting at the LPM3 > instruction. > > If I terminate this and reload the code, all appears normal (the write/read > messages from mspdebug as it erases and reloads the code seem normal). > However, when the code is restarted, it appears to hang somewhere - it > never > reaches the LPM3 instruction. This appears to have left the target MSP in > some sort of indeterminate state, and haven't found any way of retrieving > it > other than power cycling the target. If I simply restart mspdebug, it > reports the following (this is using the TI FET, but have also tried an > Olimex JTAG-TINY with the same end result). > > TI3140 device is in boot config, setting active > Ti3140: TI_OPEN_PORT failed: A device attached to the system is not > functioning. > Ti3140: failed to set up port > > I guess mspdebug is having issues communicating, and the problem is out > with > the target msp. Powering the target MSP off and on clears the problem, but > haven't found anything else that does. > > While the above is obviously contrived, many MSP's live most of their lives > in LP states, and LPM3 is possibly the most common of these. Any reload of > code while debugging is highly likely to be from something like LPM3, so > have to believe its something I'm doing. Any ideas? > > Andrew > > > > ------------------------------------------------------------------------------ > Shape the Mobile Experience: Free Subscription > Software experts and developers: Be at the forefront of tech innovation. > Intel(R) Software Adrenaline delivers strategic insight and game-changing > conversations that shape the rapidly evolving mobile landscape. Sign up > now. > http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk > _______________________________________________ > Mspgcc-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/mspgcc-users > -- Valentin Sawadski Founder & Head of Embedded Software Tel.: +49 - (0) 89 - 416 15 66 4 - 5 Fax: +49 - (0) 89 - 416 15 66 4 - 9 Mobil: +49 - (0) 162 - 460 163 4 www.tado.com www.facebook.com/tado.com www.twitter.com/tado tado.com ist ein Angebot der tado° GmbH tado° GmbH | Lindwurmstr. 76 | 80337 München Geschäftsführer: Christian Deilmann | Johannes Schwarz | Leopold v. Bismarck Eingetragen beim Amtsgericht München, HRB 194769 B | Ust.-ID Nr. DE 280012558 VERTRAULICHKEITSHINWEIS: Diese Nachricht ist vertraulich. Sie darf ausschließlich durch den vorgesehenen Empfänger und Adressaten gelesen, kopiert oder genutzt werden. Sollten Sie diese Nachricht versehentlich erhalten haben, bitten wir, den Absender (durch Antwort-E-Mail) hiervon unverzüglich zu informieren und die Nachricht zu löschen. Jede Nutzung oder Weitergabe des Inhalts dieser Nachricht ist unzulässig. CONFIDENTIALITY NOTICE: This message (including any attachments) is confidential and may be privileged. It may be read, copied and used only by the intended recipient. If you have received it in error please contact the sender (by return e-mail) immediately and delete this message. Any unauthorized use or dissemination of this message in whole or in part is strictly prohibited. **Please consider the environment before printing this e-mail** ------------------------------------------------------------------------------ Shape the Mobile Experience: Free Subscription Software experts and developers: Be at the forefront of tech innovation. Intel(R) Software Adrenaline delivers strategic insight and game-changing conversations that shape the rapidly evolving mobile landscape. Sign up now. http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk _______________________________________________ Mspgcc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mspgcc-users