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.
Thanks for the reply Per, and my apologies if I misinterpreted the intention of your comment.
Believe me, with 20+ years embedded experience, I do know the difference between non-volatile/persistent and volatile storage media. I understand what you are suggesting and even agree that it makes some sense. However, it brings me back to the unanswered question of what is the point of the linker emitting symbols that, if you are completely correct, are ALWAYS going to be 0 ?
Regards,
PS: While I would certainly appreciate any comment you may have on my question above, I think this thread has probably started to outlive its usefulness. I'll look forward to the relevant information being made available by the linker some time soon.
Thanks to everyone who has contributed.