This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Determining image size from within code

Hi,

Can anyone tell me how my code can know what size the image is in FLASH ? Is there a symbol that I can reference that shows how much space the image occupies ?

I know this information is obvious from the generated .HEX file (and it may be possible to work it out from the .MAP file). I currently have to post-process the .HEX file and patch it (updating the relevant line's checksum accordingly).

Surely there is an easier way to do this !

Note that I'm not looking for the size of the CODE segment, just the overall image size.

Any ideas ?

Thanks,

David.