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

553件の閲覧回数
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 返信

471件の閲覧回数
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 件の賞賛
返信