9S08SG8 - Timer problem

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

9S08SG8 - Timer problem

754 Views
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

Labels (1)
Tags (1)
0 Kudos
1 Reply

625 Views
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