AnsweredAssumed Answered

[KEAZN64] Configuring RTC always causing "HardFault" exception

Question asked by Mohammed Aboelnasr on Aug 27, 2018
Latest reply on Aug 27, 2018 by Mohammed Aboelnasr



I am trying to configure RTC in target cortex-M0 KEAZN64 as follows;



SIM_PINSEL |= SIM_PINSEL_RTCPS_MASK;  /* To get the toggled pin on PTC5 */


RTC_MOD = 16000;  /* Setting MOD value by 16000 */




After debugging, I found out that any write any of RTC registers configuration causes "hardfault" exception (HardFault_Handler)


Any help or advice please ?

Thank you inn advance.