Associate
Mar 10, 2018 5:54 PM UTC
Question
STM32F103C8 SysTick_Handler not called with LL_Driver
- 4 replies
- 1343 views
Posted on March 10, 2018 at 18:54
Started asimple blinky withSTM32F103C8 (bluepill board). Changes I made after the code generation by Cube are as follows
main.h
volatile static uint32_t TickerCounts = 0;�?
stm32f1xx_it.c
void SysTick_Handler(void)
{
/* USER CODE BEGIN SysTick_IRQn 0 */
TickerCounts++;
/* USER CODE END SysTick_IRQn 0 */
/* USER CODE BEGIN SysTick_IRQn 1 */
/* USER CODE END SysTick_IRQn 1 */
}�?�?�?�?�?�?�?�?�?
main.c
//Showing only the changes that were made
//LED1_Pin = PC13
int main(void)
{
LL_SYSTICK_EnableIT();
while (1)
{
if(TickerCounts >= 1000)
{
LL_GPIO_TogglePin(LED1_GPIO_Port,LED1_Pin);
TickerCounts = 0;
}
}
}�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?
The SysTick_Handler is not getting called. Am I forgetting something? Please help (source attached).
Note:
1) I am aware of the LL_GPIO Init bug for pins above 7 and I have made the necessary changes mentioned in another thread.
Attached is my project made with
- STM32Cube version 1.6.0
-TrueStudio 9.0
Thanks!
~
