Loading...
 
Skip to main content

System Workbench for STM32


Convert to C++ project - some hints

hmm for me it's saying :
Src/stm32f1xx_hal_msp.o: In function `HAL_SPI_MspInit':
... Debug/../Src/stm32f1xx_hal_msp.c:125: undefined reference to `Error_Handler'

The error handler is a function created by cubemx and is located in my main.cpp

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 */
}

 
Collapse/expand modules below