Knowing how many flash writes have been done

We have had our cortexes for 4 years and have downloaded countless programs. We have been having some corputed downloads lately and I was wondering if it was possible to know the total number of flash writes done to the cortex?

There’s no way to tell.

The theoretical flash life is 10,000 erase-program cycles, however, it’s probably a conservative number. You would have to average 50 downloads a week for the four years to come close. During the competition season, it’s easy to exceed that but there will be many weeks when the cortex is not used. I wouldn’t worry too much.