这个waring是说你创建了.bss段但是没有给他分配地址空间,这时编译器会自动的给他分配一个空间。分配原则是空间最小且能放下该段的一个空间。你定义一个空间将段放进去就行了。下面是我在ti网站上找的一个解决方案。他这个是以.data段为例
This means the linker may have placed the .data section in the wrong location in memory, which could cause a crash - see Should linker warning #10247-D really be an error for more information.
To resolve this you need to add the .data section to the linker command .cmd file in the project as:
SECTIONS
{
.bss : {} > RAM /* GLOBAL & STATIC VARS */
.data : {} > RAM /* GLOBAL & STATIC VARS */
.sysmem : {} > RAM /* DYNAMIC MEMORY ALLOCATION AREA */
.stack : {} > RAM (HIGH) /* SOFTWARE SYSTEM STACK */