• 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 » Can FLASHApi Flash_Erase() failures lock the device?
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

    Can FLASHApi Flash_Erase() failures lock the device?

    This question is not answered
    Jerry Trantow
    Posted by Jerry Trantow
    on Jun 19 2012 09:31 AM
    Intellectual410 points

    First, some background.  I am updating a project and hardware which allows updates over the CAN bus.I updated to the latest CCSv5 5.2.0.00069 and v6.1.0 compiler and FlashAPI 3.10 and rts2800_fpu32.lib.  All the code loads to FLASHA and runs from SARAM.  I'm debugging with JTAG.

    With this setup, I now get a bunch of linker warnings (which I ignored).  With previous tools I had a clean compile.  

    #16002-D build attribute vendor section TI missing in "../Flash28335_API_V210.lib<Flash28_ClearLoop.obj>": compatibility cannot be determined XXXX  C/C++ Problem

    My code changes included:

    FLASH_ST FlashStatus; // Flash erase status.

    status=Flash_Erase(SECTORA,&FlashStatus);

    if (STATUS_SUCCESS == status)

    which was failing with status=13 which corresponds to STATUS_FAIL_INCORRECT_PARTID. 

    After getting this fault, I made some code changes and now I get the following when I try to debug"

    C28xx: 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: GEL Output:
    ADC Calibration not complete, check if device is unlocked and recalibrate.C28xx: GEL Output:
    ADC 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 0x338000 on Page 0 of Length 0x54
    C28xx: GEL: File: F:\Users\XXXXX.out: Load failed.

    My Properties/General selects the Device Family: C2000, TMS320F28335 which matches my hardware.

    If I connect JTAG to an eZDSP board it connects and downloads fine.

    Did I inadvertently lock my device? How do I get rid of the link warnings?

    F Flash_erase vender section
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    All Replies
    • Jerry Trantow
      Posted by Jerry Trantow
      on Jun 19 2012 15:43 PM
      Intellectual410 points

      When I change the boot mode of the eZDSP to "Branch to check boot mode" and don't have it erase anything during the load. (run from RAM) I can get some code loaded and have it run.  I can also look at the CSM registers and the memory window on FLASHA shows it is not secured and completely erased. (including CSM_PWD locations)

      So I don't think I have bricked my hardware.  However, if I try to erase a flash sector I get the message about:

      C28xx: 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.

      This is starting to smell like a tool problem. How do I figure out what device CCSv5.2.00069 is detecting???

      When I run SDConfigEx:

      * Checking emulator/eZdsp scan connection

      ** Emulator Test **
      $$ EmuProductName=XDS510USB
      $$ EmuPortAddr=0x510
      $$ EmuPortMode=USB
      $$ ProductId=510
      $$ ProductVersion=84
      ** Emulator Scan Test
      -- Found JTAG IR length of 38
      -- Found 1 JTAG device(s) in the scan chain

      But I don't know how to see the scan test values (and this isn't necessarily the same method used by CCS)


      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Jerry Trantow
      Posted by Jerry Trantow
      on Jun 19 2012 17:19 PM
      Intellectual410 points

      When I change the boot mode of the eZDSP to "Branch to check boot mode" and don't have it erase anything during the load. (run from RAM) I can get some code loaded and have it run.  I can also look at the CSM registers and the memory window on FLASHA shows it is not secured and completely erased. (including CSM_PWD locations)

      So I don't think I have bricked my hardware.  However, if I try to erase a flash sector I get the message about:

      C28xx: 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.

      This is starting to smell like a tool problem. How do I figure out what device CCSv5.2.00069 is detecting???

      When I run SDConfigEx:

      * Checking emulator/eZdsp scan connection

      ** Emulator Test **
      $$ EmuProductName=XDS510USB
      $$ EmuPortAddr=0x510
      $$ EmuPortMode=USB
      $$ ProductId=510
      $$ ProductVersion=84
      ** Emulator Scan Test
      -- Found JTAG IR length of 38
      -- Found 1 JTAG device(s) in the scan chain

      But I don't know how to see the scan test values (and this isn't necessarily the same method used by CCS)


      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Jerry Trantow
      Posted by Jerry Trantow
      on Jun 19 2012 17:29 PM
      Intellectual410 points

      As a sanity check on the flash settings, I ran the On-chip flash frequency test and I see the 10khz on the GPIO pin but it only toggles for approximately 35msec???  

      I'm also confused by CSM.  From my reading of the app note, I should see zeros if I try to read flash.  However, when I reset using CCS I see the CSMSCR.SECURE=0 and the flash looks erased.  All FFFF's.  However, if I do a restart the flash memory shows up as all 0's and the CSMSCR.SECURE=1 which makes it look like I bricked my boards???

      What's the definitive test (via CCSv5) for whether a TMS320F28335 is CSM locked?

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Joachim Sinner
      Posted by Joachim Sinner
      on Jul 19 2012 07:25 AM
      Prodigy10 points

      Hi Jerry

      I had a similar problem with a TMS320f28027. After the update of my CCS4.2.4 I`ve got also the message:

      The configured device (TMS320F28027), does not match the detected device (). Flash Programming operations could be affected. Please consider modifying your target configuration file.

      After I exchanged my license I had some problems with the linker. With the message:

      warning: creating output section ".xxx" without a SECTIONS specification

      There where an additional *.cmd-file in my project. I don`t know why.

      After I deleted this file and linked the "DSP280x_Headers_nonBIOS.cmd"  everything worked fine.

      I`m really not an expert in CCS and I don`t know why the way I described work, but perhaps you can also go this way.

      Good luck

      Joachim

      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