STM32CUbeMX : RTC options for STM32F1
On our custom board we don't use RTC clock for time or date.
But I need to activate RTC to use Backup registers, and we use GPIOC PIN13 in mode OUTPUT_PP for leds.
With STM32CUbeMX 4.23.0 and STM32CubeF1 package 1.6.0 I have two options in Pinout :
Activate RCT with 'RTC OUT' as 'Disable' or 'No RTC OutPut'.
When 'RTC OUT' is 'Disable', in the screen 'RTC Configuration', I can't select 'No output on tamper pin' so GPIOC PIN13 can't be used.
When 'RTC OUT' is 'No RTC OutPut', in the generated code we have :hrtc.Init.OutPut = RTC_OUTPUTSOURCE_NONE; which is OK, but the initialisation of time and date uses RTC_BKP_DR1 with value 0x32f2.
So I have the choice of not beeing able to use GPIOC PIN13 or RTC_BKP_DR1.
I choosed the first Option, and then manually modify the generated code to write hrtc.Init.OutPut = RTC_OUTPUTSOURCE_NONE;
Is there another solution ?
Is it possible to have the option 'No output on TAMPER pin' when 'RTC OUT' is 'Disable' in STM32CUbeMX ?
Regards,
Fred.
♯
‌♯
‌‌#stm32cubemx #stm32f103 #rtc-backup