Skip to main content
MHass.2
Associate II
April 8, 2021
Solved

what is the maximum size of an array (float data[R][C] ) that I can use it with STM32F407 ?

  • April 8, 2021
  • 1 reply
  • 2846 views

Hi,

I use STM32F407 to acquire and process data from sensors, this data is very large approximately I need to define array (float Data[12][15000]) with 12 row and 15000 column

but, STM32F407 mcu can't define this array.

Did I exceed the maximum size of data memory ? and how I can determine the maximum size of an array of type float?

Thanks..

This topic has been closed for replies.
Best answer by waclawek.jan

sizeof(float) is 4, so if float foo[a][b]; sizeof(foo) is a*b*4 bytes.

JW

1 reply

waclawek.jan
waclawek.janBest answer
Super User
April 9, 2021

sizeof(float) is 4, so if float foo[a][b]; sizeof(foo) is a*b*4 bytes.

JW