• 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 » Concerto Office Hours - Live E2E Chats on October 4, 5 and 6th!
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

    Concerto Office Hours - Live E2E Chats on October 4, 5 and 6th!

    This question is not answered
    RandiW
    Posted by RandiW
    on Sep 08 2011 23:56 PM
    Prodigy485 points

     

    Get real-time answers to all your Concerto MCU questions!   Concerto experts will be online answering YOUR questions right when you ask them!  Check back to this thread on the day/times below! You can also email subscribe to this thread for any updates and to be notified once they start.

    Tuesday, Oct 4th from 11-12 CST
    Concerto™ MCU Experts: Michael Wei and Lori Heustess

    Wednesday, Oct 5th  from 3-4 CST
    Concerto™ MCU Experts: Brett Novak and Trey German

    Thursday, Oct 6th  from 9-10 CST
    Concerto™ MCU Experts: Michael Wei and Lori Heustess

    Learn more about Concerto™ MCUs

     


    Report Abuse
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    All Replies
    • Tim11828
      Posted by Tim11828
      on Oct 06 2011 09:59 AM
      Expert1300 points

      Hi Chrissy,

      Thanks. I did not mean to confuse the two issues (boot & CpuTimer0). My question on CpuTimer0 is a separate issue.

      So what happens when I power cycle the Control Card? Will the bootloader bug get in the way?

      Tim

      Report Abuse
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Lori Heustess
      Posted by Lori Heustess
      on Oct 06 2011 09:59 AM
      Guru50805 points

      Tim11828

      I was checking my Cpu clock setup yesterday and saw something that was puzzling. In the ARM I have:

       

      // Setup main clock tree for 75MHz - M3 and 150MHz - C28x

              SysCtlClockConfigSet(SYSCTL_SYSDIV_1 | SYSCTL_M3SSDIV_2 | SYSCTL_USE_PLL |

                               (SYSCTL_SPLLIMULT_M & 0x0F)|SYSCTL_XCLKDIV_4);

       

       

      And in C28 I have setup CpuTimer0 to interrupt:

      ConfigCpuTimer(&CpuTimer0, C28_FREQ, 50);

       

      But when I timed the rising and falling edge, I see 100 usec instead of 50. Some other setting I forgot?

      Tim

      4784.main_c28.txt

       

      Tim,

      At first glance it looks right.  I will need to look closer and get back to you.

       

      Did a reply answer your question? If yes, please click the "yes" button located at the bottom of that post.
      Visit these helpful C2000 Links!
      C2000 TI Wiki Pages
      TI Forum Sitemap
      ControlSUITE
      C2000 Getting Started
      CLA FAQs
      Workshop Material!
      Report Abuse
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Lori Heustess
      Posted by Lori Heustess
      on Oct 06 2011 10:17 AM
      Guru50805 points

      This concludes Concerto office hours.  If you have a new question, please start a new post.

      Tim,  I'm still looking at your last question.

      Did a reply answer your question? If yes, please click the "yes" button located at the bottom of that post.
      Visit these helpful C2000 Links!
      C2000 TI Wiki Pages
      TI Forum Sitemap
      ControlSUITE
      C2000 Getting Started
      CLA FAQs
      Workshop Material!
      Report Abuse
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Santosh Athuru
      Posted by Santosh Athuru
      on Oct 06 2011 10:21 AM
      Expert7400 points

      Tim,

      if your program control is stuck there, it means that control subsytem found some error while booting and it is not ready to accept IPC commands.

      Can you send us the value that you see in CTOMIPCBOOTSTS registers on M3, when it is stuck waiting for control subsytem ready?

       

       

       

      Best Regards

      Santosh

      Report Abuse
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Tim11828
      Posted by Tim11828
      on Oct 06 2011 10:24 AM
      Expert1300 points

      Hi Santosh,

      I will send that value to you. I am not in the office right now. Give me about an hour.

      Tim

      Concerto Cpu clock
      Report Abuse
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Santosh Athuru
      Posted by Santosh Athuru
      on Oct 06 2011 10:45 AM
      Expert7400 points

      ok...also please send me the 32 bit values you see at the below locations too, along with CTOMIPCBOOTSTS.

      on Master subsytem - 0x68047C

      on Control Subsytem - 0x2403FE

       

      Best Regards
      Santosh

       

       

      Report Abuse
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Trey German
      Posted by Trey German
      on Oct 06 2011 10:58 AM
      Genius14470 points

      Tim,


      I was able to get a hold of the pre-release copy of the bootROM guide which spells out exactly what you need to do to get your application running standalone on the C28. I had forgotten that the GEL files perform a RAM initialization during debug, but this must be done manually by an application before using the RAMs.  I've attached functions which do this.

      I've been talking with Santosh and we believe you have a part whose OTP may not be programmed which can potentially cause the bootROM to ITRAP. Check the memory locations he requested first and report back, and then try these RAM Init functions.

      4087.ipc_raminit.c

       

      1.1      Guidelines To Concerto Boot ROM Application Writers

      This section provides guidelines to write master subsystem application in-order to kick-start a peripheral boot loader on C-Boot ROM or to let control subsystem to boot to flash.

      1.1.1            Master Subsystem Application Procedure to start C-Boot ROM boot loaders

      As explained in the above boot rom sections, M-Boot ROM brings control subsystem out of reset so that it can execute C-Boot ROM and M-Boot ROM will continue to execute its own application. Mean-while C-Boot ROM initializes the control subsystem as explained and puts C28x CPU in IDLE Low Power Mode. It is up to the Master subsystem application to decide on how it wants to let control subsystem boot and function. The flow diagrams and procedures listed below in this section explain the minimum things that should be done in order to successfully boot control subsystem.

      Figure 0‑11   Master Subsystem Application Flow To Start C-Boot ROM Loaders

       

      Note: Please refer to next section for more details on Control Subsystem RAM-INIT procedure. Master application can avoid doing this RAM-INIT if control subsystem application in flash takes care of this by itself or if the user application code is downloaded to M0 RAM first, which Zero-initializes all the control subsystem RAMs before using them.

      1.1.2            Master Subsystem Application Procedure to Initialize Control Subsystem RAM using IPC

      As explained in section 1.6.2 all the control subsystem RAM, except for M0 RAM must be Zero-Initialized before they are used by Control subsystem applications, this is to avoid un-wanted RAM ECC errors because of un-initialized RAM locations.

      MOTC IPC Commands should be used by master subsystem application to set bits in control subsystem registers to Zero-Initialize all control subsystem memories. The below code shows the procedure in detail.

      Below are some defines that the code uses for ease of implementation, these registers are explicitly defined and described in Internal memories chapter of this document.  The below functions use IPCLITE driver library software to send IPC commands to C-Boot ROM. The IPCLITE driver library is released as part of header files release in F28M35x Concerto release.

       

      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
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Tim11828
      Posted by Tim11828
      on Oct 06 2011 11:47 AM
      Expert1300 points

      Hi Santosh, Trey,

      They are:

      CTOMIPCBOOTSTS: 0x0

      Master subsytem - 0x68047C (32 bits): 0x00000001

      Control Subsytem - 0x2403FE: ---

       

      Also in the screen shots attached.

      Trey, I'm going to try the RAM Init functions next.

      Tim

       

       

      ControlSUITE Concerto c28 flash
      Report Abuse
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Tim11828
      Posted by Tim11828
      on Oct 06 2011 12:50 PM
      Expert1300 points

      Hi Trey,

      I called those 2 functions, and now it''s stuck at:

      //wait until C-BootROM acks

              while(HWREG(MTOCIPC_BASE + IPC_O_MTOCIPCFLG) & IPC_FLAG1);

      Thanks,

      Tim

      ControlSUITE Concerto c28 flash
      Report Abuse
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Santosh Athuru
      Posted by Santosh Athuru
      on Oct 06 2011 14:31 PM
      Expert7400 points

      Hi Tim

      thanks for the info. 

      CTOMIPCBOOTSTS =0x0 - doesn't look good. something is wrong, so your RAM INIT code from M3 application will not run yet. We will find out what is wrong here.

      for "Control Subsytem - 0x2403FE" location can you add *(0x2403FE) in your watch window and give me contents. It doesn't show up in your memory window.

      Also can you give the contents of 0x20004000 location on master subsytem. 

       

      along with above, can you also give below information, when the error happens.

      1. disconnect everything in CCS  and connect back to master subsystem and control subsytem targets. Now both the cores are in DEBUG HALT. Can you give me the PC location for control subsystem or copy paste the dis-assembly window contents here.

      2. Did you try running stand-alone? I assume master subsystem is booting properly to M-Flash. it is only your control subsystem that is not booting properly. How do you know your application is booting properly when testing in stand-alone. Do you toggle some IOs from both Master application and control subsystem applications in flash?

       

      Best Regards
      Santosh 

       

      Report Abuse
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Tim11828
      Posted by Tim11828
      on Oct 07 2011 12:12 PM
      Expert1300 points

      Hi Lori,

      Once I got the C28 to boot out of Flash, CpuTimer0 worked as configured. I don't know what the relationship is, but the two seems to be related! I am still testing to verify that booting out of Flash works correctly, but thank you for your help!

      Tim

      ControlSUITE Concerto c28 flash
      Report Abuse
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Tim11828
      Posted by Tim11828
      on Oct 07 2011 12:23 PM
      Expert1300 points

      Hi Trey, Santosh,

      After repeated tries, the boot to Flash appears to be working. Initializing the RAM from M3 appears to fix the problem. I am going to run this some more to make sure there aren't anything else I overlooked.

      Santosh, do you still want me to provide you with the data you asked for? I can send those over if you would still like to have them, it's not a problem. I could not get anything out of *(0x2403FE). I never had an issue with the Master subsystem. I was using the LEDs to verify that both sides were running correctly.

      Also, my memory address input drop down box is very small. Is there a way to fix that? I saw screen shots some where else, and it's not like that. 

      Thank you guys for the great support!!

      Tim

      ControlSUITE Concerto c28 flash
      Report Abuse
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Santosh Athuru
      Posted by Santosh Athuru
      on Oct 07 2011 12:56 PM
      Expert7400 points

      Hi Tim

      nice...you don;t have to provide that information. I wanted to make sure you have correct revision of data contents in TI memory space. It seems like you have because you got it to working.

      Let us know if you have anymore questions.

       

      Best Regards

      Santosh

      Report Abuse
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Lori Heustess
      Posted by Lori Heustess
      on Oct 07 2011 15:05 PM
      Guru50805 points

      At this point I believe all the questions have been answered, so I am going to close the office hour thread.  If you have further questions about Concerto please start a new thread.

      Thank you!

      Lori

      Did a reply answer your question? If yes, please click the "yes" button located at the bottom of that post.
      Visit these helpful C2000 Links!
      C2000 TI Wiki Pages
      TI Forum Sitemap
      ControlSUITE
      C2000 Getting Started
      CLA FAQs
      Workshop Material!
      Report Abuse
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    1234
    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