I am getting a Hardfault when I read PIT1_MCR on a MKM

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

I am getting a Hardfault when I read PIT1_MCR on a MKM

552 次查看
brianlinari
Contributor I

I am trying to add a PIT to the project. When I read or write from the PIT0_MCR or PIT1_MCR I get a hard fault. I am using a MKM34Z128. I know it is a hard fault because i changed the name of that fault and had it go to my own ISR.

Any ideas why this is happening?

标签 (1)
0 项奖励
回复
1 回复

470 次查看
egoodii
Senior Contributor III

Until you enable the 'clock' for a module/peripheral, it is in a 'very low power mode' AND none of the registers are 'valid' in the processor space.  Enable the PIT clock and they will appear!

0 项奖励
回复