Skip to Content
Block descriptionsRTCCubeMX Configuration for the Given MCU Model

CubeMX Configuration for a Given MCU Model

An example CubeMX peripheral configuration profile for the RTC Alarm IRQ block is provided below. Depending on the exact microcontroller model utilized, certain options may be unavailable or require supplementary configurations. Should you encounter architecture-specific omissions, consult the official manufacturer reference manual.

General CubeMX Settings

No.NamePathSettingDescriptionScreenshot
1Low Speed ClockPinout & Configuration > System Core > RCC > Mode > Low Speed Clock (LSE)Crystal/Ceramic Resonator if an onboard external clock crystal is available.
BYPASS Clock Source if a reference RTC signal is fed externally into the designated MCU hardware pins.
Selects the baseline input clock source dedicated to the RTC subsystem.RTC LSE
2Activate Clock SourcePinout & Configuration > Timers > RTC > Mode > Activate Clock SourceEnabledActivates the core hardware clock path for the RTC peripheral.RTC Activate Clock Source
3Activate CalendarPinout & Configuration > Timers > RTC > Mode > Activate CalendarEnabledEnables tracking registers for the internal RTC calendar framework.RTC Activate Calendar
4Internal AlarmsPinout & Configuration > Timers > RTC > Mode > Alarms A, B or WakeUpInternal Alarm A / B / WakeUpEnables hardware support for internal RTC alarms. The internal routing variant must be selected for Alarm A, Alarm B, and WakeUp triggers.RTC Internal Alarms
5RTC wake-up interrupt through EXTI linePinout & Configuration > Timers > RTC > NVIC Settings > RTC wake-up interrupt through EXTI lineEnabledEnables the nested vectored interrupt controller (NVIC) line for the RTC wake-up interrupt routed through the EXTI architecture.RTC NVIC Wake-Up Setting
6RTC alarms (A and B) interrupt through EXTI linePinout & Configuration > Timers > RTC > NVIC Settings > RTC alarms (A and B) interrupt through EXTI lineEnabledEnables the nested vectored interrupt controller (NVIC) line for the dual RTC alarms (A and B) routed through the EXTI architecture.RTC NVIC Alarms Setting
7RTC Clock MuxClock Configuration > RTC Clock MuxLSE or the corresponding alternate hardware source selected in step 1.Configures the peripheral clock multiplexer routing. This path must map directly to the hardware source established in step 1.RTC Clock Mux
8Do Not Generate Function CallProject Manager > Advanced Settings > Generated Function Calls > MX_RTC_Init > Do Not Generate Function CallEnabledInhibits the automatic generation of the standard MX_RTC_Init routine inside the output application source code.RTC Do Not Generate Function Call
9Visibility (Static)Project Manager > Advanced Settings > Generated Function Calls > MX_RTC_Init > Visibility (Static)DisabledDisables the static scope visibility modifier constraint for the generated RTC initialization routine within code files.RTC Visibility Static
Last updated on