Forum: System Workbench for STM32

Problem to build a new project

I created a simple Project with STM32CubeMX

I can build ist with no errors but then I start OpenOCD
and I got odd errors

static void MX_GPIO_Init(void) Unused declaration of function ‘MX_GPIO_Init’ main.c

void Error_Handler(void)
{
/* USER CODE BEGIN Error_Handler */
/* User can add his own implementation to report the HAL error return state */
while(1)
{
}
/* USER CODE END Error_Handler */
} expected declaration or statement at end of input main.c

When I try to build this Project again I still have this messages

What yould this be?

Hello,
I made a trial with CubeMX for STM32L476RG but I didn’t manage to reproduce the issue you faced.
What is the board/chip you used in CubeMX?