Part Number: MSP430F5172
Hi TI Team,
About MSP430xxxx MCU,
How to reduce RAM size and code size?
We want to know about them.
Can you offer several ways?
Thank you,
Kirk Zhang / Driver Team
Sercomm
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.
Part Number: MSP430F5172
Hi TI Team,
About MSP430xxxx MCU,
How to reduce RAM size and code size?
We want to know about them.
Can you offer several ways?
Thank you,
Kirk Zhang / Driver Team
Sercomm
Hi Kirk,
Please help to check if this document be useful for you:
https://www.ti.com/lit/an/slaa801/slaa801.pdf
Thanks!
Best Regards
Johnson
Hi Johnson,
About speed and size, Does this ' speed ' mean run speed or compile speed?
Hi Johnson,
1. We have adjusted the setting of CCS according to the first two options in the guide you provided. My own project code can indeed reduce the flash size of about 400 bytes, but my colleague's project cannot be completely reduced. Our MCU model is the same, but his code is a little more. He adjusted the second option (changing large to small) and it didn't even compile.
2. If I set it to 0 (size), how much does run speed matter? Is it obvious? Does it affect our processing speed?
Thank you.
Hi Kirk,
Q1: The optimized size is determined by the content that can be optimized in the code, so not every code can be optimized. Maybe you can try IAR. Generally, the code size compiled by IAR will be smaller than CC.
Q2: No big impact for your function.
Thanks!
Best Regards
Johnson
**Attention** This is a public forum