Skip to main content
Kmax18
Senior II
November 16, 2023
Solved

Floating point operation with the STM32G0

Does the STM32G0 with the CMSIS libraries support floating point operations?

Is the G0 recommended for floating point operation, or should I use the F1 series instead?

Thank you!

This topic has been closed for replies.
Tesla DeLorean
Tesla DeLoreanBest answer
Guru
November 25, 2023

Think through the math and the range of numbers at each stage of the computation, perhaps scale or used fixed point representations.

Get a device that will hold enough of the float library, a 16 KB Flash device is going to be a bit tight to do much, but the G0 and C0 parts come in some larger capacities.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..

3 replies

Tesla DeLorean
Guru
November 16, 2023

The Cortex-M0(+) uses software libraries for floating point, so does the Cortex-M3

On the M4F some simple operations are facilitated in hardware on the single-precision FPU

How much math and the precision will determine if 64 MHz operation is sufficient.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Kmax18
Kmax18Author
Senior II
November 24, 2023

Thank you. Can you recommend a reference about algorithm implementations with integers only, not floating point?

Tesla DeLorean
Tesla DeLoreanBest answer
Guru
November 25, 2023

Think through the math and the range of numbers at each stage of the computation, perhaps scale or used fixed point representations.

Get a device that will hold enough of the float library, a 16 KB Flash device is going to be a bit tight to do much, but the G0 and C0 parts come in some larger capacities.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..