- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
How can I make soft reset (full system restart) from the Wiced software ?
I use SN8200x and winced 2.4.1
thx
Solved! Go to Solution.
- Labels:
-
SDK 2.4.1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi.
Please try this
#ifndef SCB_AIRCR_ADDRESS
#define SCB_AIRCR_ADDRESS ( 0xE000ED0C )
#endif
#ifndef SCB_AIRCR_VECTKEY
#define SCB_AIRCR_VECTKEY ( 0x5FA << 16 )
#endif
#ifndef SCB_AIRCR
#define SCB_AIRCR ( ( volatile unsigned long* ) SCB_AIRCR_ADDRESS )
#endif
#ifndef SCB_AIRCR_SYSRESETREQ
#define SCB_AIRCR_SYSRESETREQ ( 0x1 << 2 )
#endif
int reboot()
{
WPRINT_APP_INFO( ( "Rebooting...\r\n" ) );
/* Reboot the ARM Cortex M3 */
*SCB_AIRCR = SCB_AIRCR_SYSRESETREQ | SCB_AIRCR_VECTKEY;
/* Never reached */
return 0;
}
Thanks,
Seyhan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi.
Please try this
#ifndef SCB_AIRCR_ADDRESS
#define SCB_AIRCR_ADDRESS ( 0xE000ED0C )
#endif
#ifndef SCB_AIRCR_VECTKEY
#define SCB_AIRCR_VECTKEY ( 0x5FA << 16 )
#endif
#ifndef SCB_AIRCR
#define SCB_AIRCR ( ( volatile unsigned long* ) SCB_AIRCR_ADDRESS )
#endif
#ifndef SCB_AIRCR_SYSRESETREQ
#define SCB_AIRCR_SYSRESETREQ ( 0x1 << 2 )
#endif
int reboot()
{
WPRINT_APP_INFO( ( "Rebooting...\r\n" ) );
/* Reboot the ARM Cortex M3 */
*SCB_AIRCR = SCB_AIRCR_SYSRESETREQ | SCB_AIRCR_VECTKEY;
/* Never reached */
return 0;
}
Thanks,
Seyhan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
work great.
thx