9S08SG8 - Timer problem

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

9S08SG8 - Timer problem

756 次查看
FabVio
Contributor I

Hello to everybody,

I've a problem.

I'm using 9S08SG8 processor and processor expert for developing the code.

I use the component FreeCntr16 for counting 200us, the code is here:

 

  err=timer_GetTimeUS(&Time_us);
  if (Time_us == 200){

 

but when I debug it, the true time simulator show me the following error:

 

Error: Attempt to push or pop with SP out of allowed range
STEPPED OVER

 

I use RTCmod interrup source and 32 µs of resolution.

I've tried with other values but nothing happens: stack pointer exceed everytime!

 

Thank for all,

 

Fabio

标签 (1)
标记 (1)
0 项奖励
1 回复

627 次查看
ProcessorExpert
Senior Contributor III

Hello,

 

could you please try to run your project on real hardware instead of simulator? However It seems to me thatthis issue is not related to Processor Expert and you should rather contact debugger team.

 

best regards
Vojtech Filip
Processor Expert Support Team