2014-08-27 10:23 PM
I am porting over an open source project that is currently based on the STM32F1 to the STM32F4 (using the discovery board currently).
The project is using both the RTC_IRQn and RTCAlarm_IRQn on the STM32F1. The STM32F4 does not have RTC_IRQn. It is described as ''RTC global interrupt'' in the F1 documentation, what does that mean? Is it the same as RTC_WKUP_IRQn on the F4? Thanks for the help! #rtc2014-08-28 05:15 AM
The RTC in the F4 is substantially different. Look at using the wakeup timer (WUT) to generate a periodic interrupt. If your code is targeted for an F1 you will need to make several changes...it's a completely different RTC, not much in common.
Jack Peacock2014-08-28 05:40 AM
Thanks for your help Jack. I think using the wake-up interrupt (
RTC_WKUP_IRQn) is what I want. It looks like they were using the ''RTC Global Interrupt'' on the STM32F1 to generate a 1ms periodic interrupt.
Don't worry that I have underestimated the task of porting the code to the STM32F4. Their libraries are definitely different and that's what most of my changes are centered around. I have the STM32F1 and STM32F4 reference and user manuals open and I have been referencing features back and forth. This RTC interrupt was one thing I really was having a hard time coming to a conclusion on. It seems that my intuition pointing towards the wakeup interrupt was correct. Thanks again for the help.