Reset when the log () function is executed;

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

Reset when the log () function is executed;

跳至解决方案
2,463 次查看
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 项奖励
回复
1 解答
2,392 次查看
kef2
Senior Contributor V

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

在原帖中查看解决方案

0 项奖励
回复
3 回复数
2,393 次查看
kef2
Senior Contributor V

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

0 项奖励
回复
2,385 次查看
agarcia
Contributor I

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

0 项奖励
回复
2,432 次查看
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 项奖励
回复