Hello!
I have the TI AM3358 Starter Kit, and installed AM335x StarterWare using
AM335X_StarterWare_02_00_01_01_Setup.exe
and left the installation root as the default: C:\ti\AM335X_StarterWare_02_00_01_01
In CCS v6.1.2.00015 I set my workspace to E:\Dev\Clients\xxxx\project_name\fw\
Then I imported the examples I wanted to try, and the DRIVERS, SYSTEM and PLATFORM library projects, and left the configuration as "DEBUG". I selected both checkboxes at the bottom when importing: A) Automatically import referenced projects found in same search-directory, and B) Copy projects into workspace.
First, knowing that I need the DEBUG versions of the DRIVERS, PLATFORM, etc. libraries, I started with DRIVERS. Let's take that as an example.
In the DRIVERS library project, the device is set to "Generic CortexA8 Device" and the compiler i is set to TI v5.0.4 [ TI v5.2.6] (I didn't change these and assume this means that compiler TI v5.2.6 is being substituted). When I attempt to build the DRIVERS library project from my imported project, I get errors like this:
**** Build of configuration Debug for project drivers ****
"C:\\ti\\ccsv6\\utils\\bin\\gmake" -k -j 4 -s cppi41dma.obj
'Building file: C:/ti/AM335X_StarterWare_02_00_01_01/drivers/cppi41dma.c'
'Invoking: ARM Compiler'
"C:/ti/AM335X_StarterWare_02_00_01_01/drivers/cppi41dma.c", line 43: fatal error: cannot open source file "hw_types.h"
1 catastrophic error detected in the compilation of "C:/ti/AM335X_StarterWare_02_00_01_01/drivers/cppi41dma.c".
Compilation terminated.
Obviously, the INCLUDE paths should include this, since the hw_types.h file is -- in fact -- in the
C:\ti\AM335X_StarterWare_02_00_01_01\include\hw\
directory.
On close examination, the project already contains a set of INCLUDE directories that appear to be COMPLETE except for the pathing: specifically, "drivers" Project > Properties > Include Options lists the following include directory (as well as 5 others):
"${ORIGINAL_PROJECT_ROOT}/../../../../../../include/hw"
and the ORIGINAL_PROJECT_ROOT variable is listed in "drivers" Project > Resources > Linked Resources as having this value:
C:\ti\AM335X_StarterWare_02_00_01_01\build\armv7a\cgt_ccs\am335x\drivers
which is correct (it is a valid path and has the project files in it). If you look carefully, the "${ORIGINAL_PROJECT_ROOT}/../../../../../../include/hw" path uses the ".." relative path 6 times, but if you count the directories up from the ...\am335x\drivers\ directory, climbing to the parent directory 6 times winds up at
C:\ti\
but there is no
C:\ti\include\
directory! The correct include directory (containing the needed files is here):
C:\ti\AM335X_StarterWare_02_00_01_01\include\
While this is quite simple (".." should be changed from 6 times in a row to only 5 times in a row), I do not think that manually editing all the INCLUDE directories in 15 or so projects is the correct answer. Is this a bug in the AM335x StarterWare project include paths? Or should I have installed it in a different way? Or imported the projects in a different way?
Help! :-)
Kind regards,
Vic