"frequency change to..." math.h

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

"frequency change to..." math.h

1,869 次查看
juanjosestivane
Contributor I

Hi! I'm trying to use math.h library and I have problems on debug mode. I receive a message which says "frequency change to..." and the frequency change constantly. I never reach the result. The MCU is HC9S08QE8.- I am clear? Any help? Thank you!

 

 


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

1,695 次查看
sebasira
Senior Contributor I

Hi!

Usually, when I have this message is because the MCU hangs at some point. A possible problem is as Kef said, that stack is too small. Other can be invalid address writing.

Another problem related to the stack is that maybe you've got a variable (let's say a buffer 3 bytes long) and you're writing more than this lenght so the routine overwrite the return address on the stack.

I will try using breackpoints to determine where the error ocurrs

Regards!

PS: Please excuse my english.

Sebatian M. Irazabal

Rosario, Santa Fe Argentina

1,695 次查看
juanjosestivane
Contributor I

Gracias Sebastían! Lo voy a tener en cuenta.

0 项奖励
回复

1,695 次查看
kef
Specialist I

Try increasing STACKSIZE in PRM file. Math functions need a lot of stack.

1,695 次查看
juanjosestivane
Contributor I

Thank you Edward. I will try!

0 项奖励
回复