Reset request
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2010-06-30 9:40 PM
Posted on July 01, 2010 at 06:40
Reset request
This discussion is locked. Please start a new topic to ask your question.
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-05-17 4:56 AM
Posted on May 17, 2011 at 13:56
If it's of any interest, the version 3.2 of the library implements it like this,
static __INLINE void NVIC_SystemReset(void) { SCB->AIRCR = ((0x5FA << SCB_AIRCR_VECTKEY_Pos) | (SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) | SCB_AIRCR_SYSRESETREQ_Msk); /* Keep priority group unchanged */ __DSB(); /* Ensure completion of memory access */ while(1); /* wait until reset */ } John F.Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-05-17 4:56 AM
Posted on May 17, 2011 at 13:56
Answered it myself, the above snippet works great!
My toolchain was not setup properly causing me greifOptions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-05-17 4:56 AM
Posted on May 17, 2011 at 13:56
The softreset has a curious feature:
In my tests the softreset is about 150 times slower than a hardreset! The resethandler did only the respective reset. Time measured between two consecutive resets: - softreset ~760µs - hardreset ~5µs