/*
To completely override the placement of all output sections you can define sectionsExclude to match any string.
// Note: the '.' below represents _any_ character, not just "."
Program.sectionsExclude = ".*";
To override output sections that begin with '.' you must specify the literal character '.' and use the '^' character to match the beginning of the string.
// the sequence '^.' matches just "." at the start of the name
Program.sectionsExclude = "^.";
To override a specific sections you should be careful to supply a regular expression that matches the entire section name. You can use '$' to match the end of the name.
// match only ".const" or ".text"
Program.sectionsExclude = "^.const$|^.text$";
*/
Program.sectionsExclude = ".*";
修改不进去,一编译,还是原来的,,,可能是cmd自动生成的关系。。。所以就不知道该怎么改了
C:UsersAdministratorDesktop1.jpg红 {MOD}圈出来的是我加进去的,但我一重新编译就没有了,还是原来的cmd,我在想可能是因为自动生成的关系,但我不知道该怎么办了。。。。
图刚刚没弄上去
/*
To completely override the placement of all output sections you can define sectionsExclude to match any string.
// Note: the '.' below represents _any_ character, not just "."
Program.sectionsExclude = ".*";
To override output sections that begin with '.' you must specify the literal character '.' and use the '^' character to match the beginning of the string.
// the sequence '^.' matches just "." at the start of the name
Program.sectionsExclude = "^.";
To override a specific sections you should be careful to supply a regular expression that matches the entire section name. You can use '$' to match the end of the name.
// match only ".const" or ".text"
Program.sectionsExclude = "^.const$|^.text$";
*/
Program.sectionsExclude = ".*";
我设置的是section全部由用户自己分配。这样BIOS生成的cmd只配MEMORY部分,SECTION部分是空的,用户另建个cmd文件自己写SECTION部分。
SYS/BIOS 6以上应该都是这样,其它版本不详。要弄明白BIOS这套东西,很多文档要看一下。
我们在进行基于DSP/BIOS的编程中,往往需要加入自己定义的数据段,或者代码段,那么在DSP/BIOS下如何实现呢?以下是解决方法:
1.把系统自动生成的CMD文件排除出CCS工程中,注意,不要删除文件
2.在上述CMD文件相同目录下,创建一个自定义的CMD文件,并加入工程中
3.按如下格式书写自自定义的文件:
-l c6457cfg.cmd
SECTIONS {
.DDR2_ram: {} > DDR2
.SRC_Ram: {}> IRAM
.DST_L1D: {}> CACHE_L1D
}
其中第一项是把系统生成的CMD,链接到当前CMD中,然后就可以在SECTIONS中自定义自己想要的代码段,同时可以把自定义的代码定位在DSP/BIOS设置的内存空间中
一周热门 更多>