STM32RTC with Arduino Portenta H7 based on ArduinoCore-mbed #2336
Unanswered
hideakitai
asked this question in
Libraries
Replies: 1 comment 6 replies
-
Hi @hideakitai
Never tested as the core doesn't support the Arduino Portenta board. About the second point, I guess the libmed.a already implement the |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, thanks for the great work! I forked the STM32RTC library because I'd like to make it work with Arduino Portenta H7 (STM32H747XIH6) based on ArduinoCore-mbed.
https://github.com/hideakitai/STM32RTCMbed
I built it using ArduinoCore-mbed and got most of the basic RTC functionality examples working.
hideakitai/STM32RTCMbed#1
However, only the Alarm functionality is not working. It looks like
RTC_Alarm_IRQHandler()
is not being called. So, let me ask two questions:If you use this library with Arduino Portenta H7 (STM32H747XIH6) based on Arduino_Core_STM32, can you get the Alarm to work successfully? (Sorry, I don't have ST-Link, so I haven't confirmed if it works with Arduino_Core_STM32 and STM32RTC...)
If no.1 works fine, do you have any idea what the cause might be, based on your abundant and deep experience with STM32 HAL/LL? Any information or advice would be greatly appreciated (I'm not very familiar with STM32 HAL/LL. The code looks good to me, but perhaps my code or something in ArduinoCore-mbed or mbed-os has some problems).
I will briefly explain what I did in the above pull request to get STM32RTC to work with ArduinoCore-mbed.
STM32H7xx
, so I defined one.voidFuncPtr
to avoid conflict with the ArduinoCore-mbed definition.SysTick_Handler()
toWEAK
since it seems to be already implemented in mbed-os (libmbed.a
) and causes a "multiple definitions" linker error.That's all. As mentioned above, the basic RTC example works fine. Only the Alarm Interrupt is not working.
I would greatly appreciate your experience and knowledge. Thank you very much for your valuable time.
Beta Was this translation helpful? Give feedback.
All reactions