Need to know about RAM and Flash storage

  • What product do you wish to discuss? - RAK4631

  • What firmware are you using? - Arduino BSP

I have a project requirement where I need to store the sensor readings in RAM and few configurations in flash memory.
Now I want now what is the maximum RAM space and Flash memory space I can utilize to store the data.
@beegee could you please help me out here?

Free RAM and Flash size depend mainly on your application size and how much RAM your application uses for variables, structures, stack.
Check the output of your compiler. You will get some information there.

image

Thank you @beegee
Can I use all remaining free space? If I use 90 to 100% of space what will happen or what are effects?

For RAM, stack is allocated temporarily, if you use up all, your app will most likely crash.
How much you can use, I don’t know.
For Flash, you might be able to use all, but don’t write too often to it, it has a limited number of write cycles.

1 Like

Okay. Thank you for the clarifications.