This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Unable to get examples to build in StarterWare

Hello, 

I have been trying for several days off and on to get some example code off of the Starterware to build.  We are engaged in a bare metal OS project that will require full functionality of the development board.  So far we have been entirely unsuccessful in getting anywhere with Starterware code.  It is a shame, as it is exactly what we need for our development purposes, to give us some boost on driver programming.  Surely there is some way to get this code to at least compile without the rash of errors that I am constantly getting while trying to build.  Here is our current environment.

Target:  Beaglebone Black 

Code Composer Studio v. 5.5.0.00077
Standard install, in the default directory, default options

Steps I have taken:
Create new WorkSpace.  
File>Import>Code Composer Studio>Existing CCS Eclipse Projects.
Browse>AM335X_StarterWare_02_00_01_01>build>armv7a>cgt_ccs>am335x>beaglebone>demo
Left "Copy projects into workspace" Unchecked.
Left "Automatically import referenced projects" Unchecked.

Then I build the project and I get this:


**** Clean-only build of configuration Debug for project demo ****

"C:\\ti\\ccsv5\\utils\\bin\\gmake" -k -j 8 -s clean
Could Not Find C:\ti\AM335X_StarterWare_02_00_01_01\binary\armv7a\cgt_ccs\am335x\beaglebone\demo\Debug\demo.out
Could Not Find C:\ti\AM335X_StarterWare_02_00_01_01\build\armv7a\cgt_ccs\am335x\beaglebone\demo\Debug\slpWkup_cgttms470.pp
'Finished clean'
' '

**** Build Finished ****

**** Build of configuration Debug for project demo ****

"C:\\ti\\ccsv5\\utils\\bin\\gmake" -k -j 8 -s all
'Building file: C:/ti/AM335X_StarterWare_02_00_01_01/examples/beaglebone/demo/am335x_clock_data.c'
'Building file: C:/ti/AM335X_StarterWare_02_00_01_01/examples/beaglebone/demo/cm3wkup_proxy.c'
'Building file: C:/ti/AM335X_StarterWare_02_00_01_01/examples/beaglebone/demo/demoDvfs.c'
'Building file: C:/ti/AM335X_StarterWare_02_00_01_01/examples/beaglebone/demo/demoEnet.c'
'Building file: C:/ti/AM335X_StarterWare_02_00_01_01/examples/beaglebone/demo/demoGpio.c'
'Building file: C:/ti/AM335X_StarterWare_02_00_01_01/examples/beaglebone/demo/demoI2c.c'
'Building file: C:/ti/AM335X_StarterWare_02_00_01_01/examples/beaglebone/demo/demoLedIf.c'
'Building file: C:/ti/AM335X_StarterWare_02_00_01_01/examples/beaglebone/demo/demoMain.c'
'Invoking: ARM Compiler'
'Invoking: ARM Compiler'
'Invoking: ARM Compiler'
'Invoking: ARM Compiler'
'Invoking: ARM Compiler'
'Invoking: ARM Compiler'
'Invoking: ARM Compiler'
'Invoking: ARM Compiler'
"../../../../../../../include/hw/hw_control_AM335x.h", line 335: warning #1557-D: white space between backslash and newline in line splice ignored
"../../../../../../../include/hw/hw_cm_per.h", line 139: warning #1557-D: white space between backslash and newline in line splice ignored
"../../../../../../../include/hw/hw_cm_wkup.h", line 125: warning #1557-D: white space between backslash and newline in line splice ignored
"../../../../../../../include/hw/hw_cm_rtc.h", line 72: warning #1557-D: white space between backslash and newline in line splice ignored

".... more of the same....."

1.4.0/ports/cpsw/lwiplib.c".

' '

