Jump to content
xpg

Eclipse plugin for mspdebug and msp430-gcc

Recommended Posts

Args: [/home/bharadwaaj/msp430-toolchain-linux-i386-2.0/bin/mspdebug-wrapper, olimex, prog /home/bharadwaaj/workspace/new/Debug/new.elf]

Waiting for mspdebug to finish

MSPDebug version 0.20 - debugging tool for MSP430 MCUs

Copyright © 2009-2012 Daniel Beer <dlbeer@gmail.com>

This is free software; see the source for copying conditions. There is NO

warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

 

usbutil: unable to find a device matching 15ba:0002

usbutil: unable to find a device matching 15ba:0031

 

this is the error am getting after uploading please help me

Share this post


Link to post
Share on other sites

Hi it would be great if i have some help here am getting the below error....

Args: [/home/bharadwaaj/msp430-toolchain-linux-i386-2.0/bin/mspdebug-wrapper, rf2500, prog /home/bharadwaaj/workspace/new/Debug/new.elf]

Waiting for mspdebug to finish

MSPDebug version 0.20 - debugging tool for MSP430 MCUs

Copyright © 2009-2012 Daniel Beer <dlbeer@gmail.com>

This is free software; see the source for copying conditions. There is NO

warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

 

usbutil: unable to find a device matching 0451:f432

 

i ran a google search and now am having my ls usb output of my computere here

 

[bharadwaaj@localhost ~]$ lsusb

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Bus 004 Device 002: ID 413c:2107 Dell Computer Corp.

Bus 004 Device 003: ID 0461:4d22 Primax Electronics, Ltd

Bus 005 Device 003: ID 0451:f432 Texas Instruments, Inc. eZ430 Development Tool

[bharadwaaj@localhost ~]$

Share this post


Link to post
Share on other sites

Hi it would be great if i have some help here am getting the below error....

Args: [/home/bharadwaaj/msp430-toolchain-linux-i386-2.0/bin/mspdebug-wrapper, rf2500, prog /home/bharadwaaj/workspace/new/Debug/new.elf]

Waiting for mspdebug to finish

MSPDebug version 0.20 - debugging tool for MSP430 MCUs

Copyright

Share this post


Link to post
Share on other sites

**** Build of configuration Debug for project sample ****

 

E:\Bharadwaaj\toolchain\msp430-toolchain-win-x86-2.0\bin\mingw32-make all

Building file: ../main.c

Invoking: MSP430 C Compiler

E:\Bharadwaaj\toolchain\msp430-toolchain-win-x86-2.0\bin\msp430-gcc -O0 -g -Wall -mmcu=msp430g2553 -std=gnu89 -c -o "main.o" "../main.c"

cygwin warning:

MS-DOS style path detected: C:\Documents and Settings\Subramanyam\indigowork\sample\Debug

Preferred POSIX equivalent is: /cygdrive/c/Documents and Settings/Subramanyam/indigowork/sample/Debug

CYGWIN environment variable option "nodosfilewarning" turns off this warning.

Consult the user's guide for more details about POSIX paths:

http://cygwin.com/cy...using-pathnames

/usr/bin/sh: E:Bharadwaajtoolchainmsp430-toolchain-win-x86-2.0binmsp430-gcc: command not found

mingw32-make: *** [main.o] Error 127

 

 

 

The above is the error am getting for compiling a program. I appreciate any help from experts thank you

 

 

It turns out that the Windows binary toolchain is not too happy with Cygwin in PATH

 

I have build a new binary toolchain that solves this problem, which you can obtain here:

http://xpg.dk/files/File/msp430/msp430-toolchain-win-x86-3.0.zip

 

Please let me know how this works for you.

 

There is a remaining issue, which I have not yet solved: Cleaning the project does not work properly. There is some issue with 'rm'. I'm working on a solution.

 

Best regards,

Paul

Share this post


Link to post
Share on other sites

xpg,

 

Once again thanks a lot for your work!

I have one question, maybe you can help me with.

 

I am running 64bit Ubuntu, with your pre-compiled toolset.

Running code normally on MSP is all ok, but now very often I have issues starting the debugger, it complains that it can't find source file as such: http://i46.tinypic.com/fci1le.jpg

When this happens, if I wait for a while, it will suddenly jump to beginning of main, but something is already wrong. The execution will stop, and before that seems awfully slow.

 

In my initialization code I blink both leds with rapid speed to show that device is ready, but in this case the blinking is really slow, and actually it only blinks once.. and then execution seems to hang and leds stay on.. Any ideas what might be wrong ?

 

Please let me know if I can help you with debugging...

 

Share this post


Link to post
Share on other sites

xpg,

 

Once again thanks a lot for your work!

Thank you.

 

I have one question, maybe you can help me with.

 

I am running 64bit Ubuntu, with your pre-compiled toolset.

Running code normally on MSP is all ok, but now very often I have issues starting the debugger, it complains that it can't find source file as such: http://i46.tinypic.com/fci1le.jpg

When this happens, if I wait for a while, it will suddenly jump to beginning of main, but something is already wrong. The execution will stop, and before that seems awfully slow.

 

