Question
the speed of work of stm32f103 is changing in debug/standalone
Posted on September 28, 2011 at 08:00
some part of my code keeps the speed of motor using encoder. I have an timer interrupt, calc impulses from the motor and find the speed. It works fine in ''download and debug'' (IAR + jetlink). But when I press ''debug without download'', it works faster. I put a counter in the interrupt routine - 23430 calls in ''debug with download'' and 30442 cals in ''debug without download''. When I test code without emulator at all, it works approximately twice slower.
The speed is 72MHz, it's selected in some header.