Altera_Forum
Honored Contributor
12 years agoHow to create 2nd project referencing same BSP and source files?
I've created my main application and BSP using the "New Nios II Application and BSP from Template" wizard. I used the "Hello MicroC/OS-II" template because my application uses the RTOS. I've added multiple source files to my project. All of this is setup and working fine.
Now I want to create a second project for a boot program in the same workspace. The boot program will be a stripped down version of my main application. The boot program should use the same BSP and a subset of the same source files used by the main application. What is the best way to create this new project in the Nios II EDS? If I use the "New Nios II Application" wizard I can specify the existing BSP, but there is no option for a MicroC/OS-II template. How do I configure the new project for MicroC/OS-II? Is there an easy way to copy the settings from my main application project? How should I add the existing source files to the new project so that I don't create a new copy of the source files. I want the same source files to be referenced by the both projects so that I don't need to change the source code in two places. Is the "Link to file in the file system" Advanced option what I want to use for this? When I try this option, the New file wizard displays a warning, "file may overlap another resource. This can cause unexpected side-effects." Is this a real concern or are the "unexpected side-effects" referring to the effect that I'm going for? Thanks for any advice.