Question
Problem with Soft reset on STM32F427ZI Rev 3 silicon
Posted on August 03, 2016 at 18:13
I have a new board that uses the rev 3 silicon and it will not reset under software control. I have an older board design that uses the rev 1 silicon and the software reset logic works properly. The new board design is based on the previous one.
The code I use from core_cm4.h and is:___STATIC_INLINE
void
NVIC_SystemReset(
void
)
{
__DSB();
/* Ensure all outstanding memory accesses included
buffered write are completed before reset */
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 */
}
After I execute the macro I break the debugger and its stuck in the while() loop.
Any thoughts?
Thanks...Keith Rhodes