2010-06-30 09:40 PM
Reset request
2011-05-17 04:56 AM
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.2011-05-17 04:56 AM
Answered it myself, the above snippet works great!
My toolchain was not setup properly causing me greif2011-05-17 04:56 AM
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