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.

TMS320F28062: InstaSPIN lab11d enabling fpu32

Part Number: TMS320F28062

Greetings,

I have been frustrated with the lack of support for the old code structure before the implementation of the ctrl API for InstaSPIN, I've inherited a project based of off lab 11d and it has been difficult to navigate. However I have been able to figure most of the things out on my own.

I am having trouble enabling fpu32 and getting the code to compile. I can Winmerge lab5b with lab5g and I can see the difference, but this is with the ctrl structure.

Can you please explain to me the procedure for turning on the fpu32? Hopefully it is just a switch and not a lot of effort. Thanks

  • Unfortunately, lab11d can't support fpu32 if you used the function, EST_getIdq_pu() from EST_getIdq_pu.lib. The EST_getIdq_pu.lib can't support fpu32, and we didn't provide this version as well. You have to keep using the example lab with fixed-point version.

  • Yanming,

    As always thank you for your fast response. I appreciate it. Your answer saved me a lot of time.

    Is there still a way that I can enable the fpu32 core for use in other activities in the CPU (like doing floating point math unrelated to InstaSPIN elsewhere in my code) while leaving InstaSPIN in fixed-point mode and as is?

    Or, will I need to interface to an additional MCU external to the TMS320F28602 to handle floating point math?

    Nate

  • You may still use floating-point without fpu32 if the floating-point operation code is not too many in your project.

    Or you can specify a single file to support fpu32 in the properties of this file, by right click the file, Properties->Build->C2000 Compiler->Processor Option.