So, after going down a hopeless path of trying to start with a clean 1.3 project, adding the demo files to it and then trying to manually include the SDK 1.3, I ran into so many USB problems basically unresolved include references no matter whether I had the right include paths or not.
So, I decided to take the approach of dropping your demo files right into the SDK 1.3 examples under the frdm_k22f directory. That seems like a better approach because I CAN get, for example, the bubble level demo to run correctly. I suppose now that this is what I was supposed to do.
But the .wsd file is not correct for the platform path names and I'm still fighting it... I did a little renaming of references in the .wsd file as follows:
(mainly to get the platform on the right name convention.... ksdk_platform_lib_K22F51212)
-----------------------------------------------------------------------
<?xml version="1.0"?>
<workspace xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="workingsets.xsd">
<projects>
<project><name>ksdk_platform_lib_K22F51212</name><path>../../../../../lib/ksdk_platform_lib/kds/K22F51212</path><open>true</open><activeconfig>debug</activeconfig><buildreferences config="debug">false</buildreferences><activeconfig>release</activeconfig><buildreferences config="release">false</buildreferences></project><project><name>sai_demo_frdm_k22f</name><path>.</path><open>true</open><activeconfig>debug</activeconfig><buildreferences config="debug">false</buildreferences><activeconfig>release</activeconfig><buildreferences config="release">false</buildreferences></project></projects>
<workingsets>
<workingSet editPageId="org.eclipse.cdt.ui.CElementWorkingSetPage" id="1323268527287_1" label="sai_demo" name="sai_demo"><item factoryID="org.eclipse.cdt.ui.PersistableCElementFactory" path="/ksdk_platform_lib_K22F51212" type="4"/><item factoryID="org.eclipse.cdt.ui.PersistableCElementFactory" path="/sai_demo_frdm_k22f" type="4"/></workingSet></workingsets>
<cdtconfigurations>
<workingSet name="sai_demo"><config name="debug"><project config="com.freescale.arm.cdt.toolchain.config.arm.release.695495605" name="ksdk_platform_lib_K22F51212" configName="debug"/><project config="com.freescale.arm.cdt.toolchain.config.arm.release.695495605" name="sai_demo_frdm_k22f" configName="debug"/></config><config name="release"><project config="com.freescale.arm.cdt.toolchain.config.arm.release.695495605" name="ksdk_platform_lib_K22F51212" configName="release"/><project config="com.freescale.arm.cdt.toolchain.config.arm.release.695495605" name="sai_demo_frdm_k22f" configName="release"/></config></workingSet></cdtconfigurations>
</workspace>
---------------------
Here's the output from an attempted build...
make -k all
make: *** No rule to make target `/Applications/KDS_v3.app/KSDK_1.3.0/platform/utilities/src/fsl_debug_console.c', needed by `utilities/fsl_debug_console.o'.
Building file: /Users/pw315c/GIT_REPO/KDS_Mac_Working/SDK_1.3_FRDM-K22F/platform/devices/startup.c
make: *** No rule to make target `/Applications/KDS_v3.app/KSDK_1.3.0/platform/utilities/src/fsl_misc_utilities.c', needed by `utilities/fsl_misc_utilities.o'.
make: *** No rule to make target `/Applications/KDS_v3.app/KSDK_1.3.0/platform/utilities/src/print_scan.c', needed by `utilities/print_scan.o'.
Invoking: Cross ARM C Compiler
arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -O0 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -Wall -g -DDEBUG -DARM_MATH_CM4 -DCPU_MK22FN512VLH12 -DFRDM_K22F -DFREEDOM -I../../../../../../platform/osa/inc -I../../../../../../platform/utilities/inc -I../../../../../../platform/CMSIS/Include -I../../../../../../platform/devices -I../../../../../../platform/devices/MK22F51212/include -I../../../../../../platform/devices/MK22F51212/startup -I../../../../../../platform/hal/inc -I../../../../../../platform/drivers/inc -I../../../../../../platform/system/inc -I../.. -I../.. -I../../../../../../platform/composite/inc -I../../../../../../platform/drivers/src/edma -I../../../../../../platform/drivers/src/sai -I../../../../../../platform/drivers/src/i2c -I../../../.. -std=gnu99 -fno-common -ffreestanding -fno-builtin -mapcs -MMD -MP -MF"startup/startup.d" -MT"startup/startup.o" -c -o "startup/startup.o" "/Users/pw315c/GIT_REPO/KDS_Mac_Working/SDK_1.3_FRDM-K22F/platform/devices/startup.c"
Finished building: /Users/pw315c/GIT_REPO/KDS_Mac_Working/SDK_1.3_FRDM-K22F/platform/devices/startup.c
Building file: /Users/pw315c/GIT_REPO/KDS_Mac_Working/SDK_1.3_FRDM-K22F/platform/devices/MK22F51212/startup/gcc/startup_MK22F51212.S
Invoking: Cross ARM GNU Assembler
arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -O0 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -Wall -g -x assembler-with-cpp -DDEBUG -fno-common -ffunction-sections -fdata-sections -ffreestanding -fno-builtin -mapcs -std=gnu99 -MMD -MP -MF"startup/startup_MK22F51212.d" -MT"startup/startup_MK22F51212.o" -c -o "startup/startup_MK22F51212.o" "/Users/pw315c/GIT_REPO/KDS_Mac_Working/SDK_1.3_FRDM-K22F/platform/devices/MK22F51212/startup/gcc/startup_MK22F51212.S"
Finished building: /Users/pw315c/GIT_REPO/KDS_Mac_Working/SDK_1.3_FRDM-K22F/platform/devices/MK22F51212/startup/gcc/startup_MK22F51212.S
Building file: /Users/pw315c/GIT_REPO/KDS_Mac_Working/SDK_1.3_FRDM-K22F/platform/devices/MK22F51212/startup/system_MK22F51212.c
Invoking: Cross ARM C Compiler
arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -O0 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -Wall -g -DDEBUG -DARM_MATH_CM4 -DCPU_MK22FN512VLH12 -DFRDM_K22F -DFREEDOM -I../../../../../../platform/osa/inc -I../../../../../../platform/utilities/inc -I../../../../../../platform/CMSIS/Include -I../../../../../../platform/devices -I../../../../../../platform/devices/MK22F51212/include -I../../../../../../platform/devices/MK22F51212/startup -I../../../../../../platform/hal/inc -I../../../../../../platform/drivers/inc -I../../../../../../platform/system/inc -I../.. -I../.. -I../../../../../../platform/composite/inc -I../../../../../../platform/drivers/src/edma -I../../../../../../platform/drivers/src/sai -I../../../../../../platform/drivers/src/i2c -I../../../.. -std=gnu99 -fno-common -ffreestanding -fno-builtin -mapcs -MMD -MP -MF"startup/system_MK22F51212.d" -MT"startup/system_MK22F51212.o" -c -o "startup/system_MK22F51212.o" "/Users/pw315c/GIT_REPO/KDS_Mac_Working/SDK_1.3_FRDM-K22F/platform/devices/MK22F51212/startup/system_MK22F51212.c"
Finished building: /Users/pw315c/GIT_REPO/KDS_Mac_Working/SDK_1.3_FRDM-K22F/platform/devices/MK22F51212/startup/system_MK22F51212.c
make: *** No rule to make target `/Applications/KDS_v3.app/KSDK_1.3.0/examples/frdmk22f/demo_apps/sai_demo/audio.c', needed by `source/audio.o'.
make: *** No rule to make target `/Applications/KDS_v3.app/KSDK_1.3.0/examples/frdmk22f/demo_apps/sai_demo/equalizer.c', needed by `source/equalizer.o'.
make: *** No rule to make target `/Applications/KDS_v3.app/KSDK_1.3.0/examples/frdmk22f/demo_apps/sai_demo/main.c', needed by `source/main.o'.
make: *** No rule to make target `/Applications/KDS_v3.app/KSDK_1.3.0/examples/frdmk22f/demo_apps/sai_demo/terminal_menu.c', needed by `source/terminal_menu.o'.
make: *** No rule to make target `/Applications/KDS_v3.app/KSDK_1.3.0/platform/composite/src/soundcard/fsl_soundcard.c', needed by `soundcard/fsl_soundcard.o'.
make: *** No rule to make target `/Applications/KDS_v3.app/KSDK_1.3.0/examples/frdmk22f/demo_apps/sai_demo/fsl_edma_irq.c', needed by `interrupt_handlers/fsl_edma_irq.o'.
make: *** No rule to make target `/Applications/KDS_v3.app/KSDK_1.3.0/examples/frdmk22f/demo_apps/sai_demo/fsl_i2c_irq.c', needed by `interrupt_handlers/fsl_i2c_irq.o'.
make: *** No rule to make target `/Applications/KDS_v3.app/KSDK_1.3.0/examples/frdmk22f/demo_apps/sai_demo/fsl_sai_irq.c', needed by `interrupt_handlers/fsl_sai_irq.o'.
make: *** No rule to make target `/Applications/KDS_v3.app/KSDK_1.3.0/examples/frdmk22f/demo_apps/sai_demo/fsl_sgtl5000_driver.c', needed by `codec/fsl_sgtl5000_driver.o'.
make: *** No rule to make target `/Applications/KDS_v3.app/KSDK_1.3.0/examples/frdmk22f/board.c', needed by `board/board.o'.
make: *** No rule to make target `/Applications/KDS_v3.app/KSDK_1.3.0/examples/frdmk22f/gpio_pins.c', needed by `board/gpio_pins.o'.
make: *** No rule to make target `/Applications/KDS_v3.app/KSDK_1.3.0/examples/frdmk22f/demo_apps/sai_demo/hardware_init.c', needed by `board/hardware_init.o'.
make: *** No rule to make target `/Applications/KDS_v3.app/KSDK_1.3.0/examples/frdmk22f/pin_mux.c', needed by `board/pin_mux.o'.
make: Target `all' not remade because of errors.
So, basically no joy yet. ANy idea how I can get the IDE to reindex so that the source code files sitting there will build?