Tool/software: Code Composer Studio
CCS: 7.2
Here is the tree map of directories and files:
|-proj
|-example_proj_rtsccfg
|-Debug
|-configPkg
|-xdccfg
|-c66_plat.cfgi
- The folder configPkg in Debug is automatically generated by xdctools.
- Inside the folder xdccfg there are some xdc configuration files to be used by importation. (so I changed the extension name for a clearer look.)
Phenomenon:
I added the following codes into the cfg file for project:
environment["config.importPath"] += ";../../../../xdccfg"; utils.importFile("c66_plat.cfgi")
The building process goes great, and the path is relative to the directory configPkg.
But if I open the project's .cfg file in CCS window using XCONF graphical editor, CCS tells me that "Can't find import file:'c66_plat.cfgi'". And so, the configuration values inside the editor are default values, not the values I writes inside the xdc configuration file.
If I change the relative path mentioned above to a absolute path, everything is good.
So I guess it's some problem about the base searching path.
Question:
Then how can I continue using the relative path and workaround this problem?