cancel
Showing results for 
Search instead for 
Did you mean: 

(STR710)Timer counter doesn't stop in debug mode

tojapan
Associate II
Posted on August 28, 2006 at 09:18

(STR710)Timer counter doesn't stop in debug mode

1 REPLY 1
tojapan
Associate II
Posted on August 28, 2006 at 09:18

Attached is the simple timer example by ST. I compiled it in EWARM and debugeg in C-Spy with J-Link.

When I run it in my STR710-EVAL board, it run without a problem and REDs in the board blink in sequence.

But, when I run it step by step in C-Spy with J-Link, TIM1_CNTR run free not stop. For example,

I think,

1. if TIM1_CNTR=0x0000 where first step by ''step into-F11''

2. TIM1_CNTR=0x0001 where second step

3. TIM1_CNTR=0x0002 where third step

...

But, it shows as follows

1. if TIM1_CNTR=0x0000 where first step by ''step into-F11''

2. TIM1_CNTR=0xF8F8(not exact) where second step

3. TIM1_CNTR=0xE3E4(not exact) where third step

...

When I use ATMega128 with AVRStudio, the timer counter stop with break action. I think the timer counter should stop in case of break step of bebugger.

Because of this problem, the debugger does not jumps to the timer1 interrupt routine automatically. Is there any solution for this situation?

In addintion to the problem above, when I run it step by step in C-Spy with simulator, TIM0_CNTR is always same value(0xFFFF) not increase. So the debugger never jump to the interrupt routine.

[ This message was edited by: tojapan on 28-08-2006 12:51 ]

[ This message was edited by: tojapan on 28-08-2006 21:34 ]