Hello.
CCS 6.1.3, Win7 64-bit, Sitara Processors Development Kit 3.0
In a SYS/BIOS project I have a folder containing source. I have tried several methods of adding this file with linked connection in my project with a relative path to this project and it fails in each case. (In all the below examples, I requested that the file be LINKED to the project -- not copied.)
The file is: C:\ti\pdk_am335x_1_0_3\packages\ti\drv\uart\soc\am335x\UART_soc.c
The one case where it succeeds is dragging and dropping the file from Windows Explorer into the project and then selecting make path relative to project directory (my project is on the E: drive, so it forces a FULL PATH to the file).
The following cases fail:
1. Right clicking the project and selecting "Add Files..." then navigating to the above file and selecting LINKED and relative to variable TI_PDK_INSTALL_DIR.
The file is not added and nothing happens, not even an error message.
2. Dragging the file from Windows Explorer into the project and selecting LINKED and relative to variable TI_PDK_INSTALL_DIR.
The file is not added and the following dialog box appears.
The only way I have been able to make this work, again (repeating the above) is by dragging the file to the project and selecting relative to some WRONG variable name, which forces a full path. Then the file link is added to the project with the full path, which I can then go and edit.
The variable TI_PDK_INSTALL_DIR is not defined either under Linked Resources or Build Variables. However, when attempting to add the linked file as above, this variable appears. It also appears when adding additional INCLUDE PATHS to the project (GNU compiler), where I can click the "+" button to ADD an include directory, click the "Variables..." button and the variable TI_PDK_INSTALL_DIR is listed, with the defined value of:
C:/ti/pdk_am335x_1_0_3
which is correct.
It is probably pertinent that when I attempt to modify the LINK PROPERTIES to use the relative path
${TI_PDK_INSTALL_DIR}\packages\ti\drv\uart\soc\am335x\UART_soc.c
it complains with a message near the top of the dialog box under the "Edit a Link Location" title:
"Path does not exist."
If I manually add a variable to the Linked Resources PATH VARIABLES in the project like this:
MY_PDK_INSTALL_DIR = C:\ti\pdk_am335x_1_0_3
And then try to add the above file linked and then relative to THAT variable, then the add works.
This would seem to indicate (at least) a lot of smoke around the variable TI_PDK_INSTALL_DIR.
This should be enough data to lead someone directly to the problem.
Hope this helps.
Kind regards,
Vic

