OSC changes with Debug?

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

OSC changes with Debug?

1,156 Views
Lokutas
Contributor I

Please help,

 

On the S08QE128... A given task takes 12 seconds to finalize when running the program trough the debugger and it takes 7 seconds (aprox) when running the program with out the debugger.

 

I suspect a OSC frequency shifts, what could be wrong?

 

Thanks,

Carlos

Labels (1)
0 Kudos
2 Replies

387 Views
Lokutas
Contributor I

Forgot details...

 

Running on FEI mode.

 

Configuration script:

  SOPT1_COPE = 0;
  SOPT1 |= SOPT1_BKGDPE_MASK | SOPT1_RSTPE_MASK;  
  ICSC1 = 0 | ICSC1_IREFS_MASK | ICSC1_IRCLKEN_MASK | ICSC1_IREFSTEN_MASK;
  ICSC2 = 0;
  ICSSC = 0 | ICSSC_DRST_DRS0_MASK;

0 Kudos

387 Views
trav
Contributor III
Yea I believe the BDM steals clock cycles.  I ran into this problem when trying to use clock cycles as timers.
0 Kudos