EIM registers cannot be accessed

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

EIM registers cannot be accessed

跳至解决方案
2,002 次查看
Janeting123
Contributor I

When I try to inject faults using EIM, whenever the code accesses the EIM register (read or write), it will enter BusFault. At the same time, when I use the Jtag simulator to observe, I find that EIM is not read, while other registers are OK. Is there any special operation required when accessing the EIM register? I checked RM and I think I meet these conditions. Why can't even the debugger see the register value?

0 项奖励
回复
1 解答
1,969 次查看
petervlna
NXP TechSupport
NXP TechSupport

Hello,

The reason is simple. You do not have clocks enabled for EIM in your uC.

petervlna_0-1728991544468.png

Please refer to the reference manual: chapter 46.1.5 Peripheral clock gating

petervlna_1-1728991597411.png

Best regards,

Peter

 

在原帖中查看解决方案

0 项奖励
回复
1 回复
1,970 次查看
petervlna
NXP TechSupport
NXP TechSupport

Hello,

The reason is simple. You do not have clocks enabled for EIM in your uC.

petervlna_0-1728991544468.png

Please refer to the reference manual: chapter 46.1.5 Peripheral clock gating

petervlna_1-1728991597411.png

Best regards,

Peter

 

0 项奖励
回复
%3CLINGO-SUB%20id%3D%22lingo-sub-1973334%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E6%97%A0%E6%B3%95%E8%AE%BF%E9%97%AE%20EIM%20%E5%AF%84%E5%AD%98%E5%99%A8%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1973334%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E5%BD%93%E6%88%91%E5%B0%9D%E8%AF%95%E4%BD%BF%E7%94%A8%20EIM%20%E6%B3%A8%E5%85%A5%E6%95%85%E9%9A%9C%E6%97%B6%EF%BC%8C%E6%AF%8F%E5%BD%93%E4%BB%A3%E7%A0%81%E8%AE%BF%E9%97%AE%20EIM%20%E5%AF%84%E5%AD%98%E5%99%A8%EF%BC%88%E8%AF%BB%E5%8F%96%E6%88%96%E5%86%99%E5%85%A5%EF%BC%89%E6%97%B6%EF%BC%8C%E5%AE%83%E9%83%BD%E4%BC%9A%E8%BF%9B%E5%85%A5%20BusFault%E3%80%82%E5%90%8C%E6%97%B6%E6%88%91%E7%94%A8Jtag%E4%BB%BF%E7%9C%9F%E5%99%A8%E8%A7%82%E5%AF%9F%E5%8F%91%E7%8E%B0EIM%E6%B2%A1%E6%9C%89%E8%A2%AB%E8%AF%BB%E5%8F%96%EF%BC%8C%E5%85%B6%E4%BB%96%E5%AF%84%E5%AD%98%E5%99%A8%E9%83%BD%E6%AD%A3%E5%B8%B8%E3%80%82%E8%AE%BF%E9%97%AEEIM%E5%AF%84%E5%AD%98%E5%99%A8%E6%97%B6%E9%9C%80%E8%A6%81%E4%BB%80%E4%B9%88%E7%89%B9%E6%AE%8A%E6%93%8D%E4%BD%9C%E5%90%97%EF%BC%9F%E6%88%91%E6%A3%80%E6%9F%A5%E4%BA%86%20RM%EF%BC%8C%E6%88%91%E8%AE%A4%E4%B8%BA%E6%88%91%E7%AC%A6%E5%90%88%E8%BF%99%E4%BA%9B%E6%9D%A1%E4%BB%B6%E3%80%82%E4%B8%BA%E4%BB%80%E4%B9%88%E8%B0%83%E8%AF%95%E5%99%A8%E7%94%9A%E8%87%B3%E7%9C%8B%E4%B8%8D%E5%88%B0%E5%AF%84%E5%AD%98%E5%99%A8%E7%9A%84%E5%80%BC%EF%BC%9F%3C%2FP%3E%3C%2FLINGO-BODY%3E