Jump to content
damanloox

MSP432 launchpad as programmer...?

Recommended Posts

Yes remove the jumper block and attach a suitable cable ... IIRC (don't have mine in front of me) there is an ARM Cortex SWD header on the board, 2x5 pin 50mil (1.27mm) pitch header, that can be used with a suitable jumper cable to program another MSP432 project externally.  Remove the jumpers from the jumper block of course so the XDS110 JTAG programmer (top 1/3rd of the launchpad board) isn't trying to program the launchpad's own MSP432 of course.

 

edit: hmm, I might be wrong about this, the 2x5 header on the MSP432 launchpad might only be for attaching external JTAG tools to the MSP432 onboard chip.  Some of TI's newer XDS110-based launchpads, namely the CC2650 LP and CC1310 LP both have headers allowing you to use the onboard XDS110 to program external chips (rather than the header existing solely to attach external JTAG tools to the launchpad's own main chip).

Share this post


Link to post
Share on other sites

I haven't used the feature myself, but looking at the User's Guide (SLAU597A), the switch S101 is used to select between JTAG or the XDS110-ET onboard emulator.  The isolation block can be used to expose the connections for use on other devices.

Share this post


Link to post
Share on other sites

How about J103 - XDSET_DEBUG_CON... The description on the schematic: "External XDS-ET access. Debug external targets. Set S101 appropriately".

Could this be used (somehow) to program external MCU?

Or - perhaps Hercules RM42 (as I have one in my drawer)? There's unpopulated jtag header btu I'm not sure if it can be used to program external targets...

Share this post


Link to post
Share on other sites

I haven't used the feature myself, but looking at the User's Guide (SLAU597A), the switch S101 is used to select between JTAG or the XDS110-ET onboard emulator.  The isolation block can be used to expose the connections for use on other devices.

 

The isolation block on the MSP432 only include a serial channel and power :(

 

Sadly I don't think it can do it, short of removing the MSP432 and soldering bodge wires to the JTAG signals.

Share this post


Link to post
Share on other sites

How about J103 - XDSET_DEBUG_CON... The description on the schematic: "External XDS-ET access. Debug external targets. Set S101 appropriately".

Could this be used (somehow) to program external MCU?

OK maybe that's it!

 

FYI- I ordered some 50mil 2x5 cables from Tag-Connect recently ( http://www.tag-connect.com/ ), although the 2x5 connectors themselves (for your own external board) aren't sold by all distributors...

 

More info on that connector:

 

http://www2.keil.com/coresight/coresight-connectors/ - first one

 

A 10-pin header (Samtec FTSH-105-01) is specified with these dimensions:

0.25" x 0.188" (6.35 mm x 4.78 mm).

 

Mouser.com doesn't sell Samtec products but Digikey does: http://www.digikey.com/product-search/en?keywords=FTSH-105-01 - I haven't looked but they might sell the 10-pin F-F patch cables too.  Mouser didn't seem to...

 

My plan will be to use the 6 pin Tag-Connect footprint on my boards and their pogo-pin no-legs contact footprint.

Share this post


Link to post
Share on other sites

The isolation block on the MSP432 only include a serial channel and power :(

 

Sadly I don't think it can do it, short of removing the MSP432 and soldering bodge wires to the JTAG signals.

If I am interpreting sheet 7 of the schematic in http://www.ti.com/lit/ug/slau597a/slau597a.pdf it would appear that by using J103 and switching S101 to the external position, it would disconnect the JTAG from the on board MSP432. It appears that this would allow the use of the onboard Launchpad JTAG to program/debug an external target via J103. Am I reading this right?

 

EDIT: would have to remove the RX/TX jumpers as well.

Share this post


Link to post
Share on other sites

If I am interpreting sheet 7 of the schematic in http://www.ti.com/lit/ug/slau597a/slau597a.pdf it would appear that by using J103 and switching S101 to the external position, it would disconnect the JTAG from the on board MSP432. It appears that this would allow the use of the onboard Launchpad JTAG to program/debut an external target via J103. Am I reading this right?

 

EDIT: would have to remove the RX/TX jumpers as well.

 

Ahh year are right! J103 is the JTAG signals that can program a target.

 

When I was looking at the PCB silkscreen I assumed they were JTAG connector to reprogram the XDS110 itself. I only tested the JTAG connector with a 0.05" 2x5 cable to a custom target board I have.

Share this post


Link to post
Share on other sites

OK... Could somebody tell me which pins on external MCU do I need to connect to J103 then (as I think there's a consensus that J103 can be used to program ext. MCU)...?

Share this post


Link to post
Share on other sites

From paragraph 2.3.4 in slau597a.pdf:

 

"The XDS110-ET emulator on the LaunchPad can interface to most ARM derivative devices, not just the on-board MSP432P401R target device.
This is not a common use case, but for users who want this functionality, there is a way to enable it.
Connector J103 was added to expose all the necessary programming and power signals." ...

Share this post


Link to post
Share on other sites

@@spirilis When I click on the link all I see is the 5x2 configuration, J103 is a 1x7 configuration.

 

EDIT: Also, if you happen to know where to get those .05 1x7 connectors, I would be interested.

Share this post


Link to post
Share on other sites

@@spirilis When I click on the link all I see is the 5x2 configuration, J103 is a 1x7 configuration.

 

EDIT: Also, if you happen to know where to get those .05 1x7 connectors, I would be interested.

Ahh nevermind... I should've checked the datasheet/schematic :P

 

Yeah no idea what to do there.  I mean strips of 50mil pins are available (just cut to length)... I am happy they improved this in the later XDS110 LP's like CC2650 & CC1310.

Share this post


Link to post
Share on other sites

I've done this little mod on a MSP432 launchpad so I can program the CC2650 SensorTag with it (and use energytrace too).
 
The 1x7 0.05" headers aren't the easiest to get hold of, so I just took a standard 10-pin cortex debug cable, cut it in half and soldered it directly to J103. The connections needed are (LP -> Cortex debug connector):
 
GND -> GNDDetect (pin 9)
RST -> nRESET (pin 10)
SWCLK -> SWDCLK/TCK (pin 4)
SWDIO -> SWDIO/TMS (pin 2)
3V3 -> VTref (pin 1)
 
Pin 1 is marked by the red stripe on the cable linked above. Apart from making sure to read the pin numbers the right way round, the only fiddly bit is crossing over the GND and reset wires in limited space.

 

The ribbon enters the connector opposite the key at one end and next to it at the other. It's worth checking both halves of the cable to see which gives the best cable routing for your target board.

 

To test you can remove the jumpers from the isolation block and set the JTAG switch to external, then connect the cable to the Ext Debug header on the launchpad and try to program the MSP432 target.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...