MKL25Z128-How can I reset MCU

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

MKL25Z128-How can I reset MCU

跳至解决方案
946 次查看
陈欣
Contributor III

I want to reset MCU by software,How can I control the register?

Thanks;

0 项奖励
回复
1 解答
657 次查看
LuisCasado
NXP Employee
NXP Employee

Hello,

You can check in the Cortex M0+ :

http://infocenter.arm.com/help/topic/com.arm.doc.ddi0484c/DDI0484C_cortex_m0p_r0p1_trm.pdf

AIRCRa Application Interrupt and Reset Control Register in the ARMv6-M Architecture ReferenceManual.

Checking in the ARMv6-M RM :

https://silver.arm.com/download/ARM_and_AMBA_Architecture/AR585-DA-70000-r0p0-00rel0/DDI0419C_arm_ar...

    In the AIRCR register, WO - SYSRESETREQ bit. :  Writing 1 to this bit asserts a signal to request a reset by the external system.

This register is in address : 0xE000ED0C

So you should write the bit [2] SYSRESETREQ in that address to request a SW reset. Take care with the rest of the bits value, modify only that bit.

Regards,

Luis

在原帖中查看解决方案

0 项奖励
回复
1 回复
658 次查看
LuisCasado
NXP Employee
NXP Employee

Hello,

You can check in the Cortex M0+ :

http://infocenter.arm.com/help/topic/com.arm.doc.ddi0484c/DDI0484C_cortex_m0p_r0p1_trm.pdf

AIRCRa Application Interrupt and Reset Control Register in the ARMv6-M Architecture ReferenceManual.

Checking in the ARMv6-M RM :

https://silver.arm.com/download/ARM_and_AMBA_Architecture/AR585-DA-70000-r0p0-00rel0/DDI0419C_arm_ar...

    In the AIRCR register, WO - SYSRESETREQ bit. :  Writing 1 to this bit asserts a signal to request a reset by the external system.

This register is in address : 0xE000ED0C

So you should write the bit [2] SYSRESETREQ in that address to request a SW reset. Take care with the rest of the bits value, modify only that bit.

Regards,

Luis

0 项奖励
回复