Forum: System Workbench for STM32

CubeMX/System Workbench new project errors

Hi,

I used CubeMX to generate a project for a f746 nucleo board. I made no mods except to disable the ETH and USB sections. I compile the project and run it on my F746 board. It throws a runtime error while initializing the RCC oscillator. This is the CubeMX generate code that errors:

RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSE;
RCC_OscInitStruct.HSEState = RCC_HSE_BYPASS;
RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON;
RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSE;
RCC_OscInitStruct.PLL.PLLM = 4;
RCC_OscInitStruct.PLL.PLLN = 72;
RCC_OscInitStruct.PLL.PLLP = RCC_PLLP_DIV2;
RCC_OscInitStruct.PLL.PLLQ = 3;
if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK)
{
Error_Handler();
}

I do not see anything that should be a problem. I attached the main.c file