Question :
How to include particular driver source files in the project to reflect the project settings instead of using Add-ins through system.svc?
Answer:
When adding Add-in via system.svc, it will incorporate driver sources into the project. This ensures that the project setting defined in the project is reflected during project debugging.
However, when using the driver through #include, some of the source codes are not directly integrated into the project but are sourced from the CCES installation directory during project debugging.
To align the project settings with the source codes, it is advisable to have the driver add-in installed for the project.
If we choose not to install the add-in, we can manually link only the source file to the project by following these steps:
1. Right-click on the folder within the project where you want to place the source files, for example, the "src" folder.
2. Select New > File from Template.
The New File wizard appears.
3. Click on Advanced.
4. Enable "Link to file in the file system."
5. Click Browse and choose the file to link from the location:
Ex. - <CCES path>\Analog Devices\CrossCore Embedded Studio x.x.x\SHARC\lib\src\drivers\Source\
6. Click Finish.
Now the linked resource will promptly appear in the navigation view.