Jump to content
43oh

Eclipse plugin for mspdebug and msp430-gcc


Recommended Posts

I have the same problem, different naming of files in the ldscripts folder broke this. Also, I needed to add a link to a new gcc executable. I don't know how would the plugin find the new gcc otherwise.

 

Could anyone help me understand how these gcc linkers work? How does gcc map mcu name (from -mmcu= parameter?) to an ldscript file and why are there multiple files with the same name but different extensions? Sorry, I know Java, but not C and especially not GCC internal workings. Here's how my ldscripts directory (from the new msp430 gcc) looks like: http://pastebin.com/TDxeFEha

From what I understand, mcu names don't match 1 to 1 with ldscript files anymore. Any ideas about how this could be fixed?

 

Basically, we just need a proper way to extract the possible -mmcu values. When I created the plugin I didn't find any way to do that, so I ended up extracting the information from the ldscripts, which happened to match the -mmcu  values. But it was a hack.

It is fairly easy to replace the current mechanism with something else, given that there is a good way to extract the support devices.

Unfortunately, I don't have time to look into this myself at this point. However, if someone comes up with a way to get the mcu list from gcc I'll implement it :-)

Link to post
Share on other sites
  • 3 months later...
  • Replies 249
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

Hi guys, I've finally hacked together a plugin for Eclipse that allows the msp430-gcc toolchain to be used from within Eclipse more easily. I must warn you that this is by no means finished, but I wa

It's seem that I finally succeeded in building a plugin for Eclipse, which contains compiled versions of GCC, GDB, and mspdebug, and also integrates these somewhat into Eclipse. Currently, I would str

I finally managed to get time to make a new release of the MSP430Eclipse plugin. As previously, it is available from http://eclipse.xpg.dk via the Eclipse "install new software" dialog. There are two

Posted Images

Hello all!

 

I'm new to Linux Mint 17, Eclipse and to linking toolchains and libraries. Although I have been using CCS5 under Windows XP for a few years.

 

I've

-downloaded and unpacked the package msp430-toolchain-linux-i386-2.1.tar.bz2

-downloaded unpacked and run Eclipse Luna

-Installed the http://eclipse.xpg.dk/ patch into Eclipse

 

My platform is the MSP430G series Launchpad that I'm using in the SBW mode to work with a MSP430F5172 project of mine.

My problem is that I'm unable to load the program into the F5172 board. I am able to load a program into a MSP430G2553 no problem and am able to load the F5172 program when using CCS5 under Windows XP (I have a Win VM in my Linux Mint machine).

When I choose the "rf2500" platform, I get the following error:

 

