This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

reusing the same file in different targets (or: a rant)

Hello,
Why does uv3 not allow me to add the file "foo.h" to different targets? or maybe I am missing something? I am actually trying to add the same file twice to different targets. the fact that I get an error is highly annoying as I want to place common data of an application and bootloader in a share include file, and use the same project file but with different targets.

Parents Reply Children
  • In fact, I'm pretty sure that you cannot add a file to an individual Target:

    There is only one list of files (and groups?) that applies to the whole project - ie, all Targets.

    If a file is not applicable in a particular Target, you can't remove it from the Target - you can only mark it as 'Do Not Build' for that Target.

    IMO, the whole uVision "Project Management" scheme is pretty weak...

    :-(

  • There is only one list of files (and groups?) that applies to the whole project - ie, all Targets.

    I was afraid of this - but when I think of it, it makes sense given the behavior of the components dialog - selecting an alternative path does not change the contents of the file list!