bill2009:
so even a static global variable gets reinitialized by design? II'm now using attribute ((section (".noinit"))); accepting that the variable is uninitialized the first time after reloading the sketch.
The variable will loose its value with each power off, not only with reloading the sketch.