WRTMASK bit in CPMUCOP register ? (COP watchdog S12Z)

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

WRTMASK bit in CPMUCOP register ? (COP watchdog S12Z)

跳至解决方案
1,469 次查看
niba
Contributor III

Hi community,

I would like to use the COP watchdog in my application. Does somebody know what the WRTMASK bit in CPMUCOP register mean? In which use case do I need this bit?

Thank you very much!

1 解答
1,290 次查看
RadekS
NXP Employee
NXP Employee

Hi Nikolai,

The CPMUCOP register may be written just once in normal mode. The CPMUCOP write with WRTMASK bit set allow to configure RSBCK bit without counting this Write once condition and it will even not change WCOP and CR[2:0] CPMUCOP values.

So, you may change RSBCK bit without any restriction even in normal mode.

If WRTMASK bit =1 when we write into CPMUCOP register, the written WCOP and CR[2:0] bits has no effect – it will not enable COP watchdog.

 

The real use is quite limited for corner cases during debugging – it is rather used by debugger algorithms than directly users.

 

If you want to enable COP watchdog in your application, simply write CPMUCOP register with WCOP and CR[2:0] values and WRTMASK bit =0. For example:

CPMUCOP = 0x07;

I hope it helps you.

Have a great day,
Radek

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

在原帖中查看解决方案

1 回复
1,291 次查看
RadekS
NXP Employee
NXP Employee

Hi Nikolai,

The CPMUCOP register may be written just once in normal mode. The CPMUCOP write with WRTMASK bit set allow to configure RSBCK bit without counting this Write once condition and it will even not change WCOP and CR[2:0] CPMUCOP values.

So, you may change RSBCK bit without any restriction even in normal mode.

If WRTMASK bit =1 when we write into CPMUCOP register, the written WCOP and CR[2:0] bits has no effect – it will not enable COP watchdog.

 

The real use is quite limited for corner cases during debugging – it is rather used by debugger algorithms than directly users.

 

If you want to enable COP watchdog in your application, simply write CPMUCOP register with WCOP and CR[2:0] values and WRTMASK bit =0. For example:

CPMUCOP = 0x07;

I hope it helps you.

Have a great day,
Radek

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