cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeMX Bug?

lz12345zry
Associate
Posted on March 28, 2018 at 18:33

Keil  5    uVision V5.14.0.0

''

void HAL_RTC_MspInit(RTC_HandleTypeDef* rtcHandle)

{

if(rtcHandle->Instance==RTC)

{

/* USER CODE BEGIN RTC_MspInit 0 */

/* USER CODE END RTC_MspInit 0 */

                                                                                                      LL_PWR_EnableBkUpAccess();

/* Enable BKP CLK enable for backup registers */

                                                                                    LL_APB1_GRP1_EnableClock(LL_APB1_GRP1_PERIPH_BKP);

/* RTC clock enable */

__HAL_RCC_RTC_ENABLE();

/* USER CODE BEGIN RTC_MspInit 1 */

/* USER CODE END RTC_MspInit 1 */

}

}

''

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

Build Output:

compiling rtc.c...

../Src/rtc.c(100): warning: &sharp223-D: function ''LL_PWR_EnableBkUpAccess'' declared implicitly

LL_PWR_EnableBkUpAccess();

../Src/rtc.c(102): warning: &sharp223-D: function ''LL_APB1_GRP1_EnableClock'' declared implicitly

LL_APB1_GRP1_EnableClock(LL_APB1_GRP1_PERIPH_BKP);

../Src/rtc.c(102): error: &sharp20: identifier ''LL_APB1_GRP1_PERIPH_BKP'' is undefined

LL_APB1_GRP1_EnableClock(LL_APB1_GRP1_PERIPH_BKP);

../Src/rtc.c: 2 warnings, 1 error

compiling stm32f1xx_it.c...

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

0690X00000604WAQAY.jpg

#stm32f103rct6 #d #stm32cubemx-4.25 #stm32cubemx
2 REPLIES 2
Imen.D
ST Employee
Posted on March 29, 2018 at 18:00

Hello

Renyuan.Zheng

,

This is knownissue already reported to CubeMx team for fix in coming releases.

Sorry for the inconvenience it may bring.

Best Regards,

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
lz12345zry
Associate
Posted on March 30, 2018 at 09:23

Hi,Imen,

        Thank you very much for your confirmation.

Best Regards,