This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

pow() function crashes TM4C123GH6PM

I'm not sure if this is a Keil issue or a TI processor issue, so if I am in the wrong place just let me know.

I was trying to use the pow() function from Keil's math.h library on a TI TM4C123GH6PM to solve some polynomials, but that function seems to intermittently crash the system. It seems to happen about one in ten attempts, and doesn't seem to depend on the data I'm using. It will sometimes crash with a set of parameters, and when I run it again with the same set of parameters it works fine. I tried to see what was happening using the debugger, but the disassembly just shows it to be sitting in the reset code after the crash, of course. It isn't hard to recreate this function with for loops, so that's what I did, but I'm curious why this function doesn't seem to work.

Any ideas?

0