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.

Compiler/TMS570LC4357: TMS570LC43x using floating point within interrupts

Part Number: TMS570LC4357


Tool/software: TI C/C++ Compiler

We are implementing an inertial navigation system based upon the TMS570 and I would like to know if it is safe to use floating math within ISRs. Are the floating point routines within the standard library reentrant? I understand some functions are NOT reentrant, such as asin, acos, log, sqrt, etc...

Is it safe to +-/* floats within an ISR?

Thanks for any advice,

-Steve

  • Hello Steve,

    I used floating point operation (+-*/) in my RTI ISR before, and didn't see any issue. I didn't try sin and cos functions in ISR. But I think it should be ok. LC4357 has HW FPU for floating point operations. I will try sin/asin/cos/aco etc functions in ISR later.