+ Reply to Thread
Results 1 to 2 of 2

Thread: XMC1300 UART002_EXAMPLE_XMC13 with RTOS

  1. #1
    New Member New Member
    Infineon Employee
    Infineon Employee

    Join Date
    Aug 2013
    Location
    Dresden
    Posts
    2
    Points
    37.5

    XMC1300 UART002_EXAMPLE_XMC13 with RTOS [Problem]

    Hello,

    i'm getting frustrated
    I'll try to get the UART002_EXAMPLE_XMC13 running with the RTOS. But i got the problem during runtime. The RTOS runs in a error state.. with "OS_ERR_STK_OVF"

    As described here without RTOS
    here
    This is working fine. I would like to say the UART_Simple from the website is no problem

    I stuck on
    Code:
    status_t UART002_WaitForCompletion
    (
      const UART002_LocalStructType* Config, 
      time_t Timeout
    )
    {
    //[....]
      DBG002_FUNCTION_ENTRY(APP_GID,UART002_FUN_ENTRY);
        /* Wait for completion of do-that */
    //--> here the RTX runs in failure <-------
       Event = osSignalWait(Config->SignalId, Timeout);
      
       if(Event.status == osEventTimeout)
    and then the program ended up in "RTX_Conf_CM.c"
    Code:
    void os_error (uint32_t err_code) {
      /* This function is called when a runtime error is detected. Parameter */
      /* 'err_code' holds the runtime error code (defined in RTL.H).         */
    
      for (;;) {
      /* HERE: include optional code to be executed on runtime error. */
      }
    Click image for larger version

Name:	stuck-in-rt_stk_check-OS_ERR_STK_OVF.jpg
Views:	14
Size:	27.1 KB
ID:	401

    Somebody who knows something? Please help.
    Last edited by Dirk; Oct 24th, 2013 at 07:15 AM. Reason: Changed title
    The views expressed here are my personal opinions, have not been reviewed or authorized by Infineon and do not necessarily represent the views of Infineon.

  2. #2
    New Member New Member
    Infineon Employee
    Infineon Employee

    Join Date
    Aug 2013
    Location
    Dresden
    Posts
    2
    Points
    37.5
    Hello,

    i found my problem.
    i have to set the compiler optimization to >0, after that the cpu was running like a charm,

    Anyway could me somebody tell good compiler options for gcc for arm?
    The views expressed here are my personal opinions, have not been reviewed or authorized by Infineon and do not necessarily represent the views of Infineon.

+ Reply to Thread
Disclaimer

All content and materials on this site are provided “as is“. Infineon makes no warranties or representations with regard to this content and these materials of any kind, whether express or implied, including without limitation, warranties or representations of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. No license, whether express or implied, is granted by Infineon. Use of the information on this site may require a license from a third party, or a license from Infineon.


Infineon accepts no liability for the content and materials on this site being accurate, complete or up- to-date or for the contents of external links. Infineon distances itself expressly from the contents of the linked pages, over the structure of which Infineon has no control.


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 Usage Terms of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Usage Terms of this site. Infineon reserves 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.