• Announcements

    • bluehash

      Forum Upgrade   03/11/2017

      Hello Everyone, Thanks for being patient while the forums were being fixed and upgraded. Please see details and report issues in this thread. Thanks!
moderboy

Launchpad as external programmer

75 posts in this topic

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 :)

Share this post


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

Dimiric and boseji like this

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

Share this post


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

Share this post


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

Share this post


Link to post
Share on other sites

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!

Share this post


Link to post
Share on other sites

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

 

post-2338-135135499994_thumb.jpg

 

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.

Share this post


Link to post
Share on other sites

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.

 

img021small.jpg

Share this post


Link to post
Share on other sites

Nope.

 

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites
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/support/microcontroll ... 69706.aspx

 

8228.StateMachineBoard.JPG-550x0.jpg

n1ksn likes this

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


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

Your welcom. You should be good now. You can upload your pic, instead of linking it offsite.

Share this post


Link to post
Share on other sites

Sorry n1ksn,

 

Kenemon, I'm a bit confused by your question as there is no f16 involved in my setup.

 

I am referring to the FET on the LP. As far as I know, they are specified as MSP430F16xx, I think mine are F1612's.post-1413-135135508407_thumb.jpg

 

I have been tying to use CCS and IAR to "get thru" this chip to other non-proprietary MCU's, but am confused. When selecting target devices, the options do not exist. I have even tried MSPflasher, and that was scary (with a brushup in DOS), to no avail. I hope this better explains my question.

 

Thanks. KB

Share this post


Link to post
Share on other sites
Is there a way to post images directly (after I get my 3 postings)?

I had to have someone explain this to me as well... ;)

 

Below the edit window is an "Upload Attachment" tab. Make sure the image is scaled properly and upload it. After it's uploaded, you get the option to "Place inline", which will show the image in your post.

Share this post


Link to post
Share on other sites

Thanks for the image posting info, Geekdoc. Much appreciated.

 

Kenemon, perhaps your question is too advanced for me. I use the IAR IDE for programming the MSP430F2274 and just select that chip under project options and select TI FET for the programmer and debugger. I also manually select Spy-Bi-Wire in the options, just be to sure.

 

Andy

Share this post


Link to post
Share on other sites

don't worry, i am not that advanced. Your reply is what I was looking for. In CCS, I cant find these??

 

and select TI FET for the programmer and debugger. I also manually select Spy-Bi-Wire in the options, just be to sure.

 

 

post-1413-135135508686_thumb.jpg

 

but I found the debugger setting you mentioned in IAR:

 

post-1413-135135508676_thumb.jpg

 

 

I cant find the "programmer" you mentioned. Can you point me closerI think this is what I needed. Much Thanks....

boseji likes this

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now