Systick Timer Problem

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Systick Timer Problem

1,662 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by klaschudi on Tue Feb 26 06:24:35 MST 2013
Hello together,
I'm using the Systick Timer for a delay function like it is done in the RDB1768cmsis2_SysTick example.
It works fine, when running it alone but when I integrate it in my project (all timers are running, interrupts enabled) the Systick timer stops running after a few Circles.
Has anybody an idea what could be the reason?
thanks, Klaas.
0 项奖励
回复
6 回复数

1,624 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by klaschudi on Wed Feb 27 04:22:13 MST 2013
I wasn't able to find my mistake.
I now went to a lower Revision and it's running.

Thanks for your help anyway!
0 项奖励
回复

1,624 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Wed Feb 27 02:59:35 MST 2013

Quote: klaschudi
...Systick CTRL register now: It is at 0x07000100




SysTick_Config is setting SysTick->CTRL to 7 ;)

So either you are changing this register or it suffers from Alzheimer's :eek:
0 项奖励
回复

1,624 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by klaschudi on Wed Feb 27 02:18:36 MST 2013
hi,

Quote: Zero
I'm using this counter since 2009 without problems  so I don't believe it's faulty


I know that your code is working fine, but I'm just trying to figure out which function in my code could bug it...

Unfortunately my code is a bit to large to post here.
But I watched the Systick CTRL register now: It is at 0x07000100 the whole time, even when the SysTick_Handler isn't called anymore.
The Current Value register doesn't change anymore as well.

do you have any idea with this little information?
0 项奖励
回复

1,624 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Wed Feb 27 01:32:17 MST 2013

Quote: klaschudi
Has anybody an idea what could be the reason?



Yes, your code ;)

I'm using this counter since 2009 without problems :eek:  so I don't believe it's faulty. But believe it or not, my crystal ball  is not showing your code and also not showing what your debugger is  telling you about SysTick CTRL register. Therefore I don't understand  what this 'Systick timer stops running after a few Circles' is. Is it disabled? Is its interrupt disabled? E.T. calling home?
0 项奖励
回复

1,624 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by klaschudi on Wed Feb 27 01:16:17 MST 2013
Hello,
do you mean Post #7? I adapted this one but my of course i still have the same Problem. The Systick-Timer stops counting after a while. Do you know possible reasons for that?
thanks
0 项奖励
回复

1,624 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Tue Feb 26 06:35:47 MST 2013
This sample is a very simple sample :eek: A SysTick discussion http://knowledgebase.nxp.com/showthread.php?p=20163
is showing better solutions :)
0 项奖励
回复