• 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 » Stellaris® ARM® Microcontrollers » Stellaris® ARM® LM3S Microcontrollers Forum » Problem in using Hibernation module
Share
Stellaris® ARM® Microcontrollers
  • Forum
Options
  • Subscribe via RSS
Helpful Stellaris® LM4F Series Links
  • LM4F Series
  • Stellaris PinMux Utility
  • Stellaris® LM4F120 LaunchPad
  • LM4F MCU Applications
  • LM4F MCU Video
  • ARM Cortex-M4F Whitepaper
  • Stellaris MCU Brochure
  • LM4F232 Eval Kit
  • Problem in using Hibernation module

    Problem in using Hibernation module

    This question is not answered
    Harsh Singh
    Posted by Harsh Singh
    on Aug 17 2012 07:00 AM
    Prodigy50 points

    Hi All,

    I am working on LM3S5K31 controoler and embos 3.82K. I am trying to use Hibernation module, but when I write "HibernateIntRegister(MyHibernateHandler);" to register Handler function for processing interrupt, processor got stuck in _IllegalException.

    Please guide me how to use Hibernate module.

    Thanks a lot..

     Harsh 

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    All Replies
    • Lela Garofolo
      Posted by Lela Garofolo
      on Aug 17 2012 16:29 PM
      Genius17190 points

      Harsh,

      Your issue is most likely that you did not correctly configure the interrupt vector in the Startup file.  Which IDE are you using?  In your project, open the startup_ccs.c (or _ewarm, _rvmdk, _gcc), and then insert the extern directive and vector define.  Each IDE has its own specific format, so you should look at other Stellarisware projects that use properly configured interrupts.  For example, if using Keil, in startup_rvmdk.c add  EXTERN  HibernateIntHandler and DCD     IntDefaultHandler           ; Hibernate in the __Vectors section.  Below are some specific examples to look at and where to find them.

      If you have not already done so, download Stellarisware for the LM3Sxxxx devices at http://www.ti.com/tool/sw-lm3s.  It has working examples for all of the evaluation and developement kits. 

      See interrupts or timers example at path C:\StellarisWare\boards\ek-lm3s9b92\interrupts and C:\StellarisWare\boards\ek-lm3s9b92\timers, respectively.

      For a working Hibernate example, see C:\StellarisWare\boards\ek-lm3s1968\hibernate.  This example does not use interrupts, but will give you a good starting point of for configuring, and using the hibernate module.  Since hibernate is similar to a POR, the code is configured to first determine if it is waking up from Hibernate or if it is a POR (power on reset.)

      Review document for a full description of the Stellarisware API's follow path C:\StellarisWare\docs\SW_DRL_UG_xxxx.pdf.  Inside the Stellaris Peripheral Driver Library User's Guide, you will find a full descripton of each of the functions.  For example:

      HibernateIntRegister

      Registers an interrupt handler for the Hibernation module interrupt.

      Prototype:

      void

      HibernateIntRegister(void (*pfnHandler)(void))

      Parameters:  pfnHandler  points to the function to be called when a hibernation interrupt occurs.

      Description:  This function registers the interrupt handler in the system interrupt controller. The interrupt is enabled at the global level, but individual interrupt sources must still be enabled with a call to HibernateIntEnable()

      See also:

      IntRegister() for important information about registering interrupt handlers.

      Returns:

      None.

      To provide another example of hibernate with masked interrupts, I have attached a RTC.c and Startup_rvmdk.c file.  We don't have it available in Stellarisware.  It does demonstrate using masked interrupts for the hibernate module.

      7585.startup_rvmdk.S

      8780.RTC.c

      Lela

      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