For reference, I was able to include 2 files with the same name only if I created a new Group (right click-> create group)
and in theese new groups add the file. For instance:
- "RAM" : file1.c
- "FLASH" : file1.c
If not creating 2 new groups the IDE complained about "Removed duplicated filename " or something similar.
I too am experimenting with a similar target issue. I have found that you need to be careful about the search path that is specified for each target. When you add a file to the project be sure it is only added to the correct target(s) and not to all targets, same with the search paths.
I have a project with two files of the same name, with one target referencing one file and a different target referencing the other file of the same name. The two files are in different directories of course. It does work, but the Project File window does not show the full path name so they both appear in the list with the same name.
The Project Inspector tool will show the full path name. My question is how to set the Project Files window to show the full path name or at least a relative path name instead of just the file name? Is there a preference setup to display path names?