Dear all,
a couple of years ago I remember that I used a feature in UV3 and now this feature does not work anymore in the latest release of uVision.
I defined two targets in the same project: target1 and target2 for two different micros, and it was possible to use different files in the two targets (the asm startup files for instance).
I did that using the "Project Components" dialog window. On current release of UV4 this window is available on the menu Project/Manage/Components ... .
Now I am trying to do the same, but the changes I do to the dialog window fall in every Project Target, so all my targets have the same files.
Does it happen to you also? Is it a removed feature or I am doing something wrong?
I thank you all in advance, Marco.
And the boot loader and target may actually have a reason to share a couple of files.
Yes, but sharing source files by no means implies that they need to live in the same project file.
The boot loader may define a number of variables that are stored at an absolute location in memory, allowing communication between boot loader and application.
... and it is the job of header files to carry that information from the boot loader to the application. If all else fails, you can always link the readily built boot loader image into the application.
Ultimately, if your line of reasoning were to hold water, you would have to keep all applications that ever were to use that boot loader in a single project. That's rather clearly ridiculous.
Ten years later, you don't suddenly stand there with the application source and notices that you can't build it because it tries to include a couple of files from a different directory
Now you're mistaking an IDE for a configuration management / source code control system. Using source files in a single project has absolutely no effect on how you manage (or not) to store all the necessary files correctly and keep them together. You can miss a file that is part of the project just as easily as you can miss one that isn't.