大家好,我是偏软件的,链接脚本不太懂,如果可以的话,请大家帮我看一下,这些。 要说明的是,这一行没注释的话会报错 error: L6236E: No section matches selector - no section to be FIRST/LAST. ,注释掉就好了,请问是什么意思呢 ; gharm7.o (MODULE_HEADER, +First) ; ************************************************************* ; *** Scatter-Loading Description File generated by uVision *** ; ************************************************************* LR_IROM1 0x08000000 0x00001000 { ; load region size_region ER_IROM1 0x08000000 0x00000400 { ; load address = execution address *.o (RESET, +First) *(InRoot$$Sections) } ER_IROM1_1 0x08000400 FIXED 0x00000C00 { ; load address = execution address ; gharm7.o (MODULE_HEADER, +First) .ANY (+RO) } RW_IRAM1 0x20000000 0x00010000 { ; RW data .ANY (+RW +ZI) } } LR_IROM2 0x08002000 0x0007E000 { ER_IROM2 0x08002000 0x0007E000 { ; load address = execution address .ANY (+RO) } } TRACE_DATA 0x08100000 0x20000 { TRACE 0x08100000 FIXED UNINIT { *(TRACE) } } |
warning: L6314W: No section matches pattern *(TRACE).
*.o (RESET, +First)
*(InRoot$$Sections)
}
之所以能对那是因为
启动文件(.s)里有AREA RESET, DATA, READONLY
下面的不对那是跟代码,或lib对不上.