Hardfault interrupt while accessing any RTC register of MK22FX512AVLQ12

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

Hardfault interrupt while accessing any RTC register of MK22FX512AVLQ12

926件の閲覧回数
prasannanaik
Contributor III

Hi,

   I am using MK22FX512AVLQ12 microcontroller. While initializing RTC using RTC_Init(RTC_Type *base, const rtc_config_t *config) function from "fsl_rtc.h" file, my code goes to hardfault interrupt.

   On further debugging i found that the code goes to hardfault interrupt when i try to read/write any RTC register.

   I have attached my code for reference, please help in resolving this query.

Thanks & best regards,

Prasanna

ラベル(1)
0 件の賞賛
返信
1 返信

839件の閲覧回数
ErichStyger
Specialist I

Is your RTC powered by the external Bat/RTC pin? Otherwise it will hardfault.

I hope this helps,

Erich

0 件の賞賛
返信