• 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 » After compiling code for the TMS320F28034 the load fails and reports that the flash is locked or not connected.
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

    After compiling code for the TMS320F28034 the load fails and reports that the flash is locked or not connected.

    This question is not answered
    Michael Sottile
    Posted by Michael Sottile
    on Dec 20 2012 13:36 PM
    Prodigy5 points

    The code we are using has been built and successfully loaded onto the TI Control Card which has the ‘F28035 processor.  Apparently, TI doesn’t sell control cards with the ‘28034 processor.  When I then try to load this into the ‘F28034 processor which is on my board design I get the following error “C28xx: Flash Programmer: Device is locked or not connected. Operation cancelled.

    C28xx: GEL: File: I:\HL Project\Software\debu\workspace_RotaFlowHW\RotaFlowSS\Debug\RotaFlowSS.out: Load failed.”

     

    When I test the target using the proper emulator and selecting the TMS320F28034 processor the emulator is properly reset and reports that one device has been found in the scan chain.  So it appears that the emulator is properly set up and the target has been found to be present.

     

    In both of the above load attempts I am using the same design JTAG interface which I had previously successfully used to program the other processor in my board design the ‘F28069.

     

    I have notice that there is a ‘.tcf’ file which had previously been created referencing the ‘F28035’ processor.  I don’t know if this could be the problem or not.

    C2000 TMS320F28034 processor won't load flash
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    All Replies
    • John Walker
      Posted by John Walker
      on Dec 21 2012 15:24 PM
      Expert3400 points

      Mike,

      Apart from the CLA there is functionally no difference between F28034 and F28035.  This is why we don't sell a different kit.  It looks like the device actually might be locked.  Here are some things to check:

       

      Is this a brand new part or has it been programmed before?  Was there a password (just checking)?

       

      When you connect with the emulator can you view the contents of internal protected memory (flash, L0, L1,...)?  If not, in the CCS Debug (I'm assuming this is CCSv5) perspective, try: "Scripts -> Code Security Module - Unlock_CSM".

       

      What happens if you open the flash tool from the debug perspective in CCS?  Can he unlock the flash using the button in the Code Security Password section?

       

      We have seen a couple of forum posts similar to this one where the latest version of the flash tools were not being used.  It's always worth checking for CCS updates when this type of thing happens - just in case.

      Hope this helps.  Let me know what you find.

       

      John

      John Walker

      Embedded Processor Applications
      Centralized Applications Team

       

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Brett Larimore
      Posted by Brett Larimore
      on Dec 27 2012 10:37 AM
      Mastermind18530 points

      Mike,

      Asides from what John has mentioned it may also be worthwhile to take a look at your project's linker command file.  I would make sure that you've used the linker command file for the F28034 (instead of the one for F28035).  This will keep the linker from putting code into memory that exists on the F28035 MCU but doesn't exist in the F28034 MCU.


      Thank you,
      Brett

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Michael Sottile
      Posted by Michael Sottile
      on Dec 27 2012 13:26 PM
      Prodigy5 points

      Brett,

      I am presently working on what John sent me and so far I have been able to connect to the processor in the CCS Debug perspective and I am able to see the memory and register contents but when I try to erase flash it reports "Error erasing flash memory.  Device is locked or not connected." 

      Regarding the linker command for the F28034 I asked about that with the our programmers and they are not aware of a specific F28034.cmd file. We are using using the F28035.cmd file and within its' contents it states that this file may be used for all F2803x devices.

      Thank you for your input.

      Mike

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Brett Larimore
      Posted by Brett Larimore
      on Dec 27 2012 14:22 PM
      Mastermind18530 points

      Michael,

      Assuming you can view protected memory (such as L0) via the memory window, it looks like the device is not locked.  A secondary check on this would be to read memory locations 0x3f7ff8 - 0x3f7fff when connected via CCS.  If these location can be read and are all 0xFFFF the device is unsecure (not locked).

      Within controlSUITE there are various linker command files for each device.  See below path for where to find this in cSUITE.  Most of the time using the larger F28035 file on all F2803x devices is fine, however occasionally an issue can pop up such as when you are trying to use more memory than you have available.
      \controlSUITE\device_support\f2803x\v126\DSP2803x_common\cmd\

      Additionally, do you happen to have a second controlCARD that you can try with?


      Thank you,
      Brett

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Michael Sottile
      Posted by Michael Sottile
      on Dec 27 2012 15:40 PM
      Prodigy5 points

      Brett,

      On the card that we are discussing I did check the  the PWL locations referenced above and the contents are all '0s' indicating that the flash is locked.  I was also able to change the contents of low memory.

      Using the  link suggested above I was not able to find a source for an f28034 cmd (linker?)  file.

      I have now connected the emulator to the JTAG input of a new virgin (never been used or programmed) and checked the PWL locations and they are all 'Fs".  I will be attempting to program this card soon unless you suggest that I wait awhile.

      Thank you,

      Mike

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Brett Larimore
      Posted by Brett Larimore
      on Dec 27 2012 15:48 PM
      Mastermind18530 points

      Michael,

      You should be able to find the linker cmd files where I mentioned.  Note that (assuming cSUITE is installed) your specific version of f2803x device_support may be different:
      \controlSUITE\device_support\f2803x\v126\DSP2803x_common\cmd\

      I expect you won't have any issues programming your device, but I'd still recommend moving to the proper cmd when able. 

      Out of curiosity were you able to program the first device (that now seems locked) once, or not at all?


      Thank you,
      Brett

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Michael Sottile
      Posted by Michael Sottile
      on Dec 28 2012 06:56 AM
      Prodigy5 points

      Brett,

      Ok, I did find the F28034.cmd linker file and I did correct the workspace program to include the proper link file.  I tried to load the test file we are using and it refused to load. The error I got is now different, I suspect that the file was too large for this part.  I am investigating.

      Thank you,

      Mike

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Michael Sottile
      Posted by Michael Sottile
      on Jan 03 2013 06:43 AM
      Prodigy5 points

      Problem has been resolved. Thank you for your help.

      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