• 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 » Booting Concerto Experimenters Kit from On Board Flash
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
  • Booting Concerto Experimenters Kit from On Board Flash

    Booting Concerto Experimenters Kit from On Board Flash

    This question has suggested answer(s)
    Brent Kowal
    Posted by Brent Kowal
    on Jan 11 2012 07:20 AM
    Prodigy20 points

    I have successfully been able to run applications on both the M3 and C28 core of the concerto kit using the debug tool in Code Composer 4.  However, I am struggling to get the correct settings to boot the device out of on board flash.  Could someone provide the correct jumper and switch settings to get the device to boot on its own without the debugger.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    All Replies
    • Trey German
      Posted by Trey German
      on Jan 11 2012 08:31 AM
      Suggested Answer
      Genius14510 points

      Hi Brent,

      The key to getting Concerto to boot on its own is disconnecting TRST from the emulator.  This can be done by switching the left most switch in SW3 to the down position.  You will also need to ensure that all the switches in SW1 are in the up position.  This will allow the M3 to boot standalone.  To boot the C28 you need to have a call to the IPC function that boots the C28:

          //  Send boot command to allow the C28 application to begin execution
          IPCMtoCBootControlSystem(CBROM_MTOC_BOOTMODE_BOOT_FROM_FLASH);                 

        Take a look at the dual core blinky example in the latest Concerto controlSUITE release (v110) for an example.


      Trey

      Trey German

      C2000 Applications

      If a post answers your question, please mark it with the "verify answer" button.
      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.
    • Vincent Look
      Posted by Vincent Look
      on Apr 17 2012 13:39 PM
      Prodigy30 points

      Hi,

      I am having the same problem. I am loading the software and running the Master version of the blinky program. I am able to step through it fine and it plays fine. When I stop the debugging, it continues to run the blinky program. On power cycle, it no longer runs the program. My SW3 position one has been switched to OFF, and SW1 remains in default (all in the ON/UP position). Is this because I am running the Master version of blinky and the C2000 core is not getting programmed?

      -Vincent

      Boot from flash Concerto
      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • HarrisonPham
      Posted by HarrisonPham
      on Apr 17 2012 14:41 PM
      Prodigy610 points

      Hi Vincent,

      You'll need to set the SW1 dip switches to the OFF position (towards the DIMM connector).  This will configure the M3 core to boot from flash.

      If you want to boot the C28x from flash, you will need to send a IPC command to the C28x.  Trey's post shows how to do this.

      Regards,
      Harrison 

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Vincent Look
      Posted by Vincent Look
      on Apr 17 2012 15:41 PM
      Prodigy30 points

      Thanks Harrison, but Trey's post says that the dip dwitches in SW1 should be in the up position (away from the dimm connector) and the left most switch position in SW3 should be in the down position. I have tried with all switches in SW1 in the down position(towards the dimm connector) and it seems to be doing something, but it does it slower, for example, the blinky code blinks much slower than when i'm running it from debug mode.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • HarrisonPham
      Posted by HarrisonPham
      on Apr 17 2012 17:00 PM
      Prodigy610 points

      Hi Vincent,

      The F28M35x_examples_Master blinky example doesn't configure the Flash wait states, which would be why you are seeing slower code execution.  Try the F28M35x_examples_Dual version and you should see the LED blink at the correct frequency.

      The lines of interest for configuring the flash waitstates in blinky_dc_m3.c:

      // Copy time critical code and Flash setup code to RAM
      // This includes the following functions: InitFlash();
      // The RamfuncsLoadStart, RamfuncsLoadSize, and RamfuncsRunStart
      // symbols are created by the linker. Refer to the device .cmd file.
      memcpy(&RamfuncsRunStart, &RamfuncsLoadStart, (size_t)&RamfuncsLoadSize);

      // Call Flash Initialization to setup flash waitstates
      // This function must reside in RAM
      FlashInit();
      
      
      Regards,
      Harrison 

       

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Vincent Look
      Posted by Vincent Look
      on Apr 17 2012 17:40 PM
      Prodigy30 points

      Thanks Harrison,

      What position should the SW3 switches be in?

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Ronaldo Pace
      Posted by Ronaldo Pace
      on Apr 18 2012 04:23 AM
      Intellectual875 points

      Vincent,

      to run from flash (without debugger) SW3-1 must be down. SW3-2 doesn't matter (it's just for the UART).

      If you check on the control suite package \\TI\controlSUITE\development_kits\~controlCARDs\CCF28M35xxHWdevPkg\ you can find a PDF with the schematic for the board and will see that SW3-1 is connects or disconnects the TRST-n signal from the JTAG emulator. That way, for the board to run from flash without the debugger, the JTAG emulator must be disconnected. Hope it makes sense.

      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