Question
IWDG reset is happening after flashing the code in DEBUG option through STM32 CUBE IDE
Hello all,
I'm using STM32F030CC uC and in that I'm reading the @KB of flash data before initializing the peripheral and for every debugging sessions the reset is identified as IWDG reset, can anyone help me to understand this logic?

int main(void)
{
/* USER CODE BEGIN 1 */
uint32_t iDx = 0;
uint32_t i = 0;
char *temp = '\0';
/* USER CODE END 1 */
/* MCU Configuration--------------------------------------------------------*/
/* Reset of all peripherals, Initializes the Flash interface and the Systick. */
HAL_Init();
/* Configure the system clock */
SystemClock_Config();
Flash_Read_Data_word(0x0803F800,(uint32_t*)&rxData,511);
while(rxData[iDx] != 0xFF)
{
iDx++;
}
if(iDx > 0)
{
/* Copying the read data to RAM variables*/
}
/* Initialize all configured peripherals */
MX_GPIO_Init();
MX_USART1_UART_Init();
MX_USART2_UART_Init();
MX_USART6_UART_Init();
MX_USART3_UART_Init();
MX_USART4_UART_Init();
MX_USART5_UART_Init();
MX_TIM6_Init();
MX_IWDG_Init();
/* USER CODE BEGIN 2 */
if (__HAL_RCC_GET_FLAG(RCC_FLAG_IWDGRST) != RESET)
{
temp = "SystemResetDueToWDG\n";
sendToUart1(temp);
}
else
{
temp = "SystemResetUnknownReason\n";
sendToUart1(temp);
}
/* Clear reset flags in any cases */
__HAL_RCC_CLEAR_RESET_FLAGS();
/* USER CODE END 2 */
while (1)
{
}Also what is the purpose of IWDG window value here?