Problem with clock configuration after importing the CubeMX project to Visual Studio
I have a project using a STM32f107VC which I am trying to update and I run into some problem configuring the clock in the updated environment
So I tried to create a simple project using Stm32CubeMX and I still can't configure the clock properly.
I added code to my main application that blinks a led with delay of 1000 ms but the LED actually blinks every 2000ms (checked with a scope)
I generate an Other Toolchains (GPDSC) project in the CubeMX and then import it to Visual GDB 5.4r12
the project information is :
Stm32CubeMX: version 5.3.0
MCU: STM32F107VCTx
Firmware: STM32Cube FW_F1 V1.8.0
This is the clock configuration:

int main(void)
{
/* USER CODE BEGIN 1 */
/* USER CODE END 1 */
/* MCU Configuration--------------------------------------------------------*/
/* Reset of all peripherals, Initializes the Flash interface and the Systick. */
HAL_Init();
/* USER CODE BEGIN Init */
/* USER CODE END Init */
/* Configure the system clock */
SystemClock_Config();
/* USER CODE BEGIN SysInit */
/* USER CODE END SysInit */
/* Initialize all configured peripherals */
MX_GPIO_Init();
//MX_USART1_UART_Init();
//MX_USART2_UART_Init();
//MX_USART3_UART_Init();
//MX_LWIP_Init();
/* USER CODE BEGIN 2 */
/* USER CODE END 2 */
/* Infinite loop */
/* USER CODE BEGIN WHILE */
while (1)
{
HAL_GPIO_WritePin(GPIOE, RED_LED_Pin | GREEN_LED_Pin, GPIO_PIN_RESET);
HAL_Delay(1000);
HAL_GPIO_WritePin(GPIOE, RED_LED_Pin | GREEN_LED_Pin, GPIO_PIN_SET);
HAL_Delay(1000);
/* USER CODE END WHILE */
/* USER CODE BEGIN 3 */
}
/* USER CODE END 3 */
}