In my initialization code I blink both leds with rapid speed to show that device is ready, but in this case the blinking is really slow, and actually it only blinks once.. and then execution seems to hang and leds stay on.. Any ideas what might be wrong ?

 

Please let me know if I can help you with debugging...

 

I can't recall that I have experienced that. I will try and reproduce it. Anything that causes this to be triggered more often?

 

Cheers,

Paul

Share this post


Link to post
Share on other sites

No not really. Actually I have only noticed now with my fresh install of 12.10 Ubuntu. On my old setup it was ok (however, didn't change,conly the underlying ssd got bigger).

But this happens frequently now. Once it happens once, it will keep happening every time, even restarting eclipse. I suppose this points to external issue? Maybe I should try learning how to use mspdebug manually, to see if it happens there...

Let me see if I can come up with any better leads tomorrow (it's past midnight already)

 

Oh one more thing came to mind. I always have 2 complaints in the "problem" box. One is complaining that project_name.elf is not found and another complains about main.o

The code compiles, elf is created and upload to target works every time, though. Especially the normal upload and execute, I have yet to ever see it fail..

Share this post


Link to post
Share on other sites

I just wanted to say thank you for this plugin! I have spent hours upon hours trying to get a decent debugging thing going on with ubuntu and my msp430, and was met with constant frustration with outdated guides, incomplete instructions, and missing files. And now, in just a minute or two of actual work, I got a eclipse with functioning debugging working on both windows and a ubuntu virtual machine. I cannot thank you enough!
 
Because of your efforts, my tiny hand soldered board, as seen here if you are curious, will continue development, debugging intact!

Share this post


Link to post
Share on other sites

I just wanted to say thank you for this plugin! I have spent hours upon hours trying to get a decent debugging thing going on with ubuntu and my msp430, and was met with constant frustration with outdated guides, incomplete instructions, and missing files. And now, in just a minute or two of actual work, I got a eclipse with functioning debugging working on both windows and a ubuntu virtual machine. I cannot thank you enough!

 

Because of your efforts, my tiny hand soldered board, as seen here if you are curious, will continue development, debugging intact!

Thank you. Good to hear that the tool helped you.

 

Nice soldering job!

 

Cheers,

Paul

Share this post


Link to post
Share on other sites

I am working with Windows 8 and have installed the eclipse plugin and the mspgcc toolchain. I then created a very simple msp430 project which I know to be error free. This compiles correctly reporting no errors. If I then insert an extra line of code which has errors the errors are reported correctly. If I now remove this line of code so that the code is back to the error free version and compile I always get the error make ***[main.o]Error 1. Has anybody got any suggestions?

Share this post


Link to post
Share on other sites

I am working with Windows 8 and have installed the eclipse plugin and the mspgcc toolchain. I then created a very simple msp430 project which I know to be error free. This compiles correctly reporting no errors. If I then insert an extra line of code which has errors the errors are reported correctly. If I now remove this line of code so that the code is back to the error free version and compile I always get the error make ***[main.o]Error 1. Has anybody got any suggestions?

 

Hi,

Have you tried cleaning the project? It shouldn't be necessary, but it might hint us about the problem.

Could you post a minimal example of how this can be reproduced?

 

Cheers,

Paul

Share this post


Link to post
Share on other sites

Hi,

Have you tried cleaning the project? It shouldn't be necessary, but it might hint us about the problem.

Could you post a minimal example of how this can be reproduced?

 

Cheers,

Paul

I have tried cleaning the project but does not remove the error. The very simple program is shown below together with the error report.

regards,

Peter

 

/*

 * main.c

 * PmfTrial9

 *

 *  Created on: 23 Mar 2013

 *      Author: Peter

 */

#include <msp430x16x.h>

int main(void){

 volatile unsigned int i;

 WDTCTL = WDTPW | WDTHOLD; //stop WDT

 P1DIR |= 0x01;    //set P1.0 to output direction

 while(1){

  i += 1;

 }

}

 

Description Resource Path Location Type

make: *** [main.o] Error 1              C/C++ Problem

make: [clean] Error 1 (ignored)     C/C++ Problem

 

Share this post


Link to post
Share on other sites

I have tried cleaning the project but does not remove the error. The very simple program is shown below together with the error report.

regards,

Peter 

[...]

 

Description Resource Path Location Type

make: *** [main.o] Error 1              C/C++ Problem

make: [clean] Error 1 (ignored)     C/C++ Problem

 

 

You I ask you to export the failed project to a zip file? Right-click the project, press "Export..." choose General->Archive File.

 

Cheers,

Paul

Share this post


Link to post
Share on other sites

Just wanted to let you know that I have uploaded a new toolchain (linux 64-bit only for now) which includes preleminary support for the MSP430G2599 & friends: http://xpg.dk/files/File/msp430/msp430-toolchain-linux-amd64-3.0.tar.bz2

 

Hopefully I will have some Windows-time soon to compile a new toolchain (and look into some of the issues that have been reported with Windows).

 

Cheers,

Paul

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×