OppaErich 25 Posted January 6, 2014 Share Posted January 6, 2014 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 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 Quote Link to post Share on other sites
xpg 127 Posted January 6, 2014 Author Share Posted January 6, 2014 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 :-) 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. Quote Link to post Share on other sites
lipnica 0 Posted March 16, 2014 Share Posted March 16, 2014 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 Quote Link to post Share on other sites
xpg 127 Posted March 16, 2014 Author Share Posted March 16, 2014 -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 Quote Link to post Share on other sites
lipnica 0 Posted March 17, 2014 Share Posted March 17, 2014 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 Quote Link to post Share on other sites
xpg 127 Posted March 17, 2014 Author Share Posted March 17, 2014 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. Quote Link to post Share on other sites
longcao 0 Posted March 20, 2014 Share Posted March 20, 2014 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. Quote Link to post Share on other sites
xpg 127 Posted March 20, 2014 Author Share Posted March 20, 2014 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 Quote Link to post Share on other sites
longcao 0 Posted March 20, 2014 Share Posted March 20, 2014 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 Quote Link to post Share on other sites
OppaErich 25 Posted March 20, 2014 Share Posted March 20, 2014 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 ? Quote Link to post Share on other sites
Rickta59 589 Posted March 20, 2014 Share Posted March 20, 2014 @@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 Quote Link to post Share on other sites
OppaErich 25 Posted March 21, 2014 Share Posted March 21, 2014 No elf in the name. I found a comment by Peter Bigot in the copyright file, so this looks good. Sadly though, it would have been an explanation for my problems. Cheers @@Rickta59 Quote Link to post Share on other sites
Oppa 1 Posted March 21, 2014 Share Posted March 21, 2014 Well, for some reason this is working now. Still siduction but a fresh install - I bought a SSD. Quote Link to post Share on other sites
xpg 127 Posted March 21, 2014 Author Share Posted March 21, 2014 Well, for some reason this is working now. Still siduction but a fresh install - I bought a SSD. 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 Quote Link to post Share on other sites
314pe 0 Posted June 28, 2014 Share Posted June 28, 2014 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? Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.