"frequency change to..." math.h

cancel
Showing results for 
Search instead for 
Did you mean: 

"frequency change to..." math.h

408 Views
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!

 

 


Labels (1)
0 Kudos
4 Replies

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

234 Views
juanjosestivane
Contributor I

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

0 Kudos

234 Views
kef
Specialist I

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

234 Views
juanjosestivane
Contributor I

Thank you Edward. I will try!

0 Kudos