Systick Timer Problem

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Systick Timer Problem

1,617 Views
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 Kudos
Reply
6 Replies

1,579 Views
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 Kudos
Reply

1,579 Views
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 Kudos
Reply

1,579 Views
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 Kudos
Reply

1,579 Views
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 Kudos
Reply

1,579 Views
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 Kudos
Reply

1,579 Views
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 Kudos
Reply