API for Softreset in LPC5410x

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

API for Softreset in LPC5410x

480件の閲覧回数
chethanshetty
Contributor I

Hi,

   Is there any API to softreset in LPC5410x controller???

BR

Chethan

タグ(1)
0 件の賞賛
返信
1 返信

405件の閲覧回数
kerryzhou
NXP TechSupport
NXP TechSupport

Hello Chethan shetty,

  If you are using the LPCopen code,  you will find the API code in teh core_cm4.H

/** \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 */
}

/*@} end of CMSIS_Core_NVICFunctions */

Wish it helps you!


Have a great day,
Kerry

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信