Hi
Thought I'd contribute back to the forum for all the help you guys have given me. Here are the steps for importing the C6474 DIO library:
Some of the steps may not be necessary, but I don't have time to figure out if they weren't. I also apologize if I missed a step. If there is a problem, reply and that may jog my memory into thinking what I missed.
1) Get a clean DIO library image (download it from https://gforge.ti.com/gf/project/sriodirectiolib/)
2) Open the pjt file with CCSv3.3 and then save it.
3) In ccsv4, import the DirectIO_lib.pjt. Use the auto detect for BIOS setting.
4) In CCSV4 delete all the .c files, and then copy the "source" (C:\CCStudio_v3.3\DIOLib_1_0_0\source) file over to the CCSv4 workspace directory created when CCSV4 imported the .pjt.
5) In CCSv4, go to build properties -> macros tab -> project tab and add definitions for these macros: CslDir6474 = C:/CCStudio_v3.3/C6000/csl_c6474 and CslIntDir=C:/CCStudio_v3.3/C6000/csl_c64xplus_intc
6) In the Tool Settings, move the above two macros ahead of C6000_CSL_CG_ROOT (if you don't do this, you may get the error ""c:/CCSTUD~1.3/C6000/csl/include/csl_chiphal.h", line 267: fatal error: #error NO CHIP DEFINED (use -dCHIP_XXXX where XXXX is chip number, i.e. 6201)
1 fatal error detected in the compilation of "../main.c".")
7) Because the pjt was imported without BIOS, you have to comment out the following from BRU_systemEnumerators.c and add #undef TRACE_LOG
#iinclude <std.h> and the others log.h, sem.h, c64.h, tsk.h, sys.h and gbl.h
8) Change #include "${DirectIODir}/source to "../source) to pickup files in the local lib directory.
9) Remove ${EXT_ROOT_DirectIO_lib/lib/DirectIO_Debug_C6474 from Build Properties _> BuildSettings and replace it with ../lib/DirectIO_Debug_C6474
10) Change folder where the lib and obj files are output to.
Now if you want to import say testDIO_dbell_master, thats easy! After you import, you just have to do step 6 only! Yeah! But don't forget that its still trying to link to the old library files. I was able to run the dbell test examples without linking to my new DIO library. To change it, just delete is in Eclipse and then re-link it to your new library.
Cheers