Banner_AURIX_Security-Solution Banner_AURIX_Safety_Products ShieldBuddy TC275 Banner_AURIX_OnzerOS Banner_AURIX_DevelopmentStudio

+ Reply to Thread
Results 1 to 3 of 3

Thread: RESET after code to start OS Sch table or non-volatile mem read add in INIT task

  1. #1
    New Member New Member shilhas is on a distinguished road
    Join Date
    Mar 2020

    RESET after code to start OS Sch table or non-volatile mem read add in INIT task


    I am currently having reset on my system after I added code to start schedule table. although this reset occurs even before the code to start schedule table is executed.
    I have activated all the 3 cores on my machine now I am not sure which core is reseting the system and why.

    I have checked RSTSTAT register it shows "SW" reset was requested and RSTCON register shows "System" but this is always active I think and RSTCON2.USRINFO is always 0.

    I have set breakpoints in trap routines and none of the TRAP were triggered so this does not seem to be related to context switch area. What else could be possible?
    I want to know what is the cause of reset or at least on which core and at what location this reset occurs, any help in this direction would be of great help.

    PS:I also had a condition where I had put break point (probably in ISR) after which code would run normally (or as expected). Also note all the 3 WDGs is disabled in Lauterback script


  2. #2
    Intermediate Intermediate UC_wrangler will become famous soon enough
    Join Date
    Jun 2019
    It's almost certainly something to do with the watchdog system - by default, if a watchdog recovery timer expires, it causes a reset. You might try changing the SMU configuration to ignore the recovery timer alarms instead of doing a reset by changing ALM10[16] and ALM10[17] to no action (SMU_AG10CFG1=0 and SMU_AG10CFG2 = 0).

    By default, when a debugger is connected, the watchdog system is disabled. If you have "SYStem.Option WDTSUS ON" in a Lauterbach script, it will enable the watchdog system, but suspend it if the CPU is suspended (e.g., at a breakpoint). Is WDTSUS in your scripts?

    In addition to the CPU watchdogs, there's also an overall Safety Watchdog to think about.

  3. #3
    Advanced Advanced
    Infineon Employee
    Infineon Employee
    MoD is on a distinguished road
    Join Date
    Feb 2012
    RSTSTAT.B.SW will be set only when the last reset was done because of a write of 0x2 to register SWRSTCON. Please check your code under which circumstances a write to this register occurs. In the debugger you can set a write breakpoint to the address of SWRSTCON to detect the write to this register. Watchdog reset is visible as SMU reset.
    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

Tags for this Thread


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.