• 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 » TMS320F28035 device locked
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

    TMS320F28035 device locked

    This question is answered
    Sandro Brovedani
    Posted by Sandro Brovedani
    on May 03 2012 07:18 AM
    Prodigy70 points

    Hello,

    I m using a TMS320F28035 on Code Composer Version: 4.2.2  using aTexas Instruments XDS100v2 USB Emulator_0/C28xx

    One target board has device locked problem and the debugger reports:

    ---------------------------------------------------------------

    C28xx: GEL Output:
    Device Calibration not complete, check if device is unlocked and recalibrate.C28xx: GEL Output:
    Device Calibration not complete, check if device is unlocked and recalibrate.C28xx: Flash Programmer: Error erasing

    flash memory. Device is locked or not connected. Operation cancelled
    C28xx: Flash Programmer: Error erasing Flash memory.
    C28xx: Flash Programmer: Device is locked or not connected. Operation cancelled.
    C28xx: Trouble Writing Memory Block at 0x3e8be2 on Page 0 of Length 0x5a
    Cannot write to target
    C28xx: Depletion Recovery started.
    C28xx: Flash Programmer: Error when performing depletion recovery. Device is locked or not connected. Operation

    cancelled.
    C28xx: Depletion Recovery started.
    C28xx: Flash Programmer: Error when performing depletion recovery. Device is locked or not connected. Operation

    cancelled.

    ---------------------------------------------------------------

    comparing not working board with a working board I can see that after a cpu reset by a step debugging when the code jumps from 0x3ff4fb to 0x3d7c80(Calibration Data) on working board there is a code but on not working board all code is at value 0x0000.

    What has happened?

    how can reset the device to default configuration?

    Regards

    Sandro

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    All Replies
    • Sandro Brovedani
      Posted by Sandro Brovedani
      on May 03 2012 07:49 AM
      Prodigy70 points

      looking TMS320x2803x Piccolo Boot ROM  SPRUGO0A.pdf datasheet

      2.10 Device_Cal
      The Device_cal() routine is programmed into TI reserved memory by the factory. The boot ROM
      automatically calls the Device_cal() routine to calibrate the internal oscillators and ADC with device
      specific calibration data. During normal operation, this process occurs automatically and no action is
      required by the user.

      Can I program this memory area again?

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Manoj Santha Mohan
      Posted by Manoj Santha Mohan
      on May 05 2012 19:07 PM
      Expert6280 points

      Sandro,

      Based on the CCS4v error messages, it looks like the device is locked. When the device is locked, the CPU reads of secure memory will read back as 0x0000's. On F2803x,

      TI OTP is also a secure memory. That is reason why you read 0x0000's when you read device cal which is actually stored in TI OTP. If the device is not in depletion and if you know

      the flash password, you should be able to unlock the device and proceed with flash programming.

      Regards,

      Manoj

      ---------------------------------------------------------------------------------------------------

      If a post answers your question, please mark it with the "verify answer" button.

      Other useful links:

      C2000 Getting Started   C2000 Flash Common Issues/FAQs   Emulation FAQ

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Sandro Brovedani
      Posted by Sandro Brovedani
      on May 07 2012 02:13 AM
      Prodigy70 points

      Tanks Manoj for your replay,

      when I load program to target the debugger log is:

      -------------------------------------------------------------------------------------------------------------------------------

      C28xx: GEL Output:
      Device Calibration not complete, check if device is unlocked and recalibrate.C28xx: GEL Output:
      Device Calibration not complete, check if device is unlocked and recalibrate.C28xx: Flash Programmer: Error erasing flash memory. Device is locked or not connected. Operation cancelled
      C28xx: Flash Programmer: Error erasing Flash memory.
      C28xx: Flash Programmer: Device is locked or not connected. Operation cancelled.
      C28xx: Trouble Writing Memory Block at 0x3e9b44 on Page 0 of Length 0x1c1
      Cannot write to target

      -------------------------------------------------------------------------------------------------------------------------------

      and a box Displays "Error Lauching Debug Session"and I forced to continue lauching

      I forced to continue lauching and I tried  by Tools->On-Chip Flash to execute the commands:

      -Erase Flash

      -Program Password

      -Unlock

      -Depletion Recovery

      with no results, the debugger log is:

      -------------------------------------------------------------------------------------------------------------------------------

      C28xx: Erasing Flash memory...
      C28xx: Flash Programmer: Error erasing flash memory. Device is locked or not connected. Operation cancelled
      C28xx: Starting device unlocking...
      C28xx: Flash Programmer: Error unlocking flash memory. Device is still locked
      C28xx: Starting program password operation...
      C28xx: Flash Programmer: Error programming password. Device is locked or not connected. Operation cancelled.
      C28xx: Depletion Recovery started.
      C28xx: Flash Programmer: Error when performing depletion recovery. Device is locked or not connected. Operation cancelled.
      -------------------------------------------------------------------------------------------------------------------------------

      How can I do to erase the Flash or unlock the device?

      Regards

      Sandro

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Manoj Santha Mohan
      Posted by Manoj Santha Mohan
      on May 07 2012 09:11 AM
      Expert6280 points

      Sandro,

      Based on your message, it looks like you don't know the flash password. You can't perform any operation on secure memory (No writes, no reads) when the device is locked. So , unless you unlock the device you won't be able to perform depletion recovery (or) flash erase / programming. It is unfortunate but you might have to replace the part to proceed further.

      Regards,

      Manoj

      ---------------------------------------------------------------------------------------------------

      If a post answers your question, please mark it with the "verify answer" button.

      Other useful links:

      C2000 Getting Started   C2000 Flash Common Issues/FAQs   Emulation FAQ

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Sandro Brovedani
      Posted by Sandro Brovedani
      on May 08 2012 01:44 AM
      Verified Answer
      Verified by Sandro Brovedani
      Prodigy70 points

      Thanks Manoj,

      Regards

      Sandro

      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