This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi,
Why does the code size used is different from CCS memory map and the programming tool
lile MSP-GANG/FET-Pro430?
For example the CCS memory allocation or memory map for the USB project(MSP430F5529)
is shown as below. 1,668+9,332 total 10,500 bytes.
Whereas when we open the .txt file in the MSP-GANG or FET-Pro430 GUI,
it shows the memory size as 10,546 bytes (46 bytes more than the CCS memory map).
In our actual project the code size difference is even bigger.
CCS memory Map-> 64,572 bytes
MSP-GANG memory size-> 64,618 bytes
Please let me know why is this difference?
You can re-produce this issue with any sample code or any device.
Best Regards
Kummi
Katie Pier said:Personally, I think that the .map file in CCS is usually the best way to find the true code size so you may want to look at that (I'm going to guess that is also what the CCS memory allocation shows, but I could be mistaken).
Personally, I think the 10546 bytes reported by MSP-Gang is the actual number of bytes that is needed to be downloaded into the target. You could confirm this by examine the "C1...txt" file manually. Is this file generated directly by CCS? Or is an utility program used to translate what CCS generated into this format? I cannot rule-out the possibility of "something (46 bytes) gained in the translation" ;)
I haven't got an answer about how either of these tools calculates these values to determine the discrepancy, but I now have a theory:
You mentioned that the difference is 46 bytes. I checked on the MSP430F5529, and I found that there are 46 bytes of used interrupt vector table on the MSP430F5529 (see www.ti.com/lit/gpn/msp430f5529 p. 52 Table 6-1 Interrupt Sources, Flags, and Vectors, you can see that the IVT goes from 0xFFD2-0xFFFF on this device, or 46 bytes of used entries). This makes me suspect that CCS does not count the IVT in its memory allocation calculation, but the Fet-Pro430 and MSP-GANG both do. I'm working to get confirmation. Thanks so much for posting!
Regards,
Katie
**Attention** This is a public forum