Cycledelta register - reset behaviour

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

Cycledelta register - reset behaviour

677 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by HCTEK on Tue Feb 24 12:42:15 MST 2015
Hello,

the cycledelta register is reseted between breakpoints? Even if I have a condicional breakpoint to ignore some counts rigth?

I am testing the DMA IRQ for using several LLIs with interrupt in every LLI. I want to see the time passed between the beginning of the transfer and the end of the "x" LLI.

I tried two solutions:

1 - a global variable to count the number of DMA interrupts, stop in that condition and see the cycledelta register.

2 - a conditional breakpoint to ignore the necessary counts to the LLI that I want and see the cycledelta register.

In both cases the cycledelta register seems to be reset. As example, the register value for the 2º LLI must be higher than the 1º LLI, which is not happening. I do not have other breakpoints in my code that my cause this situation.

There are other conditions which the cycledelta register is reseted?

I am using the LPCXpresso 7.6.2, LPCOpen libraries and my micro is the LPC4337.


Best Regards
0 Kudos
Reply
2 Replies

629 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Tue Feb 24 14:38:39 MST 2015
You should use the cycle counter and calculate the difference yourself. The cycledelta is reset whenever a breakpoint is hit. A conditional breakpoint involves hitting the breakpoint, calculating the condition and then restarting if the condtion fails.
0 Kudos
Reply

629 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by 1234567890 on Tue Feb 24 13:02:39 MST 2015
Cycledelta (should) show the delta betweeen 2 breakpoints.
I'm having my sorrows with cycledelta as well. http://www.lpcware.com/content/forum/register-cycle-and-cycledelta-lpcxpresso-lpc1549-do-not-match

Maybe using cycle register and calculating the result yourself is a (bad) kind of solution, but should work.
0 Kudos
Reply