2014-12-28 12:16 AM
to be migrated, sourceId: 2290:0EA5537E-3674-4A46-8D71-9B00EC9F6F4B
2015-01-08 07:01 AM
Hello,
There is a known issue with STM32CubeMX generated code missing some macros in stm32f4xx_hal_msp.c. Please update the file as follows:void HAL_RTC_MspInit(RTC_HandleTypeDef* hrtc)
{if(hrtc->Instance==RTC)
{ /* USER CODE BEGIN RTC_MspInit 0 *//* USER CODE END RTC_MspInit 0 */
/* Peripheral clock enable */ __HAL_RCC_RTC_ENABLE();/* USER CODE BEGIN RTC_MspInit 1 */
/* USER CODE END RTC_MspInit 1 */
}}
void HAL_RTC_MspDeInit(RTC_HandleTypeDef* hrtc)
{if(hrtc->Instance==RTC)
{ /* USER CODE BEGIN RTC_MspDeInit 0 *//* USER CODE END RTC_MspDeInit 0 */
/* Peripheral clock disable */ __HAL_RCC_RTC_DISABLE();/* USER CODE BEGIN RTC_MspDeInit 1 */
/* USER CODE END RTC_MspDeInit 1 */
}}
2015-12-30 08:32 AM
What board or chip are you using?