Since there's no FPU in RA2L1, How to perform FLOATING POINT operations in RA2L1 controllers?
Is there soft float library available, to make faster calculations? Any help from FSP?
If -mfloat-abi=soft is defined then the compiler will generate calls to the software floating point library to do the floating point operation in software, there is nothing else you need to do.
Did you find a solution to perform FLOATING POINT operations in RA2L1 controllers?
HeraldRenesasRulz Forum Moderatorhttps://renesasrulz.com/https://academy.renesas.com/en-us.knowledgebase.renesas…
yes...settings from Jeremy helped. Thanks Jeremy, Thankyou Herald.
The toolchain used will provide a software floating point library.
The toolchain I use is GNU Tools for ARM Embedded Processors (arm-none-eabi-gcc)
From this article... ARM Options - Using the GNU Compiler Collection (GCC)
Specifies which floating-point ABI to use. Permissible values are: ‘soft’, ‘softfp’ and ‘hard’.
Specifying ‘soft’ causes GCC to generate output containing library calls for floating-point operations. ‘softfp’ allows the generation of code using hardware floating-point instructions, but still uses the soft-float calling conventions. ‘hard’ allows generation of floating-point instructions and uses FPU-specific calling conventions.
The default depends on the specific target configuration. Note that the hard-float and soft-float ABIs are not link-compatible; you must compile your entire program with the same ABI, and link with a compatible set of libraries. "
Does that mean...once these options enabled, I need not call anyother library functions to do floating operations? If yes, how to enable them?
under c/c++ project settings->Tool settings->Target Processor->Float ABI.
I have changed FLOAT ABI :: TOOLCHAIN DEFAULT to Library(soft)
Still anymore settings that i need to edit?
HeraldRenesasRulz Forum Moderatorhttps://renesasrulz.com/https://academy.renesas.com/en-us.knowledgebase.renesas.com/
Thanks viswa for confirming! Will close this thread now. If you have another question, please create a new discussion. Have a nice day!
JBRenesasRulz Forum Moderator