Hard fault reading IRQ_SC

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Hard fault reading IRQ_SC

ソリューションへジャンプ
1,084件の閲覧回数
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 件の賞賛
返信
1 解決策
945件の閲覧回数
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 件の賞賛
返信
1 返信
946件の閲覧回数
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 件の賞賛
返信