>> Compilation failure
gmake: *** [lwiplib.obj] Error 1
'Finished building: C:/ti/AM335X_StarterWare_02_00_01_01/examples/beaglebone/demo/pmic.c'
' '
'Finished building: C:/ti/AM335X_StarterWare_02_00_01_01/third_party/fatfs/src/ff.c'
' '
'Finished building: C:/ti/AM335X_StarterWare_02_00_01_01/third_party/lwip-1.4.0/apps/httpserver_raw_io/httpd_io.c'
' '
gmake: Target `all' not remade because of errors.

**** Build Finished ****

What all steps do I need to take in order to see this compile?  

 

  • Hello

    I don't know exactly what your problem is, I have used the example on

    http://rabidelephant.com/blog/2013/09/24/beaglebone-starterware-importdebug-project-setup-in-ccs/

    to get my environment running.

    Tobias

  • You can't just start with the application, you have to compile some libraries before. Please check the Makefile of your application, there you can find which projects to compile (I'd guess you need at least platform, usblib, devices).

    When you're using CCS5 with Linux some more steps are necessary: make the installation directory of CCS read/writable for your current user since a library is auto-built into this path (which is impossible with original access privileges). And you have to edit the Makefile manually since several TI-tools (like tiimage) is mentioned as .EXE there while there is no such extension used under Linux.

  • looks like you are missing some header file- hw_types.h, where TRUE/FALSE is defined.

    Please check if this file is getting included in your compilation.

    Regards

    baskaran

  • Sorry I didnt' make it clear.  I am using CCS in Windows 7 64, so the exe's are not the problem here.  

    I have tried many times to import all the dependencies such asa drivers, platform, system, and utils.  The problem is that they always have undefined variables or some errors.  I have only found one or so that actually built without errors.  

    However, I was able to get those libraries to build by going in and defining some the missing items myself in the .h files.  That took care of most of it, although I don't understand why that would be required.  

    Another thing to note is that I am not using JTAG, only copying the file out to the microSD card and booting off of that. The next problem is to get the post-build command syntax correct for outputting a .bin file after compilation. 

    Still stuck on that. 

  • Hello

    I'm also using win7 64bit, so it shut be possible to get the thing run :-)

    I have changed the used compiler version at the CCS General settings to TI v5.1.1 at start up it is set to TI v5.0.?

     And then build all the libraries with this settings.

     

    For CCS Build -> Steps -> Post-build steps  I have add

    "${CCS_INSTALL_ROOT}/utils/tiobj2bin/tiobj2bin.bat" "${PROJECT_ROOT}/${ConfigName}/${ProjName}.out" "${PROJECT_ROOT}/${ConfigName}/${ProjName}.bin" "${CG_TOOL_ROOT}/bin/armofd.exe" "${CG_TOOL_ROOT}/bin/armhex.exe" "${CCS_INSTALL_ROOT}/utils/tiobj2bin/mkhex4bin.exe" & "C:/ti/AM335X_StarterWare_02_00_01_01/tools/ti_image/tiimage.exe" "0x80000000" "NONE" "${PROJECT_ROOT}/${ConfigName}/${ProjName}.bin" "${PROJECT_ROOT}/${ConfigName}/app"

    For me a simple LED blink and console output work with this settings. But I stuck at the moment at the settings off timer1

    regards Tobias

  • Okay Tobias, I am more or less where you are now.  

    This is the compiler version I am using under CCS General.

    Is 0x80000000 the correct starting address? 

  • Also, do you have any idea what this warning is about?

    warning: sh_link not set for section '.ARM.exidx'

  • Okay, I answered both of those questions.  Ram starting address is 0x80000000.  And the other error is probably nothing that will affect my build.  

  • Hello

    witch Linker command file XXXX.cmd do you use?

    Every Starterware project has it own .cmd file for example gpioLEDBlink.cmd

    Tobias

  • Tobias, I think my main problem before was that I was not importing all the needed libraries.  In my defense, I had tried that as well, with some other projects such as DMTimer etc, but I could never get all of the libraries to build, without error-ing out.  So that is when I posted my problem, building the demo app.  I still don't know why the libraries would not build.  

    I finally loaded the latest Starterware patch, and then I had much better results.  I was able to get the libraries to build, and even built the demo app.  I have never been able to run it though, because of my problem outlined in another support thread named Hangs when Jumping to StarterWare Application.