MKL25Z128-How can I reset MCU

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MKL25Z128-How can I reset MCU

Jump to solution
747 Views
陈欣
Contributor III

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

Thanks;

0 Kudos
1 Solution
458 Views
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

View solution in original post

0 Kudos
1 Reply
459 Views
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 Kudos