• 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 » lwip SysTick interrupt
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

    lwip SysTick interrupt

    This question is not answered
    Markus Tamas
    Posted by Markus Tamas
    on Apr 27 2012 07:20 AM
    Prodigy170 points

    I have a question in connection with the lwIP concerto example.  The lwIP timer is served in a SysTick interrupt handler. But what will happen if i have an infinite loop for example in my data sending function? Will a next SysTick interrupt  occur or SysTick interrupt is disabled somewhere in the lwipTimer() function?

    Thanks in advance.

    Regards,
    Tamas

    LWIP
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    All Replies
    • BrandonAzbell
      Posted by BrandonAzbell
      on Apr 27 2012 18:54 PM
      Guru54790 points

      The definition of lwIPTimer() is found in .\MWare\utils\lwiplib.c.  It simply triggers the Ethernet interrupt handler by forcing a software trigger of the Ethernet Interrupt in the NVIC.

      Brandon

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Markus Tamas
      Posted by Markus Tamas
      on May 03 2012 03:18 AM
      Prodigy170 points

      Hi Brandon,

      Thank you for your last answer.
      My question is focusing on the interrupt events. Why doesn't happen a SysTickInterrupt during the EthernetInterrupt?
      They SysTickInterruptHandler() call the lwIPTimer() which triggers the EthernetInterruptHandler(). And for example if i have an UDP packet sender in the EthernetInterruptHandler() which works in an infinite loop, the SysTickInterruptHandler() and so the lwipTimer() are not called anymore. But why not?

      I think the UDP packet sender is handled in the Ethernet interrupt not in the lwIPTimer() since it just trigger the Ethernet Interrupt. Obviously i am wrong, but i would like to know have it works.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • BrandonAzbell
      Posted by BrandonAzbell
      on May 23 2012 21:46 PM
      Guru54790 points

      The lwIPEthernetIntHandler() interrupt service routine for the Ethernet MAC (triggered by lwIPTimer()), runs the handling of the interrupt within the interrupt context IF this is configured to run without an OS (ie. NO_SYS precompiler flag is set).  This is found in lwiplib.c.

      To trace through this, I performed a series of greps to trace through the call path.  You should be able to perform the same and see the concertoif_interrupt() is either called within the lwIPEthernetIntHandler() if NO_SYS is defined, or in a process that is pending on a semaphore if a RTOS is used.  If the RTOS is used, the concertoif_interrupt() is likely called in a task that has interrupts reenabled.

      Brandon

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Markus Tamas
      Posted by Markus Tamas
      on Jun 25 2012 03:52 AM
      Prodigy170 points

      Thank you Brandon for the help! My problem was that i needed a precise time and sometimes the SysTick wrapped while i was in the Ethernet Interrupt Handler. So at that time i always got a wrong system time. That is why i didn't understand the concept of the example program, but now i could eliminate this issue with the reading of the COUNT flag of the STCTRL register which set if the systick reach the zero value. And if  i would like to create a timestamps for an IP packet i can calculate it.

      Best regards,
      Tamas

      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