Friday, January 4, 2013

TI MSP430 Launchpad in gentoo linux

Getting started with the MSP430 launchpad in gentoo is pretty straightforward, once you've dug through some documentation. Here's some instructions that should get you up and running.
  1. emerge crossdev

  2. NOTE: Only perform steps 2 and 3 if you do not already have an overlay setup

  3. mkdir /usr/local/portage

  4. add PORTDIR_OVERLAY="/usr/local/portage" to /etc/make.conf

  5. NOTE: Only perform steps 4-6 if /etc/portage/package.env is a file rather than a directory on your system. Also note that the string "x86_64-pc-linux-gnu" needs to match the architecture of your system, which you can find by running gcc -v and checking the string labeled "Target"

  6. mv /etc/portage/package.env /etc/portage/package.env.bak

  7. mkdir /etc/portage/package.env

  8. mv /etc/portage/package.env.bak /etc/portage/package.env/x86_64-pc-linux-gnu

  9. crossdev -s4 -t msp430

  10. -s4 means stage 4 which will build a full gcc, libc,kernel header, and binutils This command will also create /usr/msp430/etc/portage/make.conf which I believe will control how any future msp430 specific packages get emerged.

  11. crossdev --ex-only --ex-gdb -t msp430

  12. Now that you have got gcc going, this command will build just gdb without redoing all the other 4 stages(libc,gcc,etc.)

  13. emerge mspdebug

  14. msp430-gcc -mmcu=msp430g2553 blink.c

  15. Scroll down to the end of this post to find the source code for blink.c Note that my launchpad came prepopulated with a msp430g2553 in the DIP socket, you will want to check what yours came with and set the -mmcu parameter accordingly. The model number is printed on the top of the microcontroller.

  16. sudo mspdebug rf2500

  17. This command will start the debugger which will spew out a bunch of output before displaying a prompt that looks like this:
    (mspdebug)

  18. (mspdebug) prog a.out
  19. Note that you only type the text in bold in the command above, (mspdebug) is just the prompt that is displayed on screen.
  20. hit Ctrl+D to quit the debugger
  21. The microcontroller will start executing code, in this case blinking LED1, LED2 is attached to P1.6