Args: [/opt/msp430-toolchain-linux-i386-2.1/bin/mspdebug-wrapper, rf2500, prog /home/jim/workspace/UCS_Test/Debug/UCS_Test.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.

Trying to open interface 1 on 006
Initializing FET...
FET protocol version is 30066536
Configured for Spy-Bi-Wire
Set Vcc: 3000 mV
Device ID: 0x3080
msg28_data: [0x1a bytes]
    30 80 30 10 08 0a b2 5b 94 46 19 00 04 00 f8 fe
    de ee 91 04 11 00 1a 00 04 05
fet: unknown device
fet: identify failed
Trying again...
Initializing FET...
FET protocol version is 30066536
Configured for Spy-Bi-Wire
Sending reset...
Set Vcc: 3000 mV
Device ID: 0x3080
msg28_data: [0x1a bytes]
    30 80 30 10 08 0a b2 5b 94 46 19 00 04 00 f8 fe
    de ee 91 04 11 00 1a 00 04 05
fet: unknown device
fet: identify failed
 

So it's not recognizing the F5172 signature.

 

If I select the "tilib" platform, I get an error window saying the file libmsp430.so file cannot be found. I have located a copy of this file but don't know which directory to put it in? ... and if this will work or not?  I have read the post about the Olimex platform supporting the F5172 with a possible workaround but it involves recompiling a fet_core.c file after making changes to it but I don't know how to do that.

 

Anyone know what I can do besides going back to CCS5 on Windows?

Thanks

Jim

Link to post
Share on other sites

Hello all!

 

I'm new to Linux Mint 17, Eclipse and to linking toolchains and libraries. Although I have been using CCS5 under Windows XP for a few years.

 

I've

-downloaded and unpacked the package msp430-toolchain-linux-i386-2.1.tar.bz2

-downloaded unpacked and run Eclipse Luna

-Installed the http://eclipse.xpg.dk/ patch into Eclipse

 

My platform is the MSP430G series Launchpad that I'm using in the SBW mode to work with a MSP430F5172 project of mine.

My problem is that I'm unable to load the program into the F5172 board. I am able to load a program into a MSP430G2553 no problem and am able to load the F5172 program when using CCS5 under Windows XP (I have a Win VM in my Linux Mint machine).

Anyone know what I can do besides going back to CCS5 on Windows?

Thanks

Jim

 

Hi Jim,

 

This is caused by an old version of mspdebug bundled with the msp430-toolchain.

I will try to get some time to rebuild the pre-build toolchain to include a newer version of mspdebug.

 

Cheers,

Paul

Link to post
Share on other sites

Hi Jim,

 

This is caused by an old version of mspdebug bundled with the msp430-toolchain.

I will try to get some time to rebuild the pre-build toolchain to include a newer version of mspdebug.

 

Cheers,

Paul

Paul,

Thanks! No real hurry now as I have worked around this issue... I acquired a MSP430FR5969 Launchpad with a newer FET emulator. I then installed CCS6 on my Linux Mint machine. Using this newer Launchpad as a SBW host to my F5172 board (same as I did with the value-line Launchpad), I am now able to run and debug my application on it via CCS6.

Thanks again!

Link to post
Share on other sites
  • 2 weeks later...

Paul,

Thanks! No real hurry now as I have worked around this issue... I acquired a MSP430FR5969 Launchpad with a newer FET emulator. I then installed CCS6 on my Linux Mint machine. Using this newer Launchpad as a SBW host to my F5172 board (same as I did with the value-line Launchpad), I am now able to run and debug my application on it via CCS6.

Thanks again!

This scheme has only been partly successful! The F5172 program compiles and loads into the device fine but the debugger does not work well. I've had to resort back to the CCS5.4 app under the VirtualBox VM on my Linux machine to have any success here.

Link to post
Share on other sites

This scheme has only been partly successful! The F5172 program compiles and loads into the device fine but the debugger does not work well. I've had to resort back to the CCS5.4 app under the VirtualBox VM on my Linux machine to have any success here.

 

Thanks for the updates. That sounds somewhat annoying. I'll try to allocate some time to rebuild the tools so that you can give Eclipse and the MSP430 plugin a try.

(I'm just really busy these days, but I'll get around doing it :-))

 

Cheers,

Paul

Link to post
Share on other sites
  • 2 months later...
  • 8 months later...

Hi

I realize that this topic is a little old but I hope that someone will be able to help me. I installed toolchain and eclipse both on a mac and windows. Everything was going great until I come to a point where i have to activate msp 430 toolchain. I tried on both systems with 32bit and 64bit versions and different location of the toolchain folder. Whenever I create a new project and go to preferences I cannot display the list of MCUs. It's just empty. Is there any solution to the problem? Can anyone help?

 

 

Best Regards

Robert 

Link to post
Share on other sites
  • 5 months later...

Hi,

 

Does this plugin work with the TI version of the MSP430GCC compiler?

 

Thanks in advance.

Hi,

 

I'm not quite sure. It haven't used the plugin myself for a long time myself.

It has generally been far too long since I've had time to do anything with an MSP430 chip (which is also why I haven't really been active in here).

 

But if you try it out please let me know how it goes.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...