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/TMS570LS0432: HALCoGen FPU and hard-float compilation

Part Number: TMS570LS0432
Other Parts Discussed in Thread: HALCOGEN,

Tool/software: TI C/C++ Compiler

I'm trying to compile a program using floating point variables under Code Composer Studio 9.3.0. The source code has been generated by HALCoGen with support for FreeRTOS. With default options I am able to run code with floating point variables, because it uses soft-floating support.

The problem is when I try to use hard-float compilation. In this case when I set VFPv3D16 support in project properties and run my program I get "undefined instruction" exception. I suspect that FPU is not enabled at all in startup code. Even in following code in assignment to 'a' variable I get Undefined Instruction exception:

    

float32 a;

a = 0.0;

I was looking for any option for enabling FPU in HALCoGen but didn't find.

Did I miss something? Should I enable FPU manually? Any other suggestions?