Jump to content


Photo

Launchpad as external programmer


  • Please log in to reply
74 replies to this topic

#1 moderboy

moderboy

    Member

  • Members
  • PipPip
  • 17 posts
  • LocationHungary, Central Europe

Posted 24 January 2011 - 05:07 PM

Hello guys!

I need help with the launchpad. I've read the datasheets and manuals but it's still not clear to me that how can I use it to program a uC for example on my breadboard. I dont want to remove it and place into launchpad every time. Can somebody please tell me which pins I have to connect to program the external chip and do i have the remove the one in the launchpad or can i program 2 at a time?


Thanks!
And greetings from Hungary :)

#2 gatesphere

gatesphere

    Level 3

  • Members
  • 430 posts

Posted 24 January 2011 - 07:04 PM

Hello guys!

I need help with the launchpad. I've read the datasheets and manuals but it's still not clear to me that how can I use it to program a uC for example on my breadboard. I dont want to remove it and place into launchpad every time. Can somebody please tell me which pins I have to connect to program the external chip and do i have the remove the one in the launchpad or can i program 2 at a time?


Thanks!
And greetings from Hungary :)

I haven't done this myself, but it seems to me that you have to connect Vcc and GND, and also at least RST and TEST. I'm not sure about TXD (P1.1) and RXD (P1.2), as I think they're only used for UART comm with the host PC. But, it couldn't hurt to attach them, unless you're using them in your circuit.

The easiest way to program a chip in your breadboard from the launchpad would be to simply leave all the jumpers on at the top of the board, and connect to the proper pins of the chip on the breadboard by using jumper wires into the socket on the LaunchPad. The holes might be a bit tough to get jumpers in initially, but they'll eventually go in.

Hope this helps!
  • boseji and Dimiric like this
MSPhere - a framework of functions for rapid prototyping with the LaunchPad platform
My other pages: home page/portfolio || development blog

#3 emit

emit

    Noob Class

  • Members
  • 3 posts

Posted 24 January 2011 - 07:37 PM

I haven't done this myself, but it seems to me that you have to connect Vcc and GND, and also at least RST and TEST. I'm not sure about TXD (P1.1) and RXD (P1.2),


I use it this way and it works. Only need to connect the first four. see spy-bi-wire pdf for details. oh and i leave the dip socket empty. I don't know if you can do two at a time.

#4 moderboy

moderboy

    Member

  • Members
  • PipPip
  • 17 posts
  • LocationHungary, Central Europe

Posted 24 January 2011 - 11:40 PM

Thanks for the answers! I think than the RESET and other legs are for debugging.

#5 OCY

OCY

    Level 1

  • Members
  • 65 posts

Posted 25 January 2011 - 12:02 AM

The RST and TEST are the two signals you need to do programming or debugging. And you always need Vcc and Vss no matter what you do.

#6 GeekDoc

GeekDoc

    Level 4

  • Members
  • 1,394 posts
  • LocationO'Fallon, Illinois (St. Louis Metro area)
  • Sparkfun Wishlist


Posted 25 January 2011 - 02:01 AM

And don't forget, you probably have pin 10 (RST) on the MSP430 tied high in your circuit. You'll have to "untie" that so you can reprogram the chip.
  • gatesphere likes this

Public Service Announcement: I am a microcontroller / electronics noob! I should usually be quietly ignored or patiently instructed.
http://blog.DocsTech.net


#7 gatesphere

gatesphere

    Level 3

  • Members
  • 430 posts

Posted 25 January 2011 - 04:56 AM

And don't forget, you probably have pin 10 (RST) on the MSP430 tied high in your circuit. You'll have to "untie" that so you can reprogram the chip.

Forgot to mention that. Thanks for that, Doc!
MSPhere - a framework of functions for rapid prototyping with the LaunchPad platform
My other pages: home page/portfolio || development blog

#8 NJC

NJC

    Level 1

  • Members
  • 110 posts

Posted 28 January 2011 - 07:04 PM

The RST and TEST are the two signals you need to do programming or debugging. And you always need Vcc and Vss no matter what you do.


You actually don't need Vcc if the chips is powered externally. More accurately, you do not want to use the Vcc of the LaunchPad if you are powering the chip externally. Two power supplies fighting ends terribly. You need the ground though in order to provide a reference for the 2 programming signals.

Example: For an MSP430 hooked up on a breadboard with RST tied to VCC via a resistor (47k), and powered by 2xAA batteries, you only need to connect the GND, the RST, and TEST pins in order to program the chip.
http://msp430launchpad.com - a blog for getting started with the MSP430.

#9 bluehash

bluehash

    Site Admin

  • Administrators
  • 6,429 posts

Posted 17 May 2011 - 08:11 PM

Moved to "Programmers and Debuggers" + Made sticky.

43oh - MSP430, TivaC, ARM-Sitara and C2000 Discussion, News, Projects and Hacks

 

 


#10 EngIP

EngIP

    Level 1

  • Members
  • 120 posts

Posted 20 May 2011 - 01:44 PM

I was continually moving the chip from launchpad to breadboard (AA battery powered) until I noticed someone else doing this. What a joy it was to discover I could program the chip in situ!

To play it safe, I decided to remove my AA power supply, an power from the launchpad whilst programming. As has been said, disconnect the reset resistor if you had one in your circuit, connect up power, gnd, test and reset from the launchpad to the chip, and program from there.

Honestly, I must have replaced my chip in the breadboard over 100 times before I discovered this method! So annoying when all you want to do is change a delay value!

#11 rockets4kids

rockets4kids

    Level 3

  • Members
  • 490 posts

Posted 20 May 2011 - 04:56 PM

