Skip to main content
mehmet.karakaya
Associate III
July 24, 2021
Question

TIM1 doesnot enter CC interrupt

  • July 24, 2021
  • 2 replies
  • 1506 views

0693W00000D0WDdQAN.pnghello dear forum,

my 103c8 blue pill doesnot enter TIM1 CC interrupt although there is square wave at A8 pin

the variable which I increment inside interrupt routine doesnot count

I can see TIM1 counting in CubeIDE

I am missing something but I cant find - please advice - thank

This topic has been closed for replies.

2 replies

waclawek.jan
Super User
July 24, 2021

Read out and check TIM1_SR if the proper flag is set, and then TIM1_DIER if the enable bit is set.

Make sure the ISR is properly named, name matching that in the vector table source in startup code, and that its address is inserted properly into the correct place of the vector table (best to do this in disasm).

Some other interrupt debugging hints here.

JW

TDK
July 24, 2021

Clearing the flag before you read it isn't going to be very useful.

"If you feel a post has answered your question, please click ""Accept as Solution""."