Arduino nano(ATMEGA328P) memory limit

I there.
I'm writing a sketch and, after compile it, It says the sketch will occupy 82% of the main memory and 62% for the dynamic.
I've also red that you should take 100% of the memory but i couldn't find anywhere a limit to the memory to use.
Can this ammount of memory damage the board after uploading?

The first is flash size for storing your program, and the second is RAM for using during the program run.

The flash can be used up to 100% and the program will work. If you exceed the maximum - nothing terrible will happen - the IDE will simply refuse to load the code into the board.
On the contrary, it is not recommended to load the RAM by more than 70-80%, therefore the figure shown by IDE is very approximate and during work it can be more. If the memory demand exceeds its size, the program will hang. Memory problems are a very unpleasant error, because it is usually very difficult to find its cause

1 Like

Thanks man

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.