2018-02-10 12:59 AM
hi,
ALRAF bit is set in ISR register but doesn,t execute the rtc-irq handler.
i enabled NVIC_RTC.
2018-02-10 03:22 AM
What's the configuration? MCU? CubeMX and/or LL-drivers in use ?
2018-02-10 06:05 AM
Did you also enable the EXTI line for RTC alarm?
2018-02-10 07:10 AM
Chronically vague, provide context.
Show code, show detail
2018-02-10 09:38 AM
The bug is obvious: you just need to set the 3rd bit 38th line down on the 2nd page of your 8th function about 2/3 logic high. As now, it is not high enough.
2018-02-11 11:43 PM
Which IDE are you using ?
can you check the registers with single step ?
You could read the Reference manual to find all the register descriptions.
your problem would be in there, as a guess.
2018-02-11 11:53 PM
MCU CONFIGURATION
2018-02-12 12:07 AM
void RTC_ALRMAR_SET()
{RTC->WPR = 0xCA; RTC->WPR = 0x53; RTC->CR &=~ RTC_CR_ALRAE; while((RTC->ISR & RTC_ISR_ALRAWF) != RTC_ISR_ALRAWF){}
RTC->ALRMAR = RTC_ALRMAR_MSK4 | RTC_ALRMAR_MSK3 | RTC_ALRMAR_MSK2 | 1<<30(Week day selection mask) | 1<<4(set Second tens in BCD format.);RTC->CR = RTC_CR_ALRAIE | RTC_CR_ALRAE; RTC->WPR = 0xFE; RTC->WPR = 0x64;}
trying to get interrupt at 10 sec but not working
2018-02-12 12:08 AM
void RTC_ALRMAR_SET()
{RTC->WPR = 0xCA;RTC->WPR = 0x53;RTC->CR &=~ RTC_CR_ALRAE;while((RTC->ISR & RTC_ISR_ALRAWF) != RTC_ISR_ALRAWF){}
RTC->ALRMAR = RTC_ALRMAR_MSK4 | RTC_ALRMAR_MSK3 | RTC_ALRMAR_MSK2 | 1<<30(Week day selection mask) | 1<<4(setSecond tens in BCD format.);RTC->CR = RTC_CR_ALRAIE | RTC_CR_ALRAE;RTC->WPR = 0xFE;RTC->WPR = 0x64;}
trying to get interrupt at 10 sec but not working
2018-02-12 12:29 AM
no