Reset when the log () function is executed;

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

Reset when the log () function is executed;

Jump to solution
1,756 Views
agarcia
Contributor I

 

I am working with the MC9S08PT16VWJ microcontroller when I execute the following instruction:

b = (float) log ((double) c);


A reset occurs on my card when the value of c is greater than 150, I have wachDog disabled.

What I can do?

0 Kudos
1 Solution
1,685 Views
kef2
Senior Contributor IV

Floating point support requires more stack space. Try increasing STACKSIZE in PRM file.

View solution in original post

0 Kudos
3 Replies
1,686 Views
kef2
Senior Contributor IV

Floating point support requires more stack space. Try increasing STACKSIZE in PRM file.

0 Kudos
1,678 Views
agarcia
Contributor I

yes, it already worked by default it has 80H increases it to 100H and it worked correctly

0 Kudos
1,725 Views
vicentegomez
NXP TechSupport
NXP TechSupport

Can you please check the SYS_SRS register

I am thinking that you are running out of memory

 

Have a good day

0 Kudos