Hard fault reading IRQ_SC

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Hard fault reading IRQ_SC

跳至解决方案
1,088 次查看
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 解答
949 次查看
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 回复
950 次查看
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 项奖励
回复