Total ROM Size in -map file doesn't include last byte of ROM, why?

Hello,

for crc calculation, I'm using the total ROM size out of the .map file.

To check, all code is included, I've added the total ROM size to my start address.

Then I saw, that I only get the address of the first byte of my last word, half word ....

I would expect to get the address of the last byte or the last byte plus some stuffing bytes to get an alignment of 4.

Do you know, why I get the address of the first byte (of my last word/half word....) if I'm adding the total ROM size to my start address?

Best regards,
klaus

Parents Reply Children