• 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 » C2000™ Microcontrollers » C2000 32-bit Microcontrollers Forum » TMS320F28335 watchdog vs jtag chain
Share
C2000™ Microcontrollers
  • Forums
  • Announcements
  • E2E Wiki
Options
  • Subscribe via RSS
C2000 Resources
  • Product Folder
  • C2000 Training Portal
  • C2000 Technical Training Catalog
  • C2000 Datasheets, App Notes, User Guides
  • C2000 Hardware Design Kits
  • controlSUITE for C2000 Software Library


  • InstaSPIN Resources
  • What is InstaSPIN?
  • Videos and Support


  • InstaSPIN-FOC and InstaSPIN-MOTION Resources
  • What is InstaSPIN-FOC?
  • What is InstaSPIN-MOTION?
  • Product Folder: F28069F, F28068F, F28062F, F28068M, F28069M
  • User’s Guide
  • Technical User’s Manual
  • Tools
  • Forums

    TMS320F28335 watchdog vs jtag chain

    This question is answered
    N Luna
    Posted by N Luna
    on Aug 10 2012 14:27 PM
    Intellectual575 points

    Hi everyone,

    I have a problem with my custom board. On the board, there are 2x TMS320F28335 on the same jtag chain.

    I was able to program/debug both DSP until something weird happened (CCS freezed while I was debugging) and since I cannot anymore program both chip.

    I found that one of the 2 DSP is in a bad state and the pin XRS\ is going low for 10usec and high for few msec. I found in the datasheet that the watchdog will drop XRS\ pin for 512 * OSCCLK if not kicked. In my case 512 * 50Mhz = 10usec, so it seems to fit with what I see on the pin. I don't use the watchdog in my code, in fact I disable it so I was wondering what could happened while I was debugging to put the chip in that state...

    Also, the chip holds TDO to solid one so it breaks the JTAG chain. When I put that DSP in reset (by holding XRS\ to GND), I am able to program or debug the other one.

    Any idea ?

    Thanks for support

    Nicolas

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    All Replies
    • N Luna
      Posted by N Luna
      on Aug 20 2012 10:07 AM
      Intellectual575 points

      Hi everyone,

      I tried to change the boot strap from "flash" to "SARAM" and here's what I got on the console when I enter in debug mode:

      C28xx_0: Flash Programmer: Warning: The configured device (TMS320F28335), does not match the detected device (). Flash Programming operations could be affected. Please consider modifying your target configuration file.
      C28xx_0: GEL Output:
      ADC Calibration not complete, check if device is unlocked and recalibrate.C28xx_0: GEL Output:
      ADC Calibration not complete, check if device is unlocked and recalibrate.C28xx_0: GEL Output:
      ADC Calibration not complete, check if device is unlocked and recalibrate.C28xx_0: Breakpoint Manager: Retrying with a AET breakpoint
      C28xx_0: Trouble Setting Breakpoint with the Action "Finish Auto Run" at 0x9081: (Error -1066 @ 0x9081) Unable to set requested breakpoint in memory. Verify that the breakpoint address is in writable memory. (Emulation package 5.0.681.0)
      C28xx_0: GEL Output:
      ADC Calibration not complete, check if device is unlocked and recalibrate.

      The current program in flash (that was ok before the crash) seems to corrupt the chip.

      Even if I boot in SARAM, I still cannot erase the flash with the On-Chip Flash utility in Tools menu. I didn't change the password so it is not supposed to be protected or locked.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Lori Heustess
      Posted by Lori Heustess
      on Aug 20 2012 12:04 PM
      Guru50905 points

      N Luna
      (CCS freezed while I was debugging)

      Were you programming or erasing the device when this happened?  

      N Luna
      I found that one of the 2 DSP is in a bad state and the pin XRS\ is going low for 10usec and high for few msec. I found in the datasheet that the watchdog will drop XRS\ pin for 512 * OSCCLK if not kicked. In my case 512 * 50Mhz = 10usec, so it seems to fit with what I see on the pin.

      Yes it does sound like the watchdog. 

      N Luna
      Also, the chip holds TDO to solid one so it breaks the JTAG chain. When I put that DSP in reset (by holding XRS\ to GND), I am able to program or debug the other one.

      There is a security mechanism on this device that will disable JTAG if the password is set to a non "all F" value.  You can connect to such a device by either booting to the "wait" (it might be called boot to check mode on that device) or by holding the device in reset like you have done.

      It sounds like you are able to connect and debug if you do this.  I'm surprised you can program the flash, though.  If the password was set somehow you would not be able to program the flash.

      Can you double check all of the power pins - in particular the VDD3VFL pin?  This  pin powers the flash so it can appear to be locked if it is not powered properly. 

      Is this device on an eZdsp with a socket?  If so please check the device connections.  I've seen these devices get lose in the socket and not make a good connection leading to very strange behavior.

      If you were programming  / erasing when CCS crashed then it is possible that the password was left in an unknown state - which would lock the device.

      Did a reply answer your question? If yes, please click the "yes" button located at the bottom of that post.
      Visit these helpful C2000 Links!
      C2000 TI Wiki Pages
      TI Forum Sitemap
      ControlSUITE
      C2000 Getting Started
      CLA FAQs
      Workshop Material!
      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • N Luna
      Posted by N Luna
      on Aug 20 2012 12:21 PM
      Intellectual575 points

      Lori Heustess

      There is a security mechanism on this device that will disable JTAG if the password is set to a non "all F" value.  You can connect to such a device by either booting to the "wait" (it might be called boot to check mode on that device) or by holding the device in reset like you have done.

      Yes, I also tried this mode and I still cannot erase/program the flash. It "repairs" the jtag chain because the broken chip release TDO,but I still cannot access to the flash.

      Lori Heustess

      If you were programming  / erasing when CCS crashed then it is possible that the password was left in an unknown state - which would lock the device.

      No I was tracing the code with the debugger. I'm not on a eZdsp, it's a custom board.

      After few tests it seems that the flash is locked.. I'm wondering how could this happened if the erase/program step never went wrong..

      I assume that without the password my only option is to replace the chip ?

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Lori Heustess
      Posted by Lori Heustess
      on Aug 20 2012 14:32 PM
      Guru50905 points

      N Luna
      After few tests it seems that the flash is locked.. I'm wondering how could this happened if the erase/program step never went wrong..

      Have you checked the power rails?   A program/erase mishap or a bad power rail can cause a locked device.

      N Luna
      I assume that without the password my only option is to replace the chip ?

      Yes unfortunately - if we try all debug options and it really is locked then there is no way to recover this device.

      Did a reply answer your question? If yes, please click the "yes" button located at the bottom of that post.
      Visit these helpful C2000 Links!
      C2000 TI Wiki Pages
      TI Forum Sitemap
      ControlSUITE
      C2000 Getting Started
      CLA FAQs
      Workshop Material!
      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • N Luna
      Posted by N Luna
      on Aug 20 2012 16:07 PM
      Intellectual575 points

      Power rails are good.

      You think that it's possible that a short on power rail could have locked the device ? 

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Lori Heustess
      Posted by Lori Heustess
      on Aug 20 2012 16:20 PM
      Guru50905 points

      N Luna

      Power rails are good.

      You think that it's possible that a short on power rail could have locked the device ? 

      My thinking was more the VDD3VFL - it powers the flash where the password is stored.  So if it is not healthy the password will not read back correctly.

      -Lori

      Did a reply answer your question? If yes, please click the "yes" button located at the bottom of that post.
      Visit these helpful C2000 Links!
      C2000 TI Wiki Pages
      TI Forum Sitemap
      ControlSUITE
      C2000 Getting Started
      CLA FAQs
      Workshop Material!
      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • N Luna
      Posted by N Luna
      on Aug 20 2012 16:34 PM
      Intellectual575 points

      Hi Lori,

      Well I have 2 chips on my board and they both share the same 3V3 / 1V9. One chip is working and not the other one. 

      I have monitored the power rails and they are both good.

      For now, I have 2 boards "bricked" I changed the faulty chip on one of the two boards and it is working now. 

      I suspect the flash might have been corrupted... but I would like to find why it happened so easily.

      Nicolas

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Lori Heustess
      Posted by Lori Heustess
      on Aug 20 2012 17:15 PM
      Verified Answer
      Verified by Lori Heustess
      Guru50905 points

      You can contact your local distributor and send the device back for FA.  I'm now wondering if there was a current issue (ie the device was current starved for some reason). 

      Did a reply answer your question? If yes, please click the "yes" button located at the bottom of that post.
      Visit these helpful C2000 Links!
      C2000 TI Wiki Pages
      TI Forum Sitemap
      ControlSUITE
      C2000 Getting Started
      CLA FAQs
      Workshop Material!
      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • N Luna
      Posted by N Luna
      on Aug 21 2012 08:03 AM
      Intellectual575 points

      Ok. Thanks for the support.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Alex Marcoux
      Posted by Alex Marcoux
      on Aug 31 2012 12:58 PM
      Intellectual510 points

      Lori,

      I'm the local disty covering them. Can you tell me how to ship the parts back..

      Thanks,

      Alex

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Alex Marcoux
      Posted by Alex Marcoux
      on Sep 04 2012 11:50 AM
      Intellectual510 points

      Lori,

      I also have the schematic if this could help you out. Contact me directly so i can't send them to you. Customer does not want them public on e2e.

      Thanks,

      Alex

      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