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

22 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. 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
  3. 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
  4. 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
  5. 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
  6. 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
  7. Wow, this piece of writing is pleasant, my younger sister is analyzing these things,
    thus I am going to inform her.출장안마


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

    ReplyDelete
  9. 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
  10. 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
  11. 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
  12. 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
  13. 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
  14. MEGA JACKPOT on NEW Dragon Spell Live! 카지노커뮤니티 Maryland

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

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