Hello,
I have a F28375D project, that has --float_support configured to fpu32. I'd like to leave that as a whole for the project. But there is a single case of an array that I need 64 bit resolution on. Is that possible?
Please advise,
Robert
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.
Hello,
I have a F28375D project, that has --float_support configured to fpu32. I'd like to leave that as a whole for the project. But there is a single case of an array that I need 64 bit resolution on. Is that possible?
Please advise,
Robert
Hello Robert,
You can use 32-bit or 64-bit floating-point, the only difference is that the float_support enables the hardware accelerator that's on the device. By not using fpu64, you can still do the same operations through software, but they may take longer than if the accelerator is used.
Keep in mind that the F2837xD family of devices does not have FPU64 support for the floating-point hardware accelerator.
Best regards,
Omer Amir
Hello,
Thank you for the reply. I've declared a variable as double, but it is coming up as float, 2 words - I can see it in the Memory Browser window.
Can you think of any reason that might be?
Robert
Hello Robert,
What are you using to declare the 64-bit floating-point type? Are you using float64_t? Please share your code and show me what you're seeing in the Memory Browser.
Best regards,
Omer Amir
Hello,
It turns out that I needed to declare the variables as "long double" to get 64 bit floats.
Thanks,
Robert