9S08SG8 - Timer problem

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

9S08SG8 - Timer problem

1,234件の閲覧回数
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 返信

1,105件の閲覧回数
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