• 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 » Development Tools » Code Composer Studio » Code Composer Forum » Error -1029 @ 0x2B5F when changing ARM926 clock
Share
Code Composer Studio
  • Forum
  • Announcements
Options
  • Subscribe via RSS
Common Questions
  • Code Composer Studio Forum Usage Guidelines

  • Resources
  • Code Composer Studio (CCStudio) Product Folder
  • Troubleshooting CCS
  • CCS Wiki
  • Download CCS
  • Order CCS
  • Tools Insider Blog
  • Bug Tracking
  • Forums

    Error -1029 @ 0x2B5F when changing ARM926 clock

    This question is not answered
    Paul Singh
    Posted by Paul Singh
    on May 15 2012 23:09 PM
    Expert1950 points

    Hello CCS experts,

    An error has been found when trying to set L138 ARM core into wait-for-interrupt sleep mode with the following ccs 5.1.1.00031 console message:
    ARM9_0: Error: (Error -1029 @ 0x2B5F) Invalid data read from ICECrusher register. Reset the device, and retry the operation. If error persists, confirm configuration, power-cycle the board, and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 5.0.569.0)  

      
              
    C code below, modified on the basis of evmomapl138 initialization gel, is used to set ARM core’s PSC to “disable”,
       
    /*PSC Module Related Registers*/
    #define PSC0_BASE       0x01C10000
    #define PSC1_BASE       0x01E27000
     
    #define PSC0_MDCTL      (PSC0_BASE+0xA00)
    #define PSC0_MDSTAT     (PSC0_BASE+0x800)
    #define PSC0_PTCMD      *(unsigned int*) (PSC0_BASE + 0x120)
    #define PSC0_PTSTAT     *(unsigned int*) (PSC0_BASE + 0x128)
     
    #define PSC_TIMEOUT      200
     
    void PSC0_LPSC_disable(unsigned int PD, unsigned int LPSC_num) {
        unsigned int j;
     
        if( (*(unsigned int*)(PSC0_MDSTAT+4 * LPSC_num) & 0x1F) != 0x2 ) {
          *(unsigned int*) (PSC0_MDCTL+4*LPSC_num) = (*(unsigned int*) (PSC0_MDCTL+4*LPSC_num) & 0xFFFFFFE0) | 0x0002; //KT: why clear bit 4-0?
          PSC0_PTCMD = 0x1<<PD;
     
          j = 0;
          /*Wait for power state transition to finish*/
          while( (PSC0_PTSTAT & (0x1<<PD) ) !=0) {
            if( j++ > PSC_TIMEOUT ) {
    //          GEL_TextOut("\tPSC0 Enable Transition Timeout on Domain %d, LPSC %d\n","Output",1,1,1,PD,LPSC_num);
              break;
            }
          }
     
          j = 0;
          while( (*(unsigned int*)(PSC0_MDSTAT+4 * LPSC_num) & 0x1F) !=0x2) {
            if( j++ > PSC_TIMEOUT ) {
    //          GEL_TextOut("\tPSC0 Enable Verify Timeout on Domain %d, LPSC %d\n","Output",1,1,1,PD,LPSC_num);
              break;
            }
          }
        }
    }
         
    And such code was invoked on the DSP side using
               
    PSC0_LPSC_disable(0,14);
     
    On the ARM side, an ISR corresponding to ARMCLKSTOPREQ event has been set, and has been tested to be responsive by manually setting bit 26 (26+64(start index of SRSR3)=90, the interrupt number of ARMCLKSTOPREQ) of AINTC.SRSR3 register and observing that the ISR would be triggered. However, problem arises when trying to completing the process by:

    1.    Turning PSC0 ARM module to wait-for-interrupt sleep on the DSP side.

    2.    Expect the triggered ARMCLKSTOPREQ ISR on the ARM core to execute the MCR p15, #0, r3, c7, c0, #4 command to put the ARM core into WFI sleep.

    As soon as DSP executes PSC0_LPSC_disable(0,14), the error message in red font immediately appears in the console window. The status of the emulator connection to DSP core would be “In reset(secure)”, and the status of ARM connection would be “running”.
     
    The error code is “Error -1029 @ 0x2B5F”, and with this string I could found several related threads:

    1.    http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/t/104540.aspx#370046, by JohnS, suggesting using adaptive clocking and lower JTAG clock. He also refers to http://processors.wiki.ti.com/index.php/XDS100#Q:_My_XDS100v2_does_not_work_reliabily_with_the_OMAPL138_.2F_DM365_.2F_ARM926_core

    2.    http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/p/178069/662011.aspx#662011

    3.    http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/p/111531/394883.aspx#394883

    4.    http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/t/112716.aspx

    5.    http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/t/103398.aspx

       
    It seems that the first one is the most pertinent, but it didn’t solve the problem on my machine. I am considering buying a XDS510 USB PLUS emulator but for the time being I am still using a SEED XDS560 PLUS type.
                
    Because this error occurs during attempts to change PSC (domain clock on/off) , the most reasonable explanation seems to be at the wiki link JohnS referred to. However I still haven’t been able to solve my problem with the information.
     
    Appreciate any help on this.
      
      
    Paul
    ARM 926 Error -1029 @ 0x2B5F PSC
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    All Replies
    • Paul Singh
      Posted by Paul Singh
      on May 15 2012 23:15 PM
      Expert1950 points

      Also regarding the wiki link JohnS referred:

      The fist of its suggestion is to use code rather than GEL for changing the PLL:

      http://processors.wiki.ti.com/index.php/XDS100#Q:_My_XDS100v2_does_not_work_reliabily_with_the_OMAPL138_.2F_DM365_.2F_ARM926_core

      A couple of things to try:

      1. Setup the PLL by executing code (ex: UBoot, etc.) instead of using the GEL file. (preferred)
      2. Turn on adaptive clocking XDS100#Q:_How_can_I_turn_on_adaptive_clocking.3F and setup the timeouts to very slow. In this mode, it is still better to "run" the code and not "step" it.
      3. Make sure you have the latest CPLD version. To update the XDS100v2 CPLD, please see XDS100#Q:_How_can_I_update_the_CPLD_on_my_XDS100v2.3F

      I have tried both code and GEL methods, and the error message when disabling ARM PSC can be seen at the lower half the the screenshot attached above. The error exists regardless of the GEL/code choice.
      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