2 Replies Latest reply on Dec 13, 2019 8:10 AM by CoreyW_81

    Saving a variable after calling wiced_hal_wdog_reset_system();

    CoreyW_81

      Is there any way to save a variable through a call to wiced_hal_wdog_reset_system();

      I want to save a single byte of data which can act as a flag when I come back from the soft reset.

      Device is the CYBT-343026-01 module.

       

      Let me know.

        • 1. Re: Saving a variable after calling wiced_hal_wdog_reset_system();
          SheetalJ_96

          Hi Corey,

           

          You can set a variable to required value after calling wiced_hal_wdog_reset_system(). Then check its status after coming back from soft reset. I do not think of any other way to pass any variable after calling this soft reset API.

          • 2. Re: Saving a variable after calling wiced_hal_wdog_reset_system();
            CoreyW_81

            Sheetal - I don't think this makes sense.  I believe that when you call wiced_hal_wdog_reset_system(); you do not return so no firmware AFTER this call would be executed.  So, assigning a variable after the call would not have an effect.

             

            Setting a variable BEFORE the call is what I want, and I want that variable to stay valid after the soft reset.  I don't think a globally defined variable will survive the reset, unless there is a special way to define the variable so that it is not initialized during the reset.

             

            Please let me know what you can find out from the firmware team on this.