Thank you, Alice,
I tried to add and remove projects in the manner you
describe:
- I imported from directory:
• C:\Freescale\KSDK_1.3.0\examples\twrk60d100m\driver_examples\i2c\i2c_callback\master\kds
with "Copy projects into workspace" unchecked, and
• C:\Freescale\KSDK_1.3.0\examples\twrk60d100m\driver_examples\i2c\i2c_callback\slave\kds
with the same box checked.
- In my "Project Explorer" pane of KDS I see both projects:
• i2c_callback_master_example_twrk60d100m
• i2c_callback_slave_example_twrk60d100m
- Using Windows Explorer in my
• C:\Users\gary.lynch\workspace.kds
folder I can see the folder
i2c_callback_slave_example_twrk60d100m, but under it I see
only a .settings folder: no source or Includes folders, no
source files, and no header files, although they all
appear in my "Project Explorer " window.
- Next I returned to:
• C:\Freescale\KSDK_1.3.0\examples\twrk60d100m\driver_examples\i2c\i2c_callback
checking \master\kds & \slave\kds to learn that they, too,
contained no source nor header files. However their parent
folders (\master & \slave) DO contain source files.
- Then I built the master project using the hammer button.
This created a folder structure under the
C:\Freescale\KSDK_1.3.0\examples\twrk60d100m\driver_examples\i2c\i2c_callback\master\kds
folder:
\kds
+--debug
+--board
+--source
+--startup
+--utilities
whose members contain only build artifacts (*.d, *.o).
- Then I built the slave project as before. This build
failed however, in a slew of error messages:
>
> 10:08:00 **** Build of configuration debug for project i2c_callback_slave_example_twrk60d100m ****
> make -k all
> make: *** No rule to make target `C:/platform/utilities/src/fsl_debug_console.c', needed by `utilities/fsl_debug_console.o'.
> make: *** No rule to make target `C:/platform/utilities/src/fsl_misc_utilities.c', needed by `utilities/fsl_misc_utilities.o'.
> make: *** No rule to make target `C:/platform/utilities/src/print_scan.c', needed by `utilities/print_scan.o'.
> make: *** No rule to make target `C:/platform/devices/startup.c', needed by `startup/startup.o'.
> make: *** No rule to make target `C:/platform/devices/MK60D10/startup/gcc/startup_MK60D10.S', needed by `startup/startup_MK60D10.o'.
> make: *** No rule to make target `C:/platform/devices/MK60D10/startup/system_MK60D10.c', needed by `startup/system_MK60D10.o'.
> make: *** No rule to make target `C:/Users/gary.lynch/workspace.kds/fsl_i2c_irq.c', needed by `source/fsl_i2c_irq.o'.
> make: *** No rule to make target `C:/Users/gary.lynch/workspace.kds/main.c', needed by `source/main.o'.
> make: *** No rule to make target `C:/board.c', needed by `board/board.o'.
> make: *** No rule to make target `C:/gpio_pins.c', needed by `board/gpio_pins.o'.
> make: *** No rule to make target `C:/Users/gary.lynch/workspace.kds/hardware_init.c', needed by `board/hardware_init.o'.
> make: *** No rule to make target `C:/pin_mux.c', needed by `board/pin_mux.o'.
> make: *** No rule to make target `C:/Users/gary.lynch/workspace.kds/i2c_callback_slave_example_twrk60d100m/../../../../../../../lib/ksdk_platform_lib/kds/K60D10/debug/libksdk_platform.a', needed by `i2c_callback_slave_example_twrk60d100m.elf'.
> make: Target `all' not remade because of errors.
>
> 10:08:01 Build Finished (took 296ms)
>
A quick check with Google indicates that make generates
such messages when it can't find the source file cited
therein. Most alarming are the paths:
• C:/platform
• C:/board.c
which point to non-existent folders. I may be missing an
environment variable somewhere.
This time the
• C:\Users\gary.lynch\workspace.kds\
folder received the
debug
+--board
+--source
+--startup
+--utilities
structure, and the folders contain only *.mk files.
- Then I tried to delete both projects from KDS, using
<RgtClk> Delete, and checked the box:
"Delete project contents on disk (cannot be undone)"
for both projects. Each time the project disappeared from
the "Project Explorer" pane and the \slave folder vanished
from my workspace.kds folder.
- Last (but not least) I tried to re-import the \slave
project, copying files to the workspace and it appears to
have restored it original state. (The build still fails.)
So my original question remains: when I import a project
with the "Copy files" option, where are the files supposed
to go?
In addition it would be nice to know why the build described
above fails.
Thanks again.