STM32L4 RTC interrupts ?

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderators: RoccoMarco, barthess

geoffrey.brown
Posts: 87
Joined: Thu May 07, 2015 9:47 pm
Has thanked: 3 times
Been thanked: 15 times

STM32L4 RTC interrupts ?

Postby geoffrey.brown » Sun Jul 08, 2018 3:18 pm

I can't seem to find the support for the RTC Alarm interrupts. In other threads there is some indication that these used to be handled (e.g. for the STM32F4) through the EXTI driver, but that doesn't seem to be the case anymore. How are RTC interrupts handled and where ? If not, what I need to touch for the shortest path to RTC interrupts.

Geoffrey

User avatar
Giovanni
Site Admin
Posts: 14455
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: STM32L4 RTC interrupts ?

Postby Giovanni » Sun Jul 08, 2018 4:27 pm

Hi,

The RTCv2 requires a change for alarms handling now that EXT is gone, in the meanwhile you may enable the RTC EXTI channel and handle the IRQ directly.

Giovanni

geoffrey.brown
Posts: 87
Joined: Thu May 07, 2015 9:47 pm
Has thanked: 3 times
Been thanked: 15 times

Re: STM32L4 RTC interrupts ?

Postby geoffrey.brown » Sun Jul 08, 2018 6:20 pm

Thanks ! I had pretty much come to that conclusion, but wanted to make sure that was the simplest path.
Geoffrey

faisal
Posts: 374
Joined: Wed Jul 19, 2017 12:44 am
Has thanked: 44 times
Been thanked: 60 times

Re: STM32L4 RTC interrupts ?

Postby faisal » Mon Aug 13, 2018 6:58 pm

So we would create a new OSAL_IRQ_HANDLER(VectorE4) [RTC Alarm as an example], and manipulate the NVIC and EXTI registers directly - or is there a cleaner way to do it with existing ChibiOS APIs?

User avatar
Giovanni
Site Admin
Posts: 14455
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: STM32L4 RTC interrupts ?

Postby Giovanni » Tue Aug 14, 2018 7:07 am

Hi,

Exactly that way, it should offer a callback just like RTCv1 does.

I would just add some kind of EXTIv1 mini-driver (macros basically) in order to not make drivers touch EXTI registers directly (PAL, RTC and possibly others).

Giovanni


Return to “STM32 Support”

Who is online

Users browsing this forum: No registered users and 24 guests