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?
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!