.\Objects\5.sct(7): error: L6236E: No section matches selector - no section to be FIRST/LAST.

来源:互联网 发布:三国志11古武将数据 编辑:程序博客网 时间:2024/06/06 01:06

1,对于汇编调试不需要加载启动项,仅设置堆栈即可。
2,默认分散加载文件如下; ***************************************************
; * Scatter-Loading Description File generated by uVision *
; ***************************************************

LR_IROM1 0x00000000 0x00040000 { ; load region size_region
ER_IROM1 0x00000000 0x00040000 { ; load address = execution address
*.o (RESET, +First)
*(InRoot$$Sections)
.ANY (+RO)
}
RW_IRAM1 0x20000000 0x00020000 { ; RW data
.ANY (+RW +ZI)
}
}
3,所以开辟代码 区域时,要用RESET与上面的*.o (RESET, +First)一致否则提示
.\Objects\5.sct(7): error: L6236E: No section matches selector - no section to be FIRST/LAST.

STACK_TOP EQU 0X00002000
AREA RESET,CODE
DCD STACK_TOP
DCD START
ENTRY
4
然后提示, .\Objects\5.sct(8): warning: L6314W: No section matches pattern *(InRoot$$Sections).

禁用所有具有指定标签的诊断消息。

此选项需要以逗号分隔的诊断消息编号列表,用于指定要禁止显示的消息。

例如,要禁止

显示编号为

L6314W

L6305W

的警告消息,请使用以下命令:

armlink

–diag_suppress L6314,L6305 …
如图:
这里写图片描述
这里写图片描述

0 0
原创粉丝点击