How to set SPIDEN or SPNIDEN in i.MX6

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

How to set SPIDEN or SPNIDEN in i.MX6

跳至解决方案
1,455 次查看
xingbinjiang
Contributor II

Hi,

I am trying to trace hardware performance of Linux kernel running on i.MX6, but I found that I can't read other values except CCNT because SPIDEN and SPNIDEN are not enabled (PL1 secure invasive debugging and secure non-invasive debugging are not permitted, can not trace from PL1). 

I found relevant questions on this forum, but I didn't get the real solution.

Set SPNIDEN from fuse? 

Enable Hardware Counters on PL310 L2 Cache 

How to control the SPNIDEN signal in iMX53 qsb? 

The ARM architecture reference manual says:

In v6.1 Debug, v7 Debug, and v7.1 Debug the NIDEN, DBGEN, SPIDEN, and SPNIDEN authentication signals can be controlled dynamically, meaning that they might change while the processor is running, or while the processor is in Debug state.  Normally, these signals are driven by the system, meaning that they are driven by a peripheral connected to the ARM processor. It might be controlled by an instruction to write a value to a control register in a system peripheral. 

Does anyone have idea on which peripheral register of i.MX6 can be set to control SPIDEN or SPNIDEN? 

Thanks and Regards,

Xingbin

标签 (2)
0 项奖励
回复
1 解答
1,268 次查看
Yuri
NXP Employee
NXP Employee

Hello,

 

  The SPIDEN and SPNIDEN cannot be set via i.MX6 registers.

 

Have a great day,

Yuri

 

------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer

button. Thank you!

在原帖中查看解决方案

0 项奖励
回复
1 回复
1,269 次查看
Yuri
NXP Employee
NXP Employee

Hello,

 

  The SPIDEN and SPNIDEN cannot be set via i.MX6 registers.

 

Have a great day,

Yuri

 

------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer

button. Thank you!

0 项奖励
回复