Hardfault interrupt while accessing any RTC register of MK22FX512AVLQ12

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

Hardfault interrupt while accessing any RTC register of MK22FX512AVLQ12

963 次查看
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 回复

876 次查看
ErichStyger
Specialist I

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

I hope this helps,

Erich

0 项奖励
回复