About the failure of lpc18xx software reset

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

About the failure of lpc18xx software reset

880 次查看
1595352306
Contributor I

Please ask, the program inside the call__ set_ FAULTMASK(1); NVIC_ SystemReset(); These two sentences reset the software and run the program to NVIC_ In systemreset__ DSB () is dead and can't be reset. What's the situation? Have you ever had a problem like this?

 

/** \brief System Reset

The function initiates a system reset request to reset the MCU.
*/
__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 */
}

标签 (1)
0 项奖励
回复
1 回复

867 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello ,

It seem this is the same with

https://community.nxp.com/t5/LPC-Microcontrollers/%E5%85%B3%E4%BA%8ELPC18xx%E8%BD%AF%E4%BB%B6%E5%A4%... 

I have reply you on that thread, thanks.

 

BR

Alice

0 项奖励
回复