Application Size in Flash
Posted: Mon Nov 15, 2021 11:17 am
Brief - At run time is there some way to get or calculate the amount of space used by the application under the native NonOS?
Detail - I know the application (user1.bin) is uploaded to 0x1000. I have my test app scanning the flash for blank sectors and can see the following on a freshly erased and flashed ESP8266 WeMos 4MB board.
empty sectors 8 - 15
empty sectors 84 - 1017
empty sectors 1022 - 1022
I'm not sure what the big hole is between 8 and 15, but the app resides in 16 to 83 taking up 272KB.
Since scanning and inferring the end of the app is unreliable, is there a way via the SDK to calculate the size?
Thanks for your help.
Detail - I know the application (user1.bin) is uploaded to 0x1000. I have my test app scanning the flash for blank sectors and can see the following on a freshly erased and flashed ESP8266 WeMos 4MB board.
empty sectors 8 - 15
empty sectors 84 - 1017
empty sectors 1022 - 1022
I'm not sure what the big hole is between 8 and 15, but the app resides in 16 to 83 taking up 272KB.
Since scanning and inferring the end of the app is unreliable, is there a way via the SDK to calculate the size?
Thanks for your help.