I'm actually writing some data to the flash. I'm using pstorage api interface.
But whenever I flash the new firmware, I get some garbage data. in my main function I would like to know that, after flashing a new firmware, it started for the first time, so I clear the garbage data, and want to make sure it is not result of a reset or a manual reset etc.
Thanks