• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Microcontrollers » MSP430™ Microcontrollers » MSP430 Ultra-Low Power 16-bit Microcontroller Forum » Sharing JTAG pins to flash multiple MCUs
Share
MSP430™ Microcontrollers
  • Forum
  • Announcements
  • E2E Wiki
Options
  • Subscribe via RSS
MSP430 Resources
  • MSP430 Product Folder
  • MSP-EXP430G2 - MSP430 LaunchPad Value Line Development kit
  • MSP430 Getting Started Guide
  • MSP430 Microcontroller Projects
  • More Resources >
  • Forums

    Sharing JTAG pins to flash multiple MCUs

    This question is not answered
    Mario S
    Posted by Mario S
    on Nov 27 2011 11:33 AM
    Prodigy80 points

    Hello!

    Despite the fact that I've been programming MSP430 for some years, this is my first post on this forum :)

    My question is:

    Imagine you have a pcb with more than one MSP430. Can I wire the JTAG pins  (TDI, TDO, TMS, TCK, RST) of all MCUs in parallel and use a jumper on the TEST pin of each MCU to choose which one I want to work with (flash/debug) ?

    NOTE: I assume that the JTAG pins are only used for that (no I/O use by the program)

     

    Thanks,

    Mário

    Mário Martins de Sousa

    CT2JVS

    Jtag TEST sharing
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    All Replies
    • Jens-Michael Gross
      Posted by Jens-Michael Gross
      on Nov 28 2011 12:40 PM
      Guru140650 points

      If the TEST pin is left floating, the JTAG pins revert to normal port pins.
      This may or may not have influence on the JTAG performance (leakage currents, impedances etc.).
      So my answer is an authoritative "maybe" :)

      _____________________________________
      Before posting bug reports or ask for help, do at least quick scan over this article. It applies to any kind of problem reporting. On any forum. And/or look here.
      If you cannot discuss your problem in the public, feel free to start a private conversation: click on my name and then 'start conversation'. But please do so only if you really cannot do it in a public thread, as I usually read all threads. And I prefer to answer where others can profit from it (or contribute to it) too.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Mario S
      Posted by Mario S
      on Nov 28 2011 16:48 PM
      Prodigy80 points

      Thank you Jens-Michael for your quick answer!

      Anyway I don't believe that no one ever tried to do something like that :) Just wanted to know if it works or not to avoid wasting time building a pcb.

      I think it is useless test it with some PDIP package MSP430s on a breadboard since I don't know if the 5xxx or 6xxx families will behave the same way.

       

      Hints ?

       

      Thanks,

      Mário


      Mário Martins de Sousa

      CT2JVS

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Jens-Michael Gross
      Posted by Jens-Michael Gross
      on Nov 29 2011 05:59 AM
      Guru140650 points

      The typical application for multiple MSPs attached to one programmer is production programming wiht a GANG programmer. But here, usually each attached processor is on its own PCB and therefore separately connected.

      On the experimenters board with a 4x and 2x processor, there are two independent JTAG headers, not just a jumper. So it seems that indeed nobody has tried that yet.
      Earn a badge as multi-processor-JTAG pioneer. :)

      _____________________________________
      Before posting bug reports or ask for help, do at least quick scan over this article. It applies to any kind of problem reporting. On any forum. And/or look here.
      If you cannot discuss your problem in the public, feel free to start a private conversation: click on my name and then 'start conversation'. But please do so only if you really cannot do it in a public thread, as I usually read all threads. And I prefer to answer where others can profit from it (or contribute to it) too.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Mario S
      Posted by Mario S
      on Jan 09 2012 21:26 PM
      Prodigy80 points

      Hello!

      For future reference this kind JTAG sharing works!

      You just have to place a jumper on each TEST pin to choose what uC you want to flash. I've used two F5436A and one F5638 and it worked with no problem. I've placed  also a jumper on RST pin to be able to reset only one uC at a time (usefull for debug).

      ;-)

      Mário Martins de Sousa

      CT2JVS

      jtag sharing
      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Mariusz Wysoczanski
      Posted by Mariusz Wysoczanski
      on Apr 15 2012 08:10 AM
      Prodigy20 points

      Hello,

      Did someone of you try to do that JTAG sharing with uCs with dedicated JTAG pins (no TEST pin)?

      In this document:
      http://www.ti.com/lit/ug/slau320d/slau320d.pdf

      Page 22, section 1.3.1.2 "Fuse Check and Reset of the JTAG State Machine (TAP Controller)" it says:

       “Each MSP430 family device includes a physical fuse used to permanently disable memory access via
      JTAG communication. When this fuse is programmed (or blown), access to memory via JTAG is
      permanently disabled and cannot be restored. When initializing JTAG access after power up, a fuse check
      must be done before JTAG access is granted. Toggling of the TMS signal twice performs the check.
      While the fuse is tested, a current of up to 2 mA flows into the TDI input (or into the TEST pin on devices
      without dedicated JTAG pins). To enable settling of the current, the low phase of the two TMS pulses
      should last a minimum of 5 μs.”

       

      So it means that on the devices that have dedicated JTAG pins (no TEST pin), the  TDI line is acting more or less like TEST line on devices with shared JTAG pins?
      If we disconnect TDI line from MCU, then the fuse checking will fail and the access to flash memory won’t be granted – JTAG for this specific MCU will be turned off.

      But what about the other lines, for instance TDO. If I disconnect TDI and fuse checking will fail for one of the uC, will there be  some feedback signal on TDO from MCU after fuse checking failure? Then it could override the TDO line between programmer and uC that I want to have acces to.

      I will appreciate any helpful tips.

       

      MSP430 Jtag sharing multiple
      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • old_cow_yellow
      Posted by old_cow_yellow
      on Apr 15 2012 13:11 PM
      Guru25815 points
      In general, this scheme is not going to work. If one of the target devices uses dedicated JTAG pins, it will hog those pins and the others cannot use them. For target devices that multiplex JTAG functions with other I/O functions on the same pins, not connecting TEST pin will make those pin do the “other I/O functions” which more likely than not will interfere. For target devices with real fusible JTAG fuse, I do not even want to try “blow the fuse”.
      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Mariusz Wysoczanski
      Posted by Mariusz Wysoczanski
      on Apr 16 2012 02:55 AM
      Prodigy20 points

      Thank you for the answer.

      So, there is no way to share the JTAG in some simple and easy way (by switching just 1 line instead of 4)?

      How about putting one of the MCUs into the reset state while the other one is being programmed? Will it work?

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Jens-Michael Gross
      Posted by Jens-Michael Gross
      on Apr 16 2012 11:53 AM
      Guru140650 points

      Mariusz Wysoczanski
      So, there is no way to share the JTAG in some simple and easy way (by switching just 1 line instead of 4)?

      Not with switching. All JTAG interfaces support the Pass-through, even if the fuse has been blown.

      So in theory, you can daisy-chain all JTAG peers. The software, however, needs to precede the JTAG commands by the appropriate number of pass-through commands then. And this is not supported by MSP430LIB and the FETs.

      Mariusz Wysoczanski
      How about putting one of the MCUs into the reset state while the other one is being programmed? Will it work?

      I don't know what state the dedicated JTAG pins have when the processor is in reset state. I don't remember reading about it in any datasheet.

      _____________________________________
      Before posting bug reports or ask for help, do at least quick scan over this article. It applies to any kind of problem reporting. On any forum. And/or look here.
      If you cannot discuss your problem in the public, feel free to start a private conversation: click on my name and then 'start conversation'. But please do so only if you really cannot do it in a public thread, as I usually read all threads. And I prefer to answer where others can profit from it (or contribute to it) too.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    TI E2E™ Community
    • Support Forums
    • Blogs
    • Videos
    • Groups
    • Site Support & Feedback
    • Settings
    TI E2E™ Community Groups
    • TI University Program
    • Make the Switch
    • Microcontroller Projects
    • Motor Drive & Control
    Other Communities
    • Deyisupport
    • Designsomething.org
    • beagleboard.org
    • TI on Element 14
    • TI on TechXchangeSM
    Other Technical & Support Resources
    • WEBENCH® Design Center
    • Product Information Centers
    • Technical Documents
    • TI Design Network
    • TI Technical Articles
    • TI Training

    All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

    Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

    Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
    TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

    TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
    embedded processors, along with software, tools and the industry’s largest sales/support staff.

    © Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
    Trademarks | Privacy Policy | Terms of Use