使用C6657LS EVM,测试memory_test例程,在没有导入gel文件时,编译的.out文件不能加载到内核,执行load program后:
C66xx_0: trouble writing memory block at 0x1e1b8 on page 0 of length 0x2556: (error -1190 @0x20 ) unable to access device memory....
导入evm附带的gel文件后,出现如下错误:
C66xx_0: loader: one or more sections of your program falls into a memory region that is not writable. these region will not actually be written to the target. check your linker configuration and /or memory map.
再在工程中导入了evm附带的linker.cmd( /pkd_c6657_1_1_1_4\packages\ti\transport\ndk\nimu\debug\configpkg\linker.cmd),加入linker.cmd后,程序编译报链接错误,错误提示为:链接错误:需要链接的库在/home/gtbldadm/ 目录下,可系统中根本没有这个路径,查找了所有的环境变量,没有发现某个环境变量为“/home/gtbldadm/"。
还提示错误: --retain=*(xdc.meta) not supported when producing TI-COFF output files
如何修改链接时指向的”/home/gtbldadm/“目录,或者说需要linker.cmd文件吗?且linker.cmd文件中的map映射和样例中的”KeyStone_mem_Test.cmd"是否冲突?
手动修改linker.cmd文件中的-l选项后的文件路径为:“/home/gtbldadm/"。 ----> "c:/ti/" linking时“找不到文件”的错误没了,但是linker.cmd文件中说明:
do not modify this file; it is automatically generated from the template linkcmd.xdt in the ti.targets.elf package and will be overwritten.
手动修改路径后linking错误消失,看来linker.cmd文件内容没有被自动修改,这有是怎么回事呢?
请各位专家指导解答,谢谢!