AnsweredAssumed Answered

Inconsistent include path expansion in KDS3.0

Question asked by David Pfaltzgraff on May 20, 2015
Latest reply on Jun 3, 2015 by David Pfaltzgraff

I have taken a project and modified the include paths to use the KSDK_PATH environment variable. This was done at the Project=>Properties level. When I compile, several of the files are OK, but then I get to one file where the include paths passed to the compiler are from the previous version. A portion of the console output is shown below. Note how the first file shows the paths as being expanded to "C:\Freescale\KSDK_1.2.0/..." but in the second case the paths are expanded to "../../.." I have eliminated some of the output for brevity.

 

I have tried a clean and a refresh before recompiling. This has not fixed the problem. I'm open to suggestions.

 

Thanks

 

======

'Building file: C:/Freescale/KSDK_1.2.0/examples/frdmk22f/pin_mux.c'

'Invoking: Cross ARM C Compiler'

arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -Os -fmessage-length=0 -fsigned-char

-ffunction-sections -fdata-sections -Wall  -g -D_DEBUG=1 -D_AEABI_LC_CTYPE=C -D__STRICT_ANSI__=1 -DCPU_MK22FN512VLH12

-DFRDM_K22F -DFREEDOM -DFSL_RTOS_MQX -DUSB_DISK_ENABLE=1

-I"C:\Freescale\KSDK_1.2.0/examples/frdmk22f"

-I"C:\Freescale\KSDK_1.2.0/platform/CMSIS/Include"

-I"C:\Freescale\KSDK_1.2.0/platform/devices"

...(SNIP)

-I"C:\Freescale\KSDK_1.2.0/middleware/filesystem/fatfs"

-I"C:\Freescale\KSDK_1.2.0/middleware/filesystem/fatfs/fsl_usb_disk" -

std=gnu99 -fno-strict-aliasing -Wno-format  -fno-common  -ffreestanding  -fno-builtin  -mapcs

-MMD -MP -MF"board/pin_mux.d" -MT"board/pin_mux.o" -c

-o "board/pin_mux.o" "C:/Freescale/KSDK_1.2.0/examples/frdmk22f/pin_mux.c"

'Finished building: C:/Freescale/KSDK_1.2.0/examples/frdmk22f/pin_mux.c'

 

 

'Building file: C:/Freescale/KSDK_1.2.0/platform/utilities/src/fsl_debug_console.c'

'Invoking: Cross ARM C Compiler'

arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -Os -fmessage-length=0 -fsigned-char

-ffunction-sections -fdata-sections -Wall  -g -D_DEBUG=1 -D_AEABI_LC_CTYPE=C -D__STRICT_ANSI__=1 -DCPU_MK22FN512VLH12

-DFRDM_K22F -DFREEDOM -DFSL_RTOS_MQX -DUSB_DISK_ENABLE=1

-I../../../../../../../../../../rtos/mqx/lib/frdmk22f.kds/debug

-I../../../../../../../../../../rtos/mqx/lib/frdmk22f.kds/debug/config

-I../../../../../../../../../../rtos/mqx/lib/frdmk22f.kds/debug/mqx

-I../../../../../../../../../../rtos/mqx/lib/frdmk22f.kds/debug/mqx_stdlib

...(SNIP)

-I../../../../../../../../../../platform/hal

-I../../../../../../../../../../platform/drivers/src/i2c

-I../../../../../../../../../../middleware/filesystem/fatfs

-I../../../../../../../../../../middleware/filesystem/fatfs/fsl_usb_disk

-I"C:\Freescale\KSDK_1.2.0/rtos/mqx/mqx/source/bsp"

-I"C:\Freescale\KSDK_1.2.0/rtos/mqx/mqx/source/psp"

-I"C:\Freescale\KSDK_1.2.0/rtos/mqx/mqx/source/psp/cortex_m"

-I"C:\Freescale\KSDK_1.2.0/rtos/mqx/mqx/source/psp/cortex_m/compiler/gcc_arm"

-I"C:\Freescale\KSDK_1.2.0/rtos/mqx/mqx/source/nio"

-I"C:\Freescale\KSDK_1.2.0/rtos/mqx/mqx/source/nio/drivers/nio_serial"

-I"C:\Freescale\KSDK_1.2.0/rtos/mqx/mqx/source/nio/drivers/nio_tty"

-I"C:\Freescale\KSDK_1.2.0/rtos/mqx/mqx/source/nio/drivers/nio_dummy"

-std=gnu99 -fno-strict-aliasing -Wno-format  -fno-common  -ffreestanding  -fno-builtin  -mapcs

-MMD -MP -MF"utilities/fsl_debug_console.d" -MT"utilities/fsl_debug_console.o" -c

-o "utilities/fsl_debug_console.o" "C:/Freescale/KSDK_1.2.0/platform/utilities/src/fsl_debug_console.c"

Outcomes