61 comments:

  1. for beginners like me need a lot of reading and searching for information on various blogs. and articles that you share a very nice and inspires me .
    cara menggugurkan kandungan
    obat telat datang bulan
    obat aborsi
    cara menggugurkan kandungan
    obat telat bulan
    obat penggugur kandungan

    ReplyDelete
  2. This is a very good article material and it is very useful for us all. thank you . cara menggugurkan kandungan

    ReplyDelete
  3. Coach Handbags Outlet are usually viewed as luxurious brands, but yet at inexpensive price.
    Today most people looking for COACH accessories will look for them at Coach Bags Factory Outlet.
    Coach Sale are just the most inexpensive items to purchase through Coach Purses Outlet, a small change purse or Cheap Coach Purses.
    Coach Bags On Sale are a fun accessory to add to a new collection.
    Coach Bags Outlet is can be carried or slipped over your shoulder.
    Authentic MK Outlet are made of high grade quality leather and Michael Kors Factory Outlet can actually have real leather on them.
    Michael Kors Purse Sale usually come with a plate bearing the MK Outlet logo to distinguish it from other Cheap Michael Kors Purses.
    Michael Kors Outlet Online have the inherent ability to capture the essence of what women like and what they want to wear and utilize.
    Michael Kors Outlet Store are a symbol of feminine elements and speak for all kinds of women.
    Michael Kors Purses On Sale of the day vary greatly, but all seem to share one characteristic, they are popular!

    ReplyDelete
  4. Both things are possible if you carry Michael Kors Handbags Wholesale. If you are a woman who goes for innovative designs, a designer Michael Kors Bags On Sale is perfect for you. Offering a huge selection of chic purses, handbags, shoes and accessories, Michael Kors Outlet Online Store celebrates womanhood in an entirely unique way. Michael Kors Factory Outlet Online Store At Wholesale Price are one of the most sought-after handbags worldwide. We all agree that diamonds are a woman's best friend; however Official Coach Factory Outlet Online are absolutely next in line. To Coach Outlet Sale aficionados, don't fret because we have great news: a discount Official Coach Outlet Online isn't hard to find. If you are a smart shopper looking for a good buy and great deals on your next handbag purchase, you can go to Official Coach Outlet Online.

    Friendly Links: Toms Shoes Womens | Toms Clearance

    ReplyDelete
  5. It is perfect time to make some plans for the future and it is time to be happy. I’ve read this post and if I could I desire to suggest you few interesting things or tips. Perhaps you could write next articles referring to this article. I want to read more things about it! 먹튀검증

    ReplyDelete
  6. definately enjoy every little bit of it and I have you bookmarked to check out new stuff of your blog a must read blog! 먹튀검증커뮤니티

    ReplyDelete
  7. hi was just seeing if you minded a comment. i like your website and the thme you picked is super. I will be back 먹튀

    ReplyDelete
  8. This is really a nice and informative, containing all information and also has a great impact on the new technology. Thanks for sharing it, buy website traffic

    ReplyDelete
  9. Great post i must say and thanks for the information. Education is definitely a sticky subject. However, is still among the leading topics of our time. I appreciate your post and look forward to more. 토토사이트

    ReplyDelete
  10. Hahaha, good, good. The writing is interesting.토토사이트 Look at my writing.

    ReplyDelete
  11. Hello, I'm happy to see some great articles on your site. Would you like to come to my site later? My site also has posts, comments and communities similar to yours. Please visit and take a look 메이저놀이터

    ReplyDelete
  12. Looking at this article, I miss the time when I didn't wear a mask. Kèo nhà cái Hopefully this corona will end soon. My blog is a blog that mainly posts pictures of daily life before Corona and landscapes at that time. If you want to remember that time again, please visit us.

    ReplyDelete
  13. Excellent read, I just passed this onto a friend who was doing a little research on that. And he actually bought me lunch as I found it for him smile Therefore let me rephrase that: Thank you for lunch. 먹튀신고

    ReplyDelete
  14. ou need to be a part of a contest for one of the highest quality sites on the 토토사이트. I most certainly will recommend this site!

    ReplyDelete
  15. Thanks for your marvelous posting! I actually enjoyed reading it, you could be
    a great author.I will remember to bookmark your blog and will
    eventually come back from now on. I want to encourage you to continue your great
    writing, have a nice weekend!ブルレクジェク

    ReplyDelete
  16. Thanks for your marvelous posting! I actually enjoyed reading it, you could be
    a great author.I will remember to bookmark your blog and will
    eventually come back from now on. I want to encourage you to continue your great
    writing, have a nice weekend!

    Website:바카라사이트


    ReplyDelete
  17. Wow, this piece of writing is pleasant, my younger sister is analyzing these things,
    thus I am going to inform her.출장안마


    ReplyDelete
  18. Of course, your article is good enough, Tàixỉu but I thought it would be much better to see professional photos and videos together. There are articles and photos on these topics on my homepage, so please visit and share your opinions.

    ReplyDelete
  19. This is actually the kind of information I have been trying to find. Thank you for writing this information. 슬롯사이트

    ReplyDelete
  20. I have been looking for articles on these topics for a long time. Kèobóngđá I don't know how grateful you are for posting on this topic. Thank you for the numerous articles on this site, I will subscribe to those links in my bookmarks and visit them often. Have a nice day.

    ReplyDelete
  21. Hi! This is my first visit to your blog! We are a team of volunteers and new initiatives in the same niche. Blog gave us useful information to work. You have done an amazing job! 메이저토토사이트 Thank you very much. Can I refer to your post on my website? Your post touched me a lot and helped me a lot. If you have any questions, please visit my site and read what kind of posts I am posting. I am sure it will be interesting.

    ReplyDelete
  22. Recently, I have started to read a lot of unique articles on different sites, and I am enjoying that a lot. Although, I must tell you that I still like the articles here a lot. They are also unique in their own way. 안전놀이터추천

    ReplyDelete
  23. Thanks for the blog filled with so many information. Stopping by your blog helped me to get what I was looking for. Now my task has become as easy as ABC. 메이저안전놀이터

    ReplyDelete
  24. Amazing article..!! Thank you so much for this informative post. I found some interesting points and lots of information from your blog. Thanks 토토커뮤니티

    ReplyDelete
  25. First of all, thank you for your post. Your posts are neatly organized with the information I want, so there are plenty of resources to reference. I bookmark this site and will find your posts frequently in the future. Thanks again ^^ phimsex

    ReplyDelete
  26. This post is really magnificent. I really like this post. It is one of the best posts that I ve read in a long time. Thanks a lot for this really good post. I really appreciate it 메이저토토

    ReplyDelete
  27. Your ideas inspired me very much. 메이저안전놀이터 It's amazing. I want to learn your writing skills. In fact, I also have a website. If you are okay, please visit once and leave your opinion. Thank you.

    ReplyDelete
  28. I'm writing on this topic these days, keonhacai, but I have stopped writing because there is no reference material. Then I accidentally found your article. I can refer to a variety of materials, so I think the work I was preparing will work! Thank you for your efforts.

    ReplyDelete
  29. You have wonderful composing abilities. I'm so satisfied to locate the very same subject I have actually been trying to find. Everybody is offering me a great deal of praises today. You're outstanding. As an author, you're so trendy due to the fact that you're such a fantastic author. Why do not you come as well as see my blog post? 바카라사이트

    ReplyDelete
  30. This is a fantasy article Thanks for sharing this informative information. will visit your blog regularly for some latest posts..traveling to Turkey from Canada. Turkey Visa is an electronic visa that allows entry into Turkey. Once available, eligible foreigners will be able to complete the online application process without visiting an embassy or consulate.

    ReplyDelete
  31. I finally found great post here. Thanks for the information. Please keep sharing more articles.
    토토

    ReplyDelete
  32. I found this article on this site while looking for an article on this topic. Reading your post made me feel like an expert in this field. There are several articles on these topics posted on my site. Please visit my website once. 메리트카지노

    ReplyDelete
  33. As I am looking at your writing, 우리카지노 I regret being unable to do outdoor activities due to Corona 19, and I miss my old daily life. If you also miss the daily life of those days, would you please visit my site once? My site is a site where I post about photos and daily life when I was free.


    ReplyDelete
  34. Hi there, I simply hopped over in your website by way of StumbleUpon. Now not one thing I’d typically learn, but I favored your emotions none the less. Thank you for making something worth reading. 메이저사이트순위

    ReplyDelete
  35. This is the perfect post.메이저토토사이트 It helped me a lot. If you have time, I hope you come to my site and share your opinions. Have a nice day.

    ReplyDelete
  36. What I was thinking about was solved thanks to your writing. I have written on my blog to express my gratitude to you.메리트카지노My site is We would be grateful if you visit us.


    ReplyDelete
  37. It's such meaningful content. So nice words you are saying . I feel so glad to read it. I suggest that people read it once. it's really helpful also check out how to apply on Indian business visa application for the foreigners who want to visit in India to the purpose of business meeting, startup, seminar , sale/purchase etc.

    ReplyDelete
  38. I'm looking for a lot of data on this topic. The article I've been looking for in the meantime is the perfect article. Please visit my site for more complete articles with him! casino trực tuyến

    ReplyDelete
  39. That's a great article! The neatly organized content is good to see. Can I quote a blog and write it on my blog? My blog has a variety of communities including these articles. Would you like to visit me later? 메이저안전놀이터

    ReplyDelete
  40. I always think about what is. It seems to be a perfect article that seems to blow away such worries. 온카지노 seems to be the best way to show something. When you have time, please write an article about what means!!

    ReplyDelete
  41. What a post I've been looking for! I'm very happy to finally read this post. 안전놀이터 Thank you very much. Can I refer to your post on my website? Your post touched me a lot and helped me a lot. If you have any questions, please visit my site and read what kind of posts I am posting. I am sure it will be interesting.

    ReplyDelete
  42. In my opinion, the item you posted is perfect for being selected as the best item of the year. You seem to be a genius to combine 우리카지노 and . Please think of more new items in the future!

    ReplyDelete
  43. This is a great inspiring article.I am pretty pleased with your good work 토토사이트

    ReplyDelete
  44. Appreciate it for helping out, excellent info. 온라인경마

    ReplyDelete
  45. Thanks for this great post, I find it very interesting and very well thought out and put together. 파친코사이트

    ReplyDelete
  46. thanks for sharing great blog article.Thanks Again 스포츠토토

    ReplyDelete
  47. It looks like I have been to this site before, but after reading some of the post I realized it is new to me. Regardless, I'm glad I found it and I will be returning soon. Apply for Indian visa application via online evisa India website.

    ReplyDelete
  48. Hi there! I thought I've been to this site before, but upon reading some of the content I realized it's brand new to me. Nonetheless, I'm definitely glad I found it and I'll be bookmarking and checking back often Apply for Indian visa application via the online evisa India website.

    ReplyDelete
  49. MEGA JACKPOT on NEW Dragon Spell Live! 카지노커뮤니티 Maryland

    ReplyDelete
  50. ALL YOU NEED TO KNOW ABOUT " 바둑이사이트 " in Black Ops 3 *ONLY USABLE FOR 60 MINUTES*

    ReplyDelete
  51. On our final rely, 카지노사이트 we noticed over a hundred and eighty video games here, together with – naturally – a host of slots video games . Maximum stakes are, nonetheless, a tad low at Big Spin Casino, with Player and Banker bets being capped at $100, and tie bets capped at $50. For leisure players, in fact, that isn’t bad in any respect. MyB Casino fares well general when it comes to of|in relation to} sport selection.

    ReplyDelete