Real-time Debugger SH8,variables freeze

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

Real-time Debugger SH8,variables freeze

670 次查看
abicash
Contributor III

Hi

 

I am unsure whether it is an issue of the code.

I have 2 timers, one in PWM and another in I/P capture mode

I have declared 3200 bytes of data in flash and this is a look up table for PWM sine generation.For this i have a freq = 16KHz

const uchar sin_table[] @0xE800 ={  //data}

Second i detect rising edges of an input frequency (50Hz) and try to align the PWM with these edges.

 

When i attach USBMULTILINK with my target and hit 'Debug' i get close results of what i expect but after a while, all the variables declared just stop updating and my PWM output waveform is lost.

Even if i remove debugger and run the code , same observation!

Is it related to stack overflow? (Stacksize = 0x50)

 

Please someone point out what could be wrong?

 

Best Regards

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