This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

使用ccs_v10.3.1编译和链接出现问题(linker.cmd)

一、问题描述

使用U盘更新程序,设置好起始地址后,在编译时出现如下问题:


"configPkg/linker.cmd", line 147: warning #10096-D: specified address lies outside memory map
error #10264: DEFAULT memory range overlaps existing memory range FLASH
error #10264: DEFAULT memory range overlaps existing memory range SRAM
error #10010: errors encountered during linking; "empty_EK_TM4C129EXL_TI.out" not built

经查看是因为linker.cmd文件中:

SECTIONS
{
.bootVecs: type = DSECT
.vecs: load > 0x20000000


.resetVecs: load > 0x0



xdc.meta: type = COPY
}

红色位置出现问题。

二、我在${project}.cmd中设置的起始地址是0x00010000,

这样.resetVecs: load > 0x0确实不在所设定的范围内,

linker.cmd文件是编译后生成的,编译的时候会清除,然后再生成

~~~~~~~~~~~~有大神遇到过么?应该怎么做?~~~~~~~~~~