Loading...
 

System Workbench for STM32


Convert to C++ project - some hints

Hi, to use Error_Handler() function go to main.h file and change section to this:

/* USER CODE BEGIN Private defines */
#ifdef __cplusplus
extern "C" {
#endif

void _Error_Handler(char *, int);

#ifdef __cplusplus
}
#endif
/* USER CODE END Private defines */

#define Error_Handler() _Error_Handler(__FILE__, __LINE__)