1 Reply Latest reply on Apr 23, 2019 5:14 AM by PY_21

    Scanning causes crash


      This was part of another string and is a continuation of the observer/peripheral switching constantly.


      As soon as we turn on scanning, the main loop crashes.

      Sometimes I can get a scan report, sometimes not, any ideas would be appreciated.

      Can you help, new bundle attached.


        • 1. Re: Scanning causes crash



          Please refer to the attached modified project.

          Please refer to the below points.

          1. Don't write big code inside any ISR. Instead, set a variable inside ISR and check the variable status and call the function in main loop.

          2. Always keep the Bless interrupt to highest priority i.e., bless interrupt priority to 0.

          3. Please clear the WDT interrupt properly after completion using CySysWdtClearInterrupt(), this function will Clears all the WDT counter interrupts set in the mask.



          P Yugandhar.