3 Replies Latest reply on Nov 12, 2020 12:36 PM by RoMa_4791621

    watchdog timer ISR noob help needed


      i am working with Psoc4 Ble pioneer kit & CY8CKIT-142


      I'm trying to get a handle on writing firmware to do the following:

      1) use as little power as possible

      2) make an ADC reading on a single port at a fixed time interval, perhaps once a minute or once an hour

      3) publish to a custom UUID notification when sampled after time based interval of step 2)



      The attached code is attempting to do this and uses example code from BLE_Temperature_Measurement and PSoC_4_BLE_CapSense_Slider_LED projects.


      The code as-is sends 2 readings out the UART when a BLE central connects then hangs with repeated ISR's from CY_SYS_WDT_COUNTER0_INT.


      Please help to fix and explain how to solve this.  Why is CY_SYS_WDT_COUNTER0_INT going off while WDT_INTERRUPT_SOURCE is not hitting once/second? 

      The BLE slide function only works when WDT_Start() is commented out.