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?