• 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 » Stellaris® ARM® Microcontrollers » Stellaris® ARM® LM3S Microcontrollers Forum » Use of JTAG pins on EVB LM3S8962
Share
Stellaris® ARM® Microcontrollers
  • Forum
Options
  • Subscribe via RSS
Helpful Stellaris® LM4F Series Links
  • LM4F Series
  • Stellaris PinMux Utility
  • Stellaris® LM4F120 LaunchPad
  • LM4F MCU Applications
  • LM4F MCU Video
  • ARM Cortex-M4F Whitepaper
  • Stellaris MCU Brochure
  • LM4F232 Eval Kit
  • Forums

    Use of JTAG pins on EVB LM3S8962

    This question is answered
    Alexandre Simas
    Posted by Alexandre Simas
    on Jun 20 2012 14:25 PM
    Prodigy30 points

    Hi there,

    is it possible to use JTAG pins (TRST/PB7, SWCLK/TCK/PC0, SWDIO/TMS/PC1, TD1/PC2 and TD0/CP3) of LM3S8962 Eval Board as GPIO's outputs or inputs?

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    All Replies
    • Sean de la Haye
      Posted by Sean de la Haye
      on Jun 20 2012 15:18 PM
      Verified Answer
      Verified by Alexandre Simas
      Intellectual2015 points

      Alexandre,

      Yes, it is possible, but not recommended.  You will not be able to use JTAG to reload your code unless your application supports other methods for flash programming.  If it happens that your device is "locked", then you will need to do the procedure outlined in section 4.3.4.1 in the 8962 datasheet.

      If you are sure you wish to proceed, then the steps for unlocking the GPIO ports is in 8.2.4. 

      Thanks,

      Sean

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • cb1_mobile
      Posted by cb1_mobile
      on Jun 20 2012 15:26 PM
      Verified Answer
      Verified by Alexandre Simas
      Guru21740 points

      Agree w/Sean - however there is another method - and it has advantages!   Long ago appeared file, "gpio-jtag.c" - which provides an in-built mechanism to recover JTAG without the complexity/effort outlined in section 4.3.4.1 MCU Datasheet.  This method may cost you a single GPIO - or not - depending upon your inventiveness and/or the extent of resource implementation by your application.

      This gpio-jtag "switch-over" employs a GPIO or timer or some other controllable event to "cause" the "jtag pin switch-over."  You may even extend the basic application so that the switch-over may only occur during a limited time-frame - post power up.  During development we employ JTAG as the default mode - (do nothing) holds us in JTAG.  Once your application is programmed/debugged/test-verified you can switch the default to GPIO - meaning you have to cause a "special" event to "re-purpose" the GPIO to JTAG.

      The basis for this switch-over is the fact that the ARM MCU defaults into JTAG upon power-up.  By placing this special "switch-over" software before your code "repurposes JTAG pins to GPIO" - you can prevent the JTAG pins from switching to GPIO.

      Early (smaller) Stellaris may not be recoverable via LMI Flash Programmer - re-purpose of these MCU's JTAG may thus prove fatal.  Use of this simple, software "Defense mechanism," solves this issue and we believe has the advantages of simplicity and speed when compared to the alternate method (LMI Flash Programmer) of MCU JTAG recovery.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Alexandre Simas
      Posted by Alexandre Simas
      on Jun 21 2012 07:45 AM
      Verified Answer
      Verified by Alexandre Simas
      Prodigy30 points

      Thank you both, Sean and cb1_mobile.

      Both points of view will help me improve my project develoment.

      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