2020-07-10 05:02 AM
2020-07-10 05:50 AM
No need to implement, it already exists. Add #include <math.h> to your source code and add linker flag -lm That brings in the math lib for gcc.
For the curious: Sources are roughly here: https://sourceware.org/git/?p=newlib-cygwin.git;a=blob;f=newlib/libm/math/e_atan2.c
2020-07-10 05:59 AM
Running floating point on my L011, but not using CubeIDE. ST has a free Keil License for their Cortex-M0(+) devices.
Make sure to enable all options/checkboxes to pull in the appropriate C run-time libraries, including floating point support.
The chips have relatively small Flash, so I'd imagine if you pull in a lot of the transcendental stuff things could get tight.