cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeMX GPIO setup for RTC calibration clock output

braucadr
Associate
Posted on January 15, 2018 at 13:32

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.

#rtc-calibration-clock-output #cube-mx #pb2
2 REPLIES 2
Amel NASRI
ST Employee
Posted on June 12, 2018 at 13:20

Hi

Brauchli.Adrian

‌,

Unfortunately you reported the issue a long time ago and it got lost inside other discussions without review.

I takecare to report the issue - that is still valid in version 4.26 - to our CubeMX team.

Sorry for such inconvenience.

-Amel

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

Posted on June 25, 2018 at 15:02

Hello

Brauchli.Adrian

,

Thanks for your feedback.

This issue will be fixed next release.

Please do not hesitate to contact me for further details.

Thanks and regards,

Mohamed