All projects start their life as a .projectspec file.
They exist in
C:\ti\c2000\C2000Ware_3_04_00_00\driverlib\f2838x\examples\c28x\mcan
directory. Note that the exact path would depend on the version of C2000ware
installed in your computer.
Make a copy of an existing .projectspec file. For
example, suppose you want to create a new project called
mcan_ex6_transmit_timestamp. Start by making a copy of
mcan_ex1_loopback.projectspec and rename it as
mcan_ex6_transmit_timestamp.projectspec.
Open mcan_ex6_transmit_timestamp and replace the two
instances of mcan_ex1_loopback with mcan_ex6_transmit_timestamp,
the name of the new testcase.
In the
C:\ti\c2000\C2000Ware_3_04_00_00\driverlib\f2838x\examples\c28x\mcandirectory,
make a copy of the mcan_ex1_loopback.c file and rename it as
mcan_ex6_transmit_timestamp.c. This is very important
because when the .projectspec file is imported into Code Composer
Studio™, it copies the new file into the target directory when it
executes the following statement: <file action="copy"
path="../mcan_ex6_transmit_timestamp.c" targetDirectory=""
/>.
Import the
mcan_ex6_transmit_timestamp.projectspec file into CCS. Note
that the project directories are created under
C:\Users\Your_name\your_workspace, not in:
C:\ti\c2000\C2000Ware_3_04_00_00\driverlib\f2838x\examples\c28x\mcan.