Part Number: MSP430F5328
Tool/software: Code Composer Studio
Hello,
I am working on a MSP430F5328 with Code Composer Studio 7.2.0.00013, compiler TI v16.9.3.LTS.
I have created some sections to place some of the code in a specific address range with the #pragma CODE_SECTIONS(). That is working well.
Only some of the const strings I use in those functions where placed in .const instead in the sections I created.
With the #pragma DATA_SECTION() I can force that the const strings are also placed in my created section.
But then I get the following warning:
#849-D The section <section name> contains incompatible objects <object name 1> (text) and <object name 2> (data). <object name 2> will not be included in <section name>.
- How can I solve this warning?
- Is it allowed to place .text and .data in the same section?
I tried some different things and found out that sometimes it is allowed to place some functions and data in the same section but with another function the previous warning is shown.
What is the correct way to handle this?
Best regards,
Jeroen