Jump to content
43oh

Eclipse plugin for mspdebug and msp430-gcc


Recommended Posts

I just came home, made coffee, got me a big pot and a cigarette and was thinking of you and the plugin. Powered the PC - notification of your post here. LOL :smile:

 

I have eclipse-cdt installed too. I think you're talking about the package at eclipse.org. Same there, but I will try from scratch again.

 

Is your plugin open source ? I mean, I've just started learning Java but maybe I stumble over the problem by accident...

How do you get the list of supported MCUs ? This seems to fail.

 

Thanks for coming back, I'll do some testing next weekend and report here.

 

Stephan

Link to post
Share on other sites
  • 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

I just came home, made coffee, got me a big pot and a cigarette and was thinking of you and the plugin. Powered the PC - notification of your post here. LOL :smile:

:-)

 

I have eclipse-cdt installed too. I think you're talking about the package at eclipse.org. Same there, but I will try from scratch again.

I wouldn't expect this to be causing any trouble. However, I cannot see what should be causing trouble at all, so it must be something that I find unlikely :-)

 

Is your plugin open source ? I mean, I've just started learning Java but maybe I stumble over the problem by accident...

How do you get the list of supported MCUs ? This seems to fail.

Yes, the plugin is available at gitorious: https://www.gitorious.org/msp430eclipse/msp430eclipse

It's not the prettiest code around, so feel free to ask questions about it.

 

The list of supported MCUs is extraced from the linker scripts from GCC. The code can be found here. It's not a particular elegant way of doing it, but it -- usually -- works.

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

Hello everyone!

 

I'm new to ubuntu, new to eclipse and new to linking toolchains and libraries. So I guess thats the worst combo possible.

 

I've

-downloaded and unpacked the package msp430-toolchain-linux-amd64-3.0.tar.bz2

-downloaded unpacked and run eclipse indigo

 

while trying to merge it together like in: http://youtu.be/XWz_vpkP5QI?t=48s

I was not albe to choose MSP430 Linux 64-bit GCC toolchain.

Thus I have only system tools option in: http://youtu.be/XWz_vpkP5QI?t=2m23s

Or I can browse dirs.

 

Will I get any help here?

Thanks

Link to post
Share on other sites

-downloaded unpacked and run eclipse indigo

while trying to merge it together like in: http://youtu.be/XWz_vpkP5QI?t=48s

I was not albe to choose MSP430 Linux 64-bit GCC toolchain.

Thus I have only system tools option in: http://youtu.be/XWz_vpkP5QI?t=2m23s

Or I can browse dirs.

So, first off, the video is somewhat obsolete. I should probably replace it with a new one.

Toolchains are no longer installed through eclipse. You are supposed to extract the toolchain somewhere and tell eclipse about it:

From the menu in Eclipse select MSP430->Tool Manager. Click the "Add..."-button, and browse to the tool-package directory. Select the tool-chain and press the "Activate"-button in order to tell Eclipse to use it.

 

Let me know if that works for you.

 

Cheers,

Paul

Link to post
Share on other sites

in Eclipse select MSP430->Tool Manager. Click the "Add..."-button, and browse to the tool-package directory. Select the tool-chain and press the "Activate"-button

Excuse me sir, but where do I find tool-package directory or even tool-chain file? In my msp430-toolchain-linux-amd64-3.0 folder there are no such objects.

 

Cheers,

MK

Link to post
Share on other sites

Excuse me sir, but where do I find tool-package directory or even tool-chain file? In my msp430-toolchain-linux-amd64-3.0 folder there are no such objects.

The idea is that the msp430-toolchain-linux-amd64-3.0 folder is the tool-package directory. It should contain a file named "tool.info".

So, if you have extracted the zip file to $HOME/msp430-toolchain-linux-amd64-3.0, then simply choose that directory when adding the toolchain in the toolchain manager.

Link to post
Share on other sites

Have you had a look at the Red Hat GCC provided by TI yet? I've tried adding its toolchain to msp430 eclipse plugin, but when creating new projects, the target configuration window only shows "Other" msp430 family. Hence there's no way for me to choose msp430g2553 device.

I have not yet tried out the Red Hat toolchain. But I'm not surprised that the device list will not populate: The way I extract the list from the toolchain is quite ugly and very dependent on the way the mspgcc toolchain works.

How is the Red Hat toolchain compared to the old mspgcc one? Is it ready for prime time yet?

 

I'll put it on my todo list to check it out.

 

Cheers,

Paul

Link to post
Share on other sites

It seems to be more promising and "official" than mspgcc; afaik RH GCC has been sent upstream to gcc 4.9. You can find a review from TI E2E community here.

However, some TI intrinsics and macros are still unsupported.

Another problem worth mentioning: I'm unable to access project properties when right-clicking "MSP430 GCC Cross Application" project in ccsv6 beta 4. I don't know whether this is eclipse's bug or your plugin's problem :(

Link to post
Share on other sites

Have you had a look at the Red Hat GCC provided by TI yet? I've tried adding its toolchain to msp430 eclipse plugin, but when creating new projects, the target configuration window only shows "Other" msp430 family. Hence there's no way for me to choose msp430g2553 device.

Wait, that's exactly my problem. Does debian ship the RedHat one ? How can I tell one from the other ?

Link to post
Share on other sites

@@OppaErich The RH stuff has a different prefix, pretty easy to see the difference msp430-elf-gcc vs msp430-gcc.

 

@op Right now it seems to make sense to just use CCS 6 Beta if you are interested in trying the RH version of msp430 gcc.  CCS 6 is closer to a standard eclipse distribution than the previous versions.  Why flog yourself trying to mix and match?

 

-rick

Link to post
Share on other sites

Well, for some reason this is working now. Still siduction but a fresh install - I bought a SSD.  B)

Uhh. I am very happy to hear that. Although I have no clue what was wrong... oh well, let's just hope that it keeps working :-)

 

Cheers,

Paul

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

But I'm not surprised that the device list will not populate: The way I extract the list from the toolchain is quite ugly and very dependent on the way the mspgcc toolchain works.

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?

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...