2008-11-20 12:21 AM
unacceptable timer behaviour
2011-05-17 03:52 AM
Hey
I'm using the stm32f103 and trying to use timer3 as a prescaler for timer1. Everytime timer 3 overflows, it makes timer1 count one up. Or at least that is how I intended it.Usually this works like it should, but sometimes timer1 increased its counter by 2, ,and in rare cases more, instead of just one when timer3 overflows. This I do not understand. could there be something that triggers timer1 besides timer3, or can trgo signal appear out of nowhere? Any hints or ideas are very welcome. Cheers Rasmus [ This message was edited by: rasmusbunkenborg on 19-11-2008 10:36 ]2011-05-17 03:52 AM
I'm starting to think that the problem is caused by the debugger. I'm using the keil debugger from uvision. It appears that it keeps counting when it reaches a breakpoint. I tried halting the timers through the DBGMCU_CR register, but that doensent seem to work. Do any of you have an idea where i could stop them, or if the plausible that the problem is caused by this.
Regards Rasmus2011-05-17 03:52 AM
Halting the timers through DBGMCU_CR does work in Keil.
Use the provided STM32DBG.ini Cheers sjo