• 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 » Running from flash - InstaSPIN without GUI, build configuration issues
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
  • Running from flash - InstaSPIN without GUI, build configuration issues

    Running from flash - InstaSPIN without GUI, build configuration issues

    This question is not answered
    Jared Allen
    Posted by Jared Allen
    on Aug 07 2012 17:54 PM
    Intellectual440 points

    Here's my required info:

    Host OS: Windows 7 Home Premium, Service Pack 1
    CCS Version: 5.2.1.00018
    DRV8312EVM 6517813 Rev D
    CC2803x ISO DIMM REV 1.3
    Texas Instruments XDS100V1 USB Emulator

    InstaSPIN (not GUI) from controlSUITE

    I'm having some issues with getting my controller to run from flash.  I've modified the project as follows and have verified correct operation in debug mode:

    -running in Build Level 8

    -stop/start hardware buttons function correctly (GPIO 7 and 9, respectively)

    In debug mode, I simply run the program and start/stop using the push buttons.  Now I want to run this from flash as a stand-alone.  I read the application report SPRA958K (Running an Application from Internal Flash Memory on theTMS320F28xxx DSP), which provided information regarding the modification of the linker command file and existing code.  However, I'm still having trouble with a few things.  Here's what I've done

    1) I copied the linker (F28035_FLASH_BLDC_Int_GUI_DRV83xx.CMD) from the GUI project (GUI_project_InstaSPIN_BLDC) because it has all of the flash and RAM already done.  I commented out the two GUI variables since they will not be used and removed the existing linker (F28035_RAM_BLDC_Int.CMD) from the project.

    2) I've added FLASH to the predefined symbol list, as it is defined by the compiler.  This opens up the flash-related code in the project, which is identical to that in the GUI project as far as I can tell.

    My project compiles without errors and appears to erase/program the flash, according to the pop up during the build.  It still works when running from the debugger, but it does not work as a stand-alone after cycling the power with the USB cable disconnected.  I've noticed a few things related to the build configuration that I'd like clarified.  

    It appears that the build options for the InstaSPIN GUI project differ from those of the normal InstaSPIN project.  Some of the options, such as those on the Diagnostics window on the C2000 Linker section of the project properties (images below), seem to be different for some reason.  I tried to make a whole new build configuration, but I haven't had luck with reproducing the options that appear for the GUI project.  I have included snapshots of a couple of the screens I'm referencing.

    -Jared

    "CCSv5" "flash programming"
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    All Replies
    • Jared Allen
      Posted by Jared Allen
      on Aug 08 2012 12:26 PM
      Intellectual440 points

      I'm still don't have an answer to my actual question, but at least I can run from flash as a stand-alone now.  I didn't have the "DSP2803x_CodeStartBranch.asm" file copied into the project.  I still don't have the option of adding the "-w" linker option, which the SPRA958K document says to include as follows:

      "It is suggested that the -w linker option be invoked (it is selected by default for all newly created
      CCS projects). The -w option will produce a warning if the linker encounters any sections in your
      project that have not been explicitly specified for linking in a linker command file."

      Is this only available for certain types of projects?

      -Jared

      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