Arduino flash memory wear leveling when updload sketch ?

Hello there,

I look all over the net to find out how the flash memory or programs you upload, was used on Arduinos, like Uno or Mega.
I found a lot to EEPROM but no answer to the flash memory
.
I wonder if I made ??10K programs, all the time, is that the blocks of 256K (248 actually) are used in wear leveling, or the first 10K are each use.

As the limit is 10000, so I could upload that 10000 x 10k then the card is dead or I could use the 256K / 10K x 10000 = 250000 upload.

This will make a big difference in the lives of the product in research and development between 10000 and 250000, 1 year vs 25 years...

friendly
Seb

There is no wear levelling.
It's a very, very cheap microcontroller.

I wonder if I made ??10K programs

How long will that take?
Do the arithmetic.
How much will your time cost vs. the cost of a new processor?

Bootloader is always in the same place, and expects the code to be in the same place.
10,000 writes is 27 writes a day for a year.
Are you planning on doing that many? Then there's a very small chance you might wear out your $3 Atmega328P chip. Plug in a new one, rebootload, and have at it for another year.
Hopefully your coding improves at some point so that so many writes are not needed 8)

Good evening and thank you for your responses
.
Of course, basically it was not a criticism but I needed to know not too fun to make "my first program" for the fun.

In principle I understand very well the economic and technological gain for this and it also allows for shorter hard functions.

In any case I will use it intensively for the development and then, once the program is ok, the card can run for one century without uploading sketch :slight_smile:

Developer for several decades, I discovered hardware with the Arduino through and thank everyone who helps make this world live without limits.
friendly
Seb

Ok, good luck with your project then.

Thank you again, I think we will win for the first, I know I can be here to help them specific questions.
Seb