共2条
1/1 1 跳转至页
问
我用例子新建一个项目,现在出现这样的问题。
>> warning: creating output section .cinit without SECTIONS specification
>> warning: creating .stack section with default size of 400 (hex) words.
那位大虾能帮帮我。 答 1: 是我说的不详细吗??请问一下。我的问题出在那里????? 答 2: cmd命令文件没有设置好你给.cinit 分配空间,
.stack 修改成别的大小,不过这样子没事,系统默认设置为400个字节
答 3: 谢谢gmy800101我刚接触这个,有很多不懂。我现在这个项目是一个例子,这个例子是.mak.现在我重新建立一个项目。加入程序和库。编译就出现上面的告警提示。而我直接把.mak转化成.pjt就没有出现上面的告警。
MEMORY
{
PAGE 0:
VECS origin = 0000h, length = 0040h
FLASH: origin = 100h, length = 7F00h
SARAM_P: origin = 8100h, length = 1000h
PAGE 1:
B2: origin = 0060h, length = 020h
B0: origin = 200h, length = 100h
B1: origin = 300h, length = 100h
SARAM_D: origin = 8000h, length = 8000h
}
SECTIONS
{
vectors: > VECS PAGE 0
.text: > FLASH PAGE 0
.data: > FLASH PAGE 0
.bss: > SARAM_D PAGE 1
stack: > SARAM_D PAGE 1
buffer: > SARAM_D PAGE 1
}
在.mak中cmd和我新建立的项目是一样的。为什么没有出现告警
我给.cinit 分配空间后,没有>> warning: creating output section .cinit without SECTIONS specification
要消除>> warning: creating .stack section with default size of 400 (hex) words.我应该怎么做。
>> warning: creating output section .cinit without SECTIONS specification
>> warning: creating .stack section with default size of 400 (hex) words.
那位大虾能帮帮我。 答 1: 是我说的不详细吗??请问一下。我的问题出在那里????? 答 2: cmd命令文件没有设置好你给.cinit 分配空间,
.stack 修改成别的大小,不过这样子没事,系统默认设置为400个字节
答 3: 谢谢gmy800101我刚接触这个,有很多不懂。我现在这个项目是一个例子,这个例子是.mak.现在我重新建立一个项目。加入程序和库。编译就出现上面的告警提示。而我直接把.mak转化成.pjt就没有出现上面的告警。
MEMORY
{
PAGE 0:
VECS origin = 0000h, length = 0040h
FLASH: origin = 100h, length = 7F00h
SARAM_P: origin = 8100h, length = 1000h
PAGE 1:
B2: origin = 0060h, length = 020h
B0: origin = 200h, length = 100h
B1: origin = 300h, length = 100h
SARAM_D: origin = 8000h, length = 8000h
}
SECTIONS
{
vectors: > VECS PAGE 0
.text: > FLASH PAGE 0
.data: > FLASH PAGE 0
.bss: > SARAM_D PAGE 1
stack: > SARAM_D PAGE 1
buffer: > SARAM_D PAGE 1
}
在.mak中cmd和我新建立的项目是一样的。为什么没有出现告警
我给.cinit 分配空间后,没有>> warning: creating output section .cinit without SECTIONS specification
要消除>> warning: creating .stack section with default size of 400 (hex) words.我应该怎么做。
共2条
1/1 1 跳转至页
我要赚赏金
