- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.