3 Replies Latest reply on Nov 14, 2018 11:11 PM by ShanmathiN_06

    Rtos problem

      Hi there



      I am using psoc5 lp cy8c5888lti-lp097, i m able to to take my micro controller to hibernate with the help of code example which is available in Psoc creator.
      I took my controller to hibernate without watchdog reset but when I am trying with WDT interrupt it reset and my code start again. I have scheduler,FreeRtos,USB,LED which i use as a heartbeat. Do i need to stop any specific interrupt or any specific settings. may be I am missing with something. below is my hibernate function it is working fine but i believe there is something which is consuming power because before hibernate my current reading is 0.033 mA and is hibernate it is 0.007 mA but in code exaple it shows 0.000 mA.

      I believe i am missing with some task or interrupt or something which i need to stop before entering to hibernate.


      And i want to use my this function with WDT interrupt. i use CyWdtStart(CYWDT_1024_TICKS,CYWDT_LPMODE_DISABLED);  it is still not working with my code but working absolutely fine with my code example. same API.



      void Jump2Hibernate()



          /* Prepare system clocks for the Hibernate mode */






          /* Switch to the Hibernate Mode */


          /* Restore clocks' configuration */





      I am doing software reset coz i want to start my code from the beginning. if i don't do this I am not able to have an access to my USB.