How should I match the STM32 Core and RTC library versions?
Use this page with AI
Explore with your favorite AI
Gemini & other AI
Copy this page’s context into your AI to explore how it works and what you can build.
Copy the prompt, then paste it into Gemini’s message box.
View prompt
On this page
Choose compatible versions of STM32RTC and the STM32 Arduino Core supplied by your board configuration. The current Docs also explains library versions in older samples.
If an older sample produces a compatibility error such as Please update the core, compare the settings below. Check whether the Core meets the library’s requirements.
- Arduino IDE: Check the selected package and version in Boards Manager, and the STM32RTC version in Library Manager. Distinguish the Leafony package for AP03 from the generic STM32 package.
- PlatformIO: Check
framework-arduinoststm32in the build log andlib_depsinplatformio.ini.
The current STM32RTC requirements specify library 1.x for Core 1.3.0 or later, below 3.x, and library 2.x for Core 3.x or later. Earlier 1.x releases may have different requirements, so also check the README and header for the version you use. If you use STM32LowPower, match its requirements too.
See Libraries and board definitions and PlatformIO setup for AP03 settings. Keep a copy of your original configuration and try building a small sample before returning to your program.
Historical question consulted: “leafony の STM32 Simple BLE Beacon について” by tiri-leafony-users (October 11, 2023, Japanese). The resolution of the original issue is unconfirmed. This answer summarizes version-selection guidance that remains useful today; it does not imply that the original error is still occurring.
