怎样像cmd文件那样配置划分每一块的地址和长度,以及则怎样划分段放在哪个区域里?有没有一个教程啊,不懂cfg文件的意思。
我是直接用的interprocessorcommunication这个例程的默认cfg文件,报了以下错误:
"./configPkg/linker.cmd", line 152: error #10099-D: placement fails for object ".text", size 0x123aa3 (page 0). Available ranges: L2SRAM size: 0x100000 unused: 0x0 max hole: 0x0 "./configPkg/linker.cmd", line 164: error #10099-D: placement fails for object
".const", size 0x14ac9 (page 0). Available ranges: L2SRAM size: 0x100000 unused: 0x0 max hole: 0x0 >> Compilation failure"./configPkg/linker.cmd", line 169: error #10099-D: run placement fails for object ".far", size 0x12ed3 (page 0). Available ranges: L2SRAM size: 0x100000 unused: 0x0 max hole: 0x0 "./configPkg/linker.cmd", line 170: error #10099-D: placement fails for object ".args", size 0x10000 (page 0). Available ranges: L2SRAM size: 0x100000 unused: 0x0 max hole: 0x0 "./configPkg/linker.cmd", line 166: error #10099-D: run placement fails for object ".fardata", size 0x395d (page 0). Available ranges: L2SRAM size: 0x100000 unused: 0x0 max hole: 0x0 "./configPkg/linker.cmd", line 154: error #10099-D: run placement fails for object ".stack", size 0x1000 (page 0). Available ranges: L2SRAM size: 0x100000 unused: 0x0 max hole: 0x0 "./configPkg/linker.cmd", line 155: error #10099-D: run placement fails for object "GROUP_1", size 0x6f2 (page 0). Available ranges: L2SRAM size: 0x100000 unused: 0x0 max hole: 0x0 "./configPkg/linker.cmd", line 167: error #10099-D: placement fails for object ".switch", size 0x3e1 (page 0). Available ranges: L2SRAM size: 0x100000 unused: 0x0 max hole: 0x0 "./configPkg/linker.cmd", line 173: error #10099-D: placement fails for object ".vecs", size 0x200 (page 0). Available ranges: L2SRAM size: 0x100000 unused: 0x0 max hole: 0x0 "./configPkg/linker.cmd", line 171: error #10099-D: run placement fails for object ".cio", size 0x123 (page 0). Available ranges: L2SRAM size: 0x100000 unused: 0x0 max hole: 0x0 "./configPkg/linker.cmd", line 163: error #10099-D: placement fails for object ".init_array", size 0x34 (page 0). Available ranges: L2SRAM size: 0x100000 unused: 0x0 max hole: 0x0 "./configPkg/linker.cmd", line 161: error #10099-D: placement fails for object ".cinit", size 0x1f32 (page 0). Available ranges: L2SRAM size: 0x100000 unused: 0x0 max hole: 0x0 error #10010: errors encountered during linking; "inter_communication.out" not built
求指导应该怎样改啊
Andy Yin1:
cfg的配置使用可以参考sysBios手册,其中有描述如何使用cfg进行对内存分段。
同时也可以在带cfg的工程中添加一个cmd文件,在这个cmd中就可以更方便灵活进行内存划分并定于section的存放位置。
chunhai feng:
回复 Andy Yin1:
我本来也是打算用cmd文件来分配的,但是不知道为什么加了cmd文件后就报错了
Andy Yin1:
回复 chunhai feng:
注意天剑cmd不能与cfg已有的section冲突,建议你先看一下sysbios中关于cfg配置的章节做一下实验,然后再具体分析问题。