Part Number: CC2640R2F
Tool/software: Code Composer Studio
Hi,
The goal of my project is to be able to run two significantly different functionalities on the same chip, configurable via an attribute (and then with a power-reset). I currently have made 2 Sensor Controller projects, and so now I want to integrate in a way with CCS so that the source code for both is included, and depending on which project number is specified in non-volatile memory (modifiable via bluetooth), it includes the relevant SCIF files.
My first attempt at this was to create separate directories for each within my project and then include that certain directory based on an if statement that checks memory, but this actually did not work because whenever I would try to build it, it would give me errors of "__ has already been defined" for all the sensor controller functions (maybe by building it gets rid of my custom directories that separate the two project files?). I'm not too familiar with the build settings, but is there a way to build both in a way that still compiles and can include files in one directory or another?
It's also worthy to note that I don't need to switch projects while chip is on, I can certainly do a power reset after changing which project to use so that the right files are included.
P.S. I've noticed that there's actually only 3 files in the Sensor Controller outputted files that actually are different from each other for the two projects: scif.h, scif.c, and sce.lst. The rest are identical and I can keep one of their copies, but these three files are different between the projects so they're the ones I need to include based on which project is specified.
Thanks!
Ali