For those who have not studied their launchpad schematic and PCB, this photo will be rather illustrative:

Attached File  launchpad-ext-prog-s.jpg   94.94KB   214 downloads

This photo is not mine, and was posted by someone (I forget who) on the #43oh IRC channel.

My version is not nearly so pretty, as I hacked the female headers that came with the Launchpad, but it gets the job done just fine.

Remember, you will want to keep those jumper leads as short as possible to avoid errors programming the chip on your breadboard.

#12 dannyboy

dannyboy

    Advanced Member

  • Members
  • PipPipPip
  • 34 posts

Posted 20 August 2011 - 03:18 AM

Is there anything inherently incorrect in attaching wires to the uC slot itself, as below? I have a jumper header or two (in the pic) salvaged from a computer PSU, but they're not particularly nice to use with a breadboard.

Posted Image

#13 bluehash

bluehash

    Site Admin

  • Administrators
  • 6,429 posts

Posted 20 August 2011 - 03:26 AM

You should be ok.

43oh - MSP430, TivaC, ARM-Sitara and C2000 Discussion, News, Projects and Hacks

 

 


#14 zeke

zeke

    Level 5

  • Members
  • 1,666 posts
  • LocationCalgary, Canada

Posted 20 August 2011 - 03:27 AM

Nope.

Sheesh. My post don't make sense when bluehash slips in a response just before I can. :?

"Life is 10% of what happens to me and 90% of how I react to it" - Charles R. Swindoll

Electrons -> randomelectrons.com
Photons -> ninemicron.com


#15 bluehash

bluehash

    Site Admin

  • Administrators
  • 6,429 posts

Posted 21 August 2011 - 01:52 AM

Nope.

Sheesh. My post don't make sense when bluehash slips in a response just before I can. :?


I dialed my Stargate before you.

43oh - MSP430, TivaC, ARM-Sitara and C2000 Discussion, News, Projects and Hacks

 

 


#16 nuetron

nuetron

    Level 3

  • Members
  • 382 posts
  • LocationThe Wood Between the Worlds

Posted 23 August 2011 - 12:27 AM

Uh-oh, I think I just heard a Zat power up!
  • bluehash likes this
I usually use IAR EW Kickstart 5.20.
Because my first laptop's motherboard failed, my second laptop's harddrive died,
and tending to our IT business, I haven't had much time to spend on microcontrollers...

#17 n1ksn

n1ksn

    Advanced Member

  • Members
  • PipPipPip
  • 38 posts

Posted 27 August 2011 - 03:20 PM

I have been using a Launchpad as a Spy-Bi-Wire programmer with an Olimex H2274, their header board for an MSP430F2274. Since my breadboard is powered by the USB connection on the Launchpad, I made four connections with a little custom cable I made. It connects the VCC, RST, and TEST pins on the Launchpad J3 and GND on J6 to the 14-pin JTAG connector on the header board. The cross jumpers on J3 are removed or just stored on the lower set of pins.

I'd put in a link to my TI forum post (which includes a picture), but I'm too new here to be allowed to do so. If you go to the TI MSP430 forum you can find it under "Doing Baugh's State Machines Book on the Cheap".

#18 bluehash

bluehash

    Site Admin

  • Administrators
  • 6,429 posts

Posted 28 August 2011 - 02:19 AM

I'd put in a link to my TI forum post (which includes a picture), but I'm too new here to be allowed to do so. If you go to the TI MSP430 forum you can find it under "Doing Baugh's State Machines Book on the Cheap".


Welcome to the Forums n1ksn. Two more posts and you will be able to post links. For now, I'll help you out:
http://e2e.ti.com/su... ... 69706.aspx

Attached File  8228.StateMachineBoard.JPG-550x0.jpg   86.19KB   87 downloads
  • n1ksn likes this

43oh - MSP430, TivaC, ARM-Sitara and C2000 Discussion, News, Projects and Hacks

 

 


#19 kenemon

kenemon

    Level 2

  • Members
  • 275 posts
  • LocationEvanston, Illinois

Posted 28 August 2011 - 03:06 AM

n1ksn-

welcome to the party. I am interested in how you communicated between the f16 and the olimex, i understand you used jtag, but how? can you elaborate a bit please?

Thanks. KB
"never lower your standards to meet the expectations of others"

#20 n1ksn

n1ksn

    Advanced Member

  • Members
  • PipPipPip
  • 38 posts

Posted 28 August 2011 - 02:39 PM

Thanks for the link, bluehash. Much appreciated. It looks like the Img feature is for linking to a website, and I don't have one, so I had to rely on a posting elsewhere. Is there a way to post images directly (after I get my 3 postings)?

Kenemon, I'm a bit confused by your question as there is no f16 involved in my setup. At the risk of insulting your knowledge I'll elaborate a tad. The chip on the header board is a MSP430F2274, and it is hardwired to the JTAG connector on that board, which also has a clock crystal installed. I connected the programmer on the Launchpad using Spy-Bi-Wire, which is a subset of the 14-pin JTAG connector which has pins for VCC, GND, RST, and TEST. I just looked up the pinout in the references and used the usual jumper wires. I then build the connector cable just to avoid connection mistakes with four individual wires. The other board on the breadboard is a MAX single channel RS232 line driver and receiver on an SMT to DIP adapter which has the connections on the Softbaugh ES2274 board, including pull-ups and pull-downs to put it to sleep when unused.

I hope somewhere in there I answered your question (if I understood you). Thanks for the welcome.

I'll post a link to my Launchpad satellite board, which after the discussion I've read here I might want to call a "booster." Maybe shields could be called "payloads"?

Cheers,
Andy




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users