工具/软件:Code Composer Studio
您好!
我正在使用 Code Composer Studio 7.2.0.00013和编译器 TI v16.9.3.LTS 开发 MSP430F5328。
我已经创建了一些段来使用#pragma CODE_SECTIONS ()将一些代码放置在特定的地址范围内。 这很好。
只有我在那些放置在.const 中的函数中使用的一些 const 字符串、而不是放置在我创建的段中。
使用#pragma DATA_SECTION ()、我可以强制将 const 字符串也放置在我创建的段中。
但是、我会收到以下警告:
#849-D 部分
包含不兼容的对象 (text) and (data). will not be included in .- 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