This projects provides a reference template that can be used to build any firmware application.
This directory provides a reference template project that can be used to build any firmware application for STM32C011xx devices using STM32CubeC0 HAL and running on STM32C0116-DISCO board from STMicroelectronics.
Care must be taken when using HAL_Delay(), this function provides accurate delay (in milliseconds) based on variable incremented in SysTick ISR. This implies that if HAL_Delay() is called from a peripheral ISR process, then the SysTick interrupt must have higher priority (numerically lower) than the peripheral interrupt. Otherwise the caller ISR process will be blocked. To change the SysTick interrupt priority you have to use HAL_NVIC_SetPriority() function.
The application needs to ensure that the SysTick time base is always set to 1 millisecond to have correct HAL operation.
This example runs on STM32C011xx devices.
This example has been compiled on EWARM v8.50.9 , MDK ARM v5.36.0.0 and STM32CubeIDE v1.9.0
In order to make the program work, you must do the following :