This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TM4C123G 调用math.h 里面的函数有问题!求助



调用sin asin 等函数会影响到别的寄存器的值 

详情看下图,下图是单步调试,temp变量和其他变量没任何关系,只是用来存放值的。

但是调试发现, PID_ROL.P  PID_PIT.P等其他值都发生了变化。

如果我把temp=sin(0.5)注释掉,就没有任何问题。求解决方法