You are excluding the file stm32f4xx_it.c from compilation which excludes the following default SysTick_Handler:
/**
* @brief This function handles System tick timer.
*/
void SysTick_Handler(void)
{
/* USER CODE BEGIN SysTick_IRQn 0 */
/* USER CODE END SysTick_IRQn 0 */
HAL_IncTick();
/* USER CODE BEGIN SysTick_IRQn 1 */
/* USER CODE END SysTick_IRQn 1 */
}
The result is that the HAL_IncTick(); is never called and the ST HAL won’t work. The correct way to do is the following:
- Change the HAL to use a timer other than the SysTick as shown in the image below:
- Remove the definition of SysTick_Handler, PendSV_Handler and SVC_Handler from both
stm32f4xx_it.handstm32f4xx_it.cbut do not exclude these files.
Another issue is that the include paths are configured to full paths on your machine which do not exist on other machines. Better to use relative paths there.
Thanks.
