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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

361 Views
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?

Labels (1)
0 Kudos
1 Reply

279 Views
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 Kudos