(PROCESSOR-SDK-RTOS-AM335X 02_00_00_00)
In CCSv6.1, I imported the board project from
C:\ti\pdk_am335x_1_0_0\packages\ti\starterware\board
but when I tried to build the project:
**** Build of configuration am335x_debug for project board **** "C:\\ti\\ccsv6\\utils\\bin\\gmake" -j 8 -s -k all 'Building file: C:/ti/pdk_am335x_1_0_0/packages/ti/starterware/board/am335x/am335x_beaglebone.c' 'Building file: C:/ti/pdk_am335x_1_0_0/packages/ti/starterware/board/am335x/am335x_beaglebone_pinmux_data.c' 'Building file: C:/ti/pdk_am335x_1_0_0/packages/ti/starterware/board/am335x/am335x_beagleboneblack.c' 'Building file: C:/ti/pdk_am335x_1_0_0/packages/ti/starterware/board/am335x/am335x_beagleboneblack_pinmux_data.c' 'Building file: C:/ti/pdk_am335x_1_0_0/packages/ti/starterware/board/am335x/am335x_custom.c' 'Building file: C:/ti/pdk_am335x_1_0_0/packages/ti/starterware/board/am335x/am335x_evmsk.c' 'Building file: C:/ti/pdk_am335x_1_0_0/packages/ti/starterware/board/am335x/am335x_evmsk_pinmux_data.c' 'Building file: C:/ti/pdk_am335x_1_0_0/packages/ti/starterware/board/am335x/am335x_gpevm.c' 'Invoking: GNU Compiler' 'Invoking: GNU Compiler' 'Invoking: GNU Compiler' 'Invoking: GNU Compiler' 'Invoking: GNU Compiler' 'Invoking: GNU Compiler' 'Invoking: GNU Compiler' 'Invoking: GNU Compiler' C:/ti/pdk_am335x_1_0_0/packages/ti/starterware/board/am335x/am335x_beaglebone.c:47:19: fatal error: types.h: No such file or directory #include "types.h" ^ compilation terminated. C:/ti/pdk_am335x_1_0_0/packages/ti/starterware/board/am335x/am335x_beaglebone_pinmux_data.c:48:19: fatal error: types.h: No such file or directory #include "types.h" ^ compilation terminated. C:/ti/pdk_am335x_1_0_0/packages/ti/starterware/board/am335x/am335x_beagleboneblack.c:47:19: fatal error: types.h: No such file or directory #include "types.h" ^ compilation terminated. gmake: *** [am335x_beaglebone_pinmux_data.o] Error 1 C:/ti/pdk_am335x_1_0_0/packages/ti/starterware/board/am335x/am335x_beagleboneblack_pinmux_data.c:48:19: fatal error: types.h: No such file or directory #include "types.h" ^ compilation terminated. gmake: *** [am335x_beaglebone.o] Error 1 C:/ti/pdk_am335x_1_0_0/packages/ti/starterware/board/am335x/am335x_custom.c:47:19: fatal error: types.h: No such file or directory #include "types.h" ^ compilation terminated. 'Building file: C:/ti/pdk_am335x_1_0_0/packages/ti/starterware/board/am335x/am335x_gpevm_pinmux_data.c' gmake: *** [am335x_beagleboneblack.o] Error 1 'Building file: C:/ti/pdk_am335x_1_0_0/packages/ti/starterware/board/am335x/am335x_icev1.c' gmake: *** [am335x_beagleboneblack_pinmux_data.o] Error 1 C:/ti/pdk_am335x_1_0_0/packages/ti/starterware/board/am335x/am335x_evmsk_pinmux_data.c:48:19: fatal error: types.h: No such file or directory #include "types.h" ^ compilation terminated. 'Building file: C:/ti/pdk_am335x_1_0_0/packages/ti/starterware/board/am335x/am335x_icev1_pinmux_data.c' C:/ti/pdk_am335x_1_0_0/packages/ti/starterware/board/am335x/am335x_gpevm.c:47:19: fatal error: types.h: No such file or directory #include "types.h" ^ compilation terminated. C:/ti/pdk_am335x_1_0_0/packages/ti/starterware/board/am335x/am335x_evmsk.c:47:19: fatal error: types.h: No such file or directory #include "types.h" ^ compilation terminated. gmake: *** [am335x_custom.o] Error 1 'Building file: C:/ti/pdk_am335x_1_0_0/packages/ti/starterware/board/am335x/am335x_icev2.c' gmake: *** [am335x_evmsk.o] Error 1 'Building file: C:/ti/pdk_am335x_1_0_0/packages/ti/starterware/board/am335x/am335x_icev2_pinmux_data.c' gmake: *** [am335x_evmsk_pinmux_data.o] Error 1 'Building file: C:/ti/pdk_am335x_1_0_0/packages/ti/starterware/board/am335x/am335x_lcd4_dcard.c' gmake: *** [am335x_gpevm.o] Error 1 'Building file: C:/ti/pdk_am335x_1_0_0/packages/ti/starterware/board/board.c' 'Building file: C:/ti/pdk_am335x_1_0_0/packages/ti/starterware/board/am335x/board_am335x.c' 'Invoking: GNU Compiler' 'Invoking: GNU Compiler' 'Invoking: GNU Compiler' 'Invoking: GNU Compiler' 'Invoking: GNU Compiler' 'Invoking: GNU Compiler' 'Invoking: GNU Compiler' 'Invoking: GNU Compiler' C:/ti/pdk_am335x_1_0_0/packages/ti/starterware/board/am335x/am335x_gpevm_pinmux_data.c:48:19: fatal error: types.h: No such file or directory #include "types.h" ^ compilation terminated. C:/ti/pdk_am335x_1_0_0/packages/ti/starterware/board/am335x/am335x_icev1.c:47:19: fatal error: types.h: No such file or directory #include "types.h" ^ compilation terminated. gmake: *** [am335x_gpevm_pinmux_data.o] Error 1 C:/ti/pdk_am335x_1_0_0/packages/ti/starterware/board/am335x/am335x_icev1_pinmux_data.c:48:19: fatal error: types.h: No such file or directory #include "types.h" ^ compilation terminated. C:/ti/pdk_am335x_1_0_0/packages/ti/starterware/board/am335x/am335x_icev2.c:47:19: fatal error: types.h: No such file or directory #include "types.h" ^ compilation terminated. 'Building file: C:/ti/pdk_am335x_1_0_0/packages/ti/starterware/board/dcard.c' gmake: *** [am335x_icev1_pinmux_data.o] Error 1 C:/ti/pdk_am335x_1_0_0/packages/ti/starterware/board/am335x/am335x_icev2_pinmux_data.c:48:19: fatal error: types.h: No such file or directory #include "types.h" ^ compilation terminated. gmake: *** [am335x_icev1.o] Error 1 'Building file: C:/ti/pdk_am335x_1_0_0/packages/ti/starterware/board/am335x/dcard_am335x.c' C:/ti/pdk_am335x_1_0_0/packages/ti/starterware/board/am335x/am335x_lcd4_dcard.c:47:19: fatal error: types.h: No such file or directory #include "types.h" ^ compilation terminated. gmake: *** [am335x_icev2.o] Error 1 'Building file: C:/ti/pdk_am335x_1_0_0/packages/ti/starterware/board/pinmux.c' C:/ti/pdk_am335x_1_0_0/packages/ti/starterware/board/am335x/board_am335x.c:47:19: fatal error: types.h: No such file or directory #include "types.h" ^ compilation terminated. C:/ti/pdk_am335x_1_0_0/packages/ti/starterware/board/board.c:48:19: fatal error: types.h: No such file or directory #include "types.h" ^ compilation terminated. gmake: *** [am335x_icev2_pinmux_data.o] Error 1 gmake: *** [am335x_lcd4_dcard.o] Error 1 'Building file: C:/ti/pdk_am335x_1_0_0/packages/ti/starterware/board/platform.c' gmake: *** [board.o] Error 1 gmake: *** [board_am335x.o] Error 1 'Invoking: GNU Compiler' 'Invoking: GNU Compiler' 'Invoking: GNU Compiler' 'Invoking: GNU Compiler' C:/ti/pdk_am335x_1_0_0/packages/ti/starterware/board/dcard.c:48:19: fatal error: types.h: No such file or directory #include "types.h" ^ compilation terminated. gmake: *** [dcard.o] Error 1 C:/ti/pdk_am335x_1_0_0/packages/ti/starterware/board/am335x/dcard_am335x.c:48:19: fatal error: types.h: No such file or directory #include "types.h" ^ compilation terminated. gmake: *** [dcard_am335x.o] Error 1 C:/ti/pdk_am335x_1_0_0/packages/ti/starterware/board/pinmux.c:47:19: fatal error: types.h: No such file or directory #include "types.h" ^ compilation terminated. gmake: *** [pinmux.o] Error 1 C:/ti/pdk_am335x_1_0_0/packages/ti/starterware/board/platform.c:47:19: fatal error: types.h: No such file or directory #include <types.h> ^ compilation terminated. gmake: *** [platform.o] Error 1 gmake: Target `all' not remade because of errors. **** Build Finished ****
It seems to me that the (relative) include paths are specified incorrectly in the project files. For example, "types.h" is located in
C:\ti\pdk_am335x_1_0_0\packages\ti\starterware\include
However, the include path that should have found this include file was specified as:
"${ORIGINAL_PROJECT_ROOT}/../../../include/"
where ORIGINAL_PROJECT_ROOT = C:\ti\pdk_am335x_1_0_0\packages\ti\starterware\board\ccs. It has one too many "../"!
I seem to always have this problem with the starterware CCS projects. Am I doing something wrong? Why is it necessary to fix these paths all the time? What is the easiest way to fix them? Can TI fix the project files so that the user doesn't need to go back and fix them?