Hello @MHoh.1l
First let me thank you for posting.
After investigation I was able to reproduce the same behavior using the same environment as you did.
As a temporary solution I propose that you add the following instructions in the void MX_RTC_Init(void) function in the rtc.c file:
/* USER CODE BEGIN RTC_Init 2 */
/** Enable the WakeUp
*/
if (HAL_RTCEx_SetWakeUpTimer(&hrtc, 0, RTC_WAKEUPCLOCK_RTCCLK_DIV16) != HAL_OK)
{
Error_Handler();
}
/* USER CODE END RTC_Init 2 */
This is an example of implementation of the solution; you can set the wakeup clock divider and the counter value as you need and pass the values to HAL_RTCEx_SetWakeUpTimer function.
With this being said, this problem is raised internally to be reviewed. I'll keep you posted with the updates.
Internal ticket number: 138078 (This is an internal tracking number and is not accessible or usable by customers).
Thx
Semer.