OSC changes with Debug?

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

OSC changes with Debug?

1,173 次查看
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

标签 (1)
0 项奖励
2 回复数

404 次查看
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 项奖励

404 次查看
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 项奖励