Hard fault reading IRQ_SC

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

Hard fault reading IRQ_SC

Jump to solution
764 Views
davidsherman
Senior Contributor I

This seems like it shouldn't be that difficult, since I've already been configuring the clocks for the KE06, but while trying to enable interrupts on port I, I've determined that simply reading from 0x40031000 causes a hard fault.  System clock is 40 MHz, bus clock is 20 MHz, I've set GPIOC_PIDR = 0 to enable port I as inputs, but if I read or write to that register, I get a hard fault (vector 3).  Is there something else I'm supposed to do enable the IRQ module?

0 Kudos
Reply
1 Solution
625 Views
davidsherman
Senior Contributor I

Ah, I found it.  Didn't know about the SIM_SCGC register that controls clocks to various modules.  Problem fixed!

View solution in original post

0 Kudos
Reply
1 Reply
626 Views
davidsherman
Senior Contributor I

Ah, I found it.  Didn't know about the SIM_SCGC register that controls clocks to various modules.  Problem fixed!

0 Kudos
Reply