AnsweredAssumed Answered

STM32CubeMX GPIO setup for RTC calibration clock output

Question asked by Adrian Brauchli on Jan 15, 2018

Using STM32CubeMX to setup an STM32L496AGIxP controller and configuring the RTC IP to map the calibration clock output to PB2, the initialization procedure of the generated code correctely sets the RTC output remap (RTC_OUTPUT_REMAP_POS1), but it does not configure PB2 during GPIO initialization. According to the Reference Manual, it should be configured as alternate function with type AF0. If I manully add PB2 GPIO initialization, the calibration clock output works.

I think that's a bug in CubeMX code generation and should be fixed.

Outcomes