Other Parts Discussed in Thread: C2000WARE, TMS320F28377D
Tool/software: Code Composer Studio
Hello,
use:
lib: rts2800_fpu32_fast_supplement.lib
lib: rts2800_fpu32_fast_supplement_eabi.lib
compiler: ti-cgt-c2000_20.2.0B1 / ti-cgt-c2000_18.1.1.LTS
Customer had a problem with the lib function pow or powf.
Description (in assembler):
Target addresses and parameter addresses are writen into the XAR register. These are not reloaded later before reading or writing of this register. Then the powf function is used. But the XAR register values aren't automatically saved onto the stack. The powf function uses some XAR register (eg XAR2) and overwrites these register. There are the wrong addresses in the XAR register after execution of the powf function and the following code uses the wrong values or jumps to the wrong addresses.
Attached is an example screenshot. I can send the code or what else you need offline.
Regards, HolgerCompiler Library Fehler FPU-Funktion.docx
