Interruption each 10 seconds with RTC
Hi guys,
I'm using STM32LO and i try to implement a code who aquire data of a sensor every 10 second in a fix day in a week. The rest of the time, the ship is sleeping.
I'm trying to do that interruption with RTC and i configure the RTC and program my interrupt routine but my code is not working. The RTC doesn't counts seconds or minute sand by the way, i have no interruptions.
I put the code of the RTC initialisation and the function who does the interruption below. I hope you can help me to find why the RTC is not working correctly.
RTC Initialisation : 

The infinity loop and the function that is called when the alarm make an event call back :
I don't know if my method is correct but the use of RTC seems right for my application.
Thanks you
Tim