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.

TMS320F280039C: isnan() is causing illegal operation

Part Number: TMS320F280039C

Hello, 

I'm trying to check if a number is NaN using the function isnan in math.h but when it runs it ends up in the Interrupt_illegalOperationHandler(). I've tried using all three of these individually as well in _defs.h

I simplified a function just to test isnan and now this is the function ending up in the illegalOperationHandler()

If I comment out isnan the function works fine. I have math.h included in the file. Do you have any ideas what is going on here?