STM32F103C8T6 Blue Pill RTC - Configuration

Discussions concerning TrueSTUDIO for STM32 9.0.0 and later versions.

Moderators: Markus Girdland, Mattias Norlander

nandoperu100
Posts: 1
Joined: Mon Jul 01, 2019 12:48 pm

STM32F103C8T6 Blue Pill RTC - Configuration

Postby nandoperu100 » Mon Jul 01, 2019 2:15 pm

Hi All,
I have a STM32F103C8T6 Blue Pill Board and I am trying to use the RTC Module .
After the review some C codes on Internet , I only approach to keep running the "Clock" with my current time but the all Date is lost . This issue is ocurred When the the power off or reset the MCU.
For your information my MCU has been configured a RTC , I2C Lcd and UART1 modules and also is connected a Battery CS2032 on VBAT pin + GND .Also I tried to use as following instrucions ( without results).
HAL_SYSTICK_Config(HAL_RCC_GetHCLKFreq()/1000);

HAL_SYSTICK_CLKSourceConfig(SYSTICK_CLKSOURCE_HCLK);
__HAL_RCC_PWR_CLK_ENABLE();
__HAL_RCC_BKP_CLK_ENABLE();
HAL_PWR_EnableBkUpAccess();

Please let me know if somebody performed the configuration of RTC module and if is possible share his code.
thanks in advance

Return to “TrueSTUDIO for STM32 discussions”

Who is online

Users browsing this forum: No registered users and 12 guests