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.

CODECOMPOSER: TI-RTOS for Beaglebone Black

Part Number: CODECOMPOSER

I installed processor sdk rtos and ccs under the same directory. I extracted the example projects using the batch file under the pdk folder. But I get the  "recipe to build failed" for many projects and I have attached one:


**** Build of configuration Debug for project NIMU_BasicExample_bbbAM335x_armExampleproject ****

"C:\\ti\\ccs930\\ccs\\utils\\bin\\gmake" -k -j 4 all -O

Building file: "C:/ti/pdk_am335x_1_0_17/packages/ti/transport/ndk/nimu/example/am335x/armv7/bios/nimu_bbbam335x.cfg"
Invoking: XDCtools
"C:/ti/xdctools_3_55_02_22_core/xs" --xdcpath="C:/ti/bios_6_76_03_01/packages;C:/ti/pdk_am335x_1_0_17/packages;" xdc.tools.configuro -o configPkg -t gnu.targets.arm.A8F -p ti.platforms.evmAM3359 -r debug -c "C:/ti/ccs930/ccs/tools/compiler/gcc-arm-none-eabi-7-2017-q4-major-win32" "C:/ti/pdk_am335x_1_0_17/packages/ti/transport/ndk/nimu/example/am335x/armv7/bios/nimu_bbbam335x.cfg"
making package.mak (because of package.bld) ...
generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
configuring nimu_bbbam335x.xa8fg from package/cfg/nimu_bbbam335x_pa8fg.cfg ...
subdir_rules.mk:40: recipe for target 'build-1386366943-inproc' failed
js: "C:/ti/pdk_am335x_1_0_17/packages/ti/transport/ndk/nimu/example/am335x/armv7/bios/nimu_bbbam335x.cfg", line 100: xdc.services.global.XDCException: xdc.PACKAGE_NOT_FOUND: can't locate the package 'ti.ndk.config' along the path: 'C:/ti/bios_6_76_03_01/packages;C:/ti/pdk_am335x_1_0_17/packages;C:/ti/xdctools_3_55_02_22_core/packages;..;'. Ensure that the package path is set correctly.
"./package/cfg/nimu_bbbam335x_pa8fg.cfg", line 192
gmake.exe: *** [package.mak:218: package/cfg/nimu_bbbam335x_pa8fg.xdl] Error 1
js: "C:/ti/xdctools_3_55_02_22_core/packages/xdc/tools/Cmdr.xs", line 52: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.
gmake[1]: *** [build-1386366943-inproc] Error 1
gmake: *** [build-1386366943] Error 2
subdir_rules.mk:37: recipe for target 'build-1386366943' failed
gmake: Target 'all' not remade because of errors.

**** Build Finished ****

  • Hi,

    This example builds for me in PRSDK 6.3.

    https://software-dl.ti.com/processor-sdk-rtos/esd/docs/06_03_00_106/AM335X/rtos/index_overview.html#building-pdk-using-gmake-in-windows-environment

    https://software-dl.ti.com/processor-sdk-rtos/esd/docs/06_03_00_106/AM335X/rtos/index_overview.html#pdk-example-and-test-project-creation

    Ensure the PRSDK RTSC components have been installed in CCS. In CCS:

    • Window -> Preferences
    • Select Code Composer Studio -> Products
    • Ensure discovery path includes PRSDK
    • Click Refresh button
    • Install PRSDK components

    Ensure the PRSDK codegen tools have been installed in CCS. In CCS:

    • Window -> Preferences
    • Select Code Composer Studio -> Build -> Compilers
    • Ensure discovery path includes PRSDK
    • Click Refresh button
    • Click Apply & Close

    Restart CCS as required.

    I used this command to create the BBB NIMU examples from <PDK>\packages:

    pdkProjectCreate.bat AM335x bbbAM335x little nimu all arm

    Import the project NIMU_BasicExample_bbbAM335x_armExampleproject into a CCS workspace.

    Build project:

    • Right-click on project
    • Rebuild project

    I've attached my build log below.

    Regards,
    Frank

    **** Build of configuration Debug for project NIMU_BasicExample_bbbAM335x_armExampleproject ****
    
    "C:\\ti\\ccs930\\ccs\\utils\\bin\\gmake" -k -j 8 all -O 
     
    Building file: "R:/pdk_am335x_1_0_17/packages/ti/transport/ndk/nimu/example/am335x/armv7/bios/nimu_bbbam335x.cfg"
    Invoking: XDCtools
    "R:/xdctools_3_55_02_22_core/xs" --xdcpath="R:/bios_6_76_03_01/packages;R:/pdk_am335x_1_0_17/packages;R:/edma3_lld_2_12_05_30E_build/packages;R:/ndk_3_61_01_01/packages;R:/uia_2_30_01_02/packages;" xdc.tools.configuro -o configPkg -t gnu.targets.arm.A8F -p ti.platforms.evmAM3359 -r debug -c "C:/ti/ccs930/ccs/tools/compiler/gcc-arm-none-eabi-7-2017-q4-major-win32" "R:/pdk_am335x_1_0_17/packages/ti/transport/ndk/nimu/example/am335x/armv7/bios/nimu_bbbam335x.cfg"
    making package.mak (because of package.bld) ...
    generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
    configuring nimu_bbbam335x.xa8fg from package/cfg/nimu_bbbam335x_pa8fg.cfg ...
    	 SoC Type is 
    	 SoC Type is 
    generating custom ti.sysbios library makefile ... 
    	Linking with library ti.transport.ndk.nimu:./lib/am335x/a8/release/ti.transport.ndk.nimu.aa8fg
    	Linking with library ti.drv.emac:./lib/am335x/a8/release/ti.drv.emac.aa8fg
    	Linking with library ti.drv.gpio:./lib/a8/release/ti.drv.gpio.aa8fg
    	Linking with library ti.board:./lib/bbbAM335x/a8/release/ti.board.aa8fg
    	Linking with library ti.drv.i2c:./lib/a8/release/ti.drv.i2c.aa8fg
    	Linking with library ti.drv.uart:./lib/a8/release/ti.drv.uart.aa8fg
    	Linking with library ti.osal:./lib/tirtos/a8/release/ti.osal.aa8fg
    	Linking with library ti.csl:./lib/am335x/a8/release/ti.csl.aa8fg
    Starting build of library sources ...
    making R:/pdk_am335x_1_0_17/packages/ti/transport/ndk/nimu/example/am335x/armv7/bios/src/sysbios/sysbios.aa8fg ...
    Build of libraries done.
    cla8fg package/cfg/nimu_bbbam335x_pa8fg.c ...
    In file included from R:/ndk_3_61_01_01/packages/ti/ndk/inc/socket.h:43:0,
                     from R:/ndk_3_61_01_01/packages/ti/ndk/inc/stacksys.h:86,
                     from R:/ndk_3_61_01_01/packages/ti/ndk/inc/netmain.h:39,
                     from package/cfg/nimu_bbbam335x_pa8fg.c:2849:
    R:/ndk_3_61_01_01/packages/ti/ndk/inc/socketndk.h:94:0: warning: "_SYS_SELECT_H" redefined
     #define _SYS_SELECT_H   1 // TODO: still needed for struct timeval conflict
     
    In file included from r:\bios_6_76_03_01\packages\gnu\targets\arm\libs\install-native\arm-none-eabi\include\sys\types.h:68:0,
                     from r:\bios_6_76_03_01\packages\gnu\targets\arm\libs\install-native\arm-none-eabi\include\time.h:28,
                     from package/cfg/nimu_bbbam335x_pa8fg.c:2499:
    r:\bios_6_76_03_01\packages\gnu\targets\arm\libs\install-native\arm-none-eabi\include\sys\select.h:13:0: note: this is the location of the previous definition
     #define _SYS_SELECT_H
     
    Finished building: "R:/pdk_am335x_1_0_17/packages/ti/transport/ndk/nimu/example/am335x/armv7/bios/nimu_bbbam335x.cfg"
     
    Building file: "R:/pdk_am335x_1_0_17/packages/ti/drv/gpio/soc/am335x/GPIO_soc.c"
    Invoking: GNU Compiler
    "C:/ti/ccs930/ccs/tools/compiler/gcc-arm-none-eabi-7-2017-q4-major-win32/bin/arm-none-eabi-gcc-7.2.1.exe" -c -mcpu=cortex-a8 -march=armv7-a -mtune=cortex-a8 -marm -mfloat-abi=hard -Dam3359 -DUSE_BIOS -DSOC_AM335x -DBBB_AM335X -I"R:/pdk_am335x_1_0_17/packages/MyExampleProjects/NIMU_BasicExample_bbbAM335x_armExampleproject" -I"C:/ti/ccs930/ccs/tools/compiler/gcc-arm-none-eabi-7-2017-q4-major-win32/arm-none-eabi/include/newlib-nano" -I"C:/ti/ccs930/ccs/tools/compiler/gcc-arm-none-eabi-7-2017-q4-major-win32/arm-none-eabi/include" -Og -g -gdwarf-3 -gstrict-dwarf -Wall -c -MMD -MP -MMD -MP -MF"GPIO_soc.d" -MT"GPIO_soc.o"  @"configPkg/compiler.opt" -o"GPIO_soc.o" "R:/pdk_am335x_1_0_17/packages/ti/drv/gpio/soc/am335x/GPIO_soc.c"
    Finished building: "R:/pdk_am335x_1_0_17/packages/ti/drv/gpio/soc/am335x/GPIO_soc.c"
     
    Building file: "R:/pdk_am335x_1_0_17/packages/ti/drv/i2c/soc/am335x/I2C_soc.c"
    Invoking: GNU Compiler
    "C:/ti/ccs930/ccs/tools/compiler/gcc-arm-none-eabi-7-2017-q4-major-win32/bin/arm-none-eabi-gcc-7.2.1.exe" -c -mcpu=cortex-a8 -march=armv7-a -mtune=cortex-a8 -marm -mfloat-abi=hard -Dam3359 -DUSE_BIOS -DSOC_AM335x -DBBB_AM335X -I"R:/pdk_am335x_1_0_17/packages/MyExampleProjects/NIMU_BasicExample_bbbAM335x_armExampleproject" -I"C:/ti/ccs930/ccs/tools/compiler/gcc-arm-none-eabi-7-2017-q4-major-win32/arm-none-eabi/include/newlib-nano" -I"C:/ti/ccs930/ccs/tools/compiler/gcc-arm-none-eabi-7-2017-q4-major-win32/arm-none-eabi/include" -Og -g -gdwarf-3 -gstrict-dwarf -Wall -c -MMD -MP -MMD -MP -MF"I2C_soc.d" -MT"I2C_soc.o"  @"configPkg/compiler.opt" -o"I2C_soc.o" "R:/pdk_am335x_1_0_17/packages/ti/drv/i2c/soc/am335x/I2C_soc.c"
    Finished building: "R:/pdk_am335x_1_0_17/packages/ti/drv/i2c/soc/am335x/I2C_soc.c"
     
    Building file: "R:/pdk_am335x_1_0_17/packages/ti/drv/uart/soc/am335x/UART_soc.c"
    Invoking: GNU Compiler
    "C:/ti/ccs930/ccs/tools/compiler/gcc-arm-none-eabi-7-2017-q4-major-win32/bin/arm-none-eabi-gcc-7.2.1.exe" -c -mcpu=cortex-a8 -march=armv7-a -mtune=cortex-a8 -marm -mfloat-abi=hard -Dam3359 -DUSE_BIOS -DSOC_AM335x -DBBB_AM335X -I"R:/pdk_am335x_1_0_17/packages/MyExampleProjects/NIMU_BasicExample_bbbAM335x_armExampleproject" -I"C:/ti/ccs930/ccs/tools/compiler/gcc-arm-none-eabi-7-2017-q4-major-win32/arm-none-eabi/include/newlib-nano" -I"C:/ti/ccs930/ccs/tools/compiler/gcc-arm-none-eabi-7-2017-q4-major-win32/arm-none-eabi/include" -Og -g -gdwarf-3 -gstrict-dwarf -Wall -c -MMD -MP -MMD -MP -MF"UART_soc.d" -MT"UART_soc.o"  @"configPkg/compiler.opt" -o"UART_soc.o" "R:/pdk_am335x_1_0_17/packages/ti/drv/uart/soc/am335x/UART_soc.c"
    Finished building: "R:/pdk_am335x_1_0_17/packages/ti/drv/uart/soc/am335x/UART_soc.c"
     
    Building file: "R:/pdk_am335x_1_0_17/packages/ti/transport/ndk/nimu/example/src/nimu_osal.c"
    Invoking: GNU Compiler
    "C:/ti/ccs930/ccs/tools/compiler/gcc-arm-none-eabi-7-2017-q4-major-win32/bin/arm-none-eabi-gcc-7.2.1.exe" -c -mcpu=cortex-a8 -march=armv7-a -mtune=cortex-a8 -marm -mfloat-abi=hard -Dam3359 -DUSE_BIOS -DSOC_AM335x -DBBB_AM335X -I"R:/pdk_am335x_1_0_17/packages/MyExampleProjects/NIMU_BasicExample_bbbAM335x_armExampleproject" -I"C:/ti/ccs930/ccs/tools/compiler/gcc-arm-none-eabi-7-2017-q4-major-win32/arm-none-eabi/include/newlib-nano" -I"C:/ti/ccs930/ccs/tools/compiler/gcc-arm-none-eabi-7-2017-q4-major-win32/arm-none-eabi/include" -Og -g -gdwarf-3 -gstrict-dwarf -Wall -c -MMD -MP -MMD -MP -MF"nimu_osal.d" -MT"nimu_osal.o"  @"configPkg/compiler.opt" -o"nimu_osal.o" "R:/pdk_am335x_1_0_17/packages/ti/transport/ndk/nimu/example/src/nimu_osal.c"
    Finished building: "R:/pdk_am335x_1_0_17/packages/ti/transport/ndk/nimu/example/src/nimu_osal.c"
     
    Building file: "R:/pdk_am335x_1_0_17/packages/ti/transport/ndk/nimu/example/src/main_bbbAM335x.c"
    Invoking: GNU Compiler
    "C:/ti/ccs930/ccs/tools/compiler/gcc-arm-none-eabi-7-2017-q4-major-win32/bin/arm-none-eabi-gcc-7.2.1.exe" -c -mcpu=cortex-a8 -march=armv7-a -mtune=cortex-a8 -marm -mfloat-abi=hard -Dam3359 -DUSE_BIOS -DSOC_AM335x -DBBB_AM335X -I"R:/pdk_am335x_1_0_17/packages/MyExampleProjects/NIMU_BasicExample_bbbAM335x_armExampleproject" -I"C:/ti/ccs930/ccs/tools/compiler/gcc-arm-none-eabi-7-2017-q4-major-win32/arm-none-eabi/include/newlib-nano" -I"C:/ti/ccs930/ccs/tools/compiler/gcc-arm-none-eabi-7-2017-q4-major-win32/arm-none-eabi/include" -Og -g -gdwarf-3 -gstrict-dwarf -Wall -c -MMD -MP -MMD -MP -MF"main_bbbAM335x.d" -MT"main_bbbAM335x.o"  @"configPkg/compiler.opt" -o"main_bbbAM335x.o" "R:/pdk_am335x_1_0_17/packages/ti/transport/ndk/nimu/example/src/main_bbbAM335x.c"
    In file included from R:/ndk_3_61_01_01/packages/ti/ndk/inc/socket.h:43:0,
                     from R:/ndk_3_61_01_01/packages/ti/ndk/inc/stacksys.h:86,
                     from R:/ndk_3_61_01_01/packages/ti/ndk/inc/stkmain.h:39,
                     from R:/pdk_am335x_1_0_17/packages/ti/transport/ndk/nimu/example/src/main_bbbAM335x.c:49:
    R:/ndk_3_61_01_01/packages/ti/ndk/inc/socketndk.h:94:0: warning: "_SYS_SELECT_H" redefined
     #define _SYS_SELECT_H   1 // TODO: still needed for struct timeval conflict
     
    In file included from r:\bios_6_76_03_01\packages\gnu\targets\arm\libs\install-native\arm-none-eabi\include\sys\types.h:68:0,
                     from r:\bios_6_76_03_01\packages\gnu\targets\arm\libs\install-native\arm-none-eabi\include\stdio.h:61,
                     from R:/pdk_am335x_1_0_17/packages/ti/transport/ndk/nimu/example/src/main_bbbAM335x.c:39:
    r:\bios_6_76_03_01\packages\gnu\targets\arm\libs\install-native\arm-none-eabi\include\sys\select.h:13:0: note: this is the location of the previous definition
     #define _SYS_SELECT_H
     
    Finished building: "R:/pdk_am335x_1_0_17/packages/ti/transport/ndk/nimu/example/src/main_bbbAM335x.c"
     
    Building file: "R:/pdk_am335x_1_0_17/packages/ti/transport/ndk/nimu/example/src/statistics.c"
    Invoking: GNU Compiler
    "C:/ti/ccs930/ccs/tools/compiler/gcc-arm-none-eabi-7-2017-q4-major-win32/bin/arm-none-eabi-gcc-7.2.1.exe" -c -mcpu=cortex-a8 -march=armv7-a -mtune=cortex-a8 -marm -mfloat-abi=hard -Dam3359 -DUSE_BIOS -DSOC_AM335x -DBBB_AM335X -I"R:/pdk_am335x_1_0_17/packages/MyExampleProjects/NIMU_BasicExample_bbbAM335x_armExampleproject" -I"C:/ti/ccs930/ccs/tools/compiler/gcc-arm-none-eabi-7-2017-q4-major-win32/arm-none-eabi/include/newlib-nano" -I"C:/ti/ccs930/ccs/tools/compiler/gcc-arm-none-eabi-7-2017-q4-major-win32/arm-none-eabi/include" -Og -g -gdwarf-3 -gstrict-dwarf -Wall -c -MMD -MP -MMD -MP -MF"statistics.d" -MT"statistics.o"  @"configPkg/compiler.opt" -o"statistics.o" "R:/pdk_am335x_1_0_17/packages/ti/transport/ndk/nimu/example/src/statistics.c"
    In file included from R:/ndk_3_61_01_01/packages/ti/ndk/inc/socket.h:43:0,
                     from R:/ndk_3_61_01_01/packages/ti/ndk/inc/stacksys.h:86,
                     from R:/ndk_3_61_01_01/packages/ti/ndk/inc/stkmain.h:39,
                     from R:/pdk_am335x_1_0_17/packages/ti/transport/ndk/nimu/example/src/statistics.c:42:
    R:/ndk_3_61_01_01/packages/ti/ndk/inc/socketndk.h:94:0: warning: "_SYS_SELECT_H" redefined
     #define _SYS_SELECT_H   1 // TODO: still needed for struct timeval conflict
     
    In file included from r:\bios_6_76_03_01\packages\gnu\targets\arm\libs\install-native\arm-none-eabi\include\sys\types.h:68:0,
                     from r:\bios_6_76_03_01\packages\gnu\targets\arm\libs\install-native\arm-none-eabi\include\stdio.h:61,
                     from R:/pdk_am335x_1_0_17/packages/ti/transport/ndk/nimu/example/src/statistics.c:39:
    r:\bios_6_76_03_01\packages\gnu\targets\arm\libs\install-native\arm-none-eabi\include\sys\select.h:13:0: note: this is the location of the previous definition
     #define _SYS_SELECT_H
     
    Finished building: "R:/pdk_am335x_1_0_17/packages/ti/transport/ndk/nimu/example/src/statistics.c"
     
    Building target: "NIMU_BasicExample_bbbAM335x_armExampleproject.out"
    Invoking: GNU Linker
    "C:/ti/ccs930/ccs/tools/compiler/gcc-arm-none-eabi-7-2017-q4-major-win32/bin/arm-none-eabi-gcc-7.2.1.exe" -mtune=cortex-a8 -marm -Dam3359 -DUSE_BIOS -DSOC_AM335x -DBBB_AM335X -Og -g -gdwarf-3 -gstrict-dwarf -Wall -MMD -MP -mfloat-abi=hard -Wl,-Map,"NIMU_BasicExample_bbbAM335x_armExampleproject.map" -nostartfiles -static -Wl,--gc-sections -L"R:/bios_6_76_03_01/packages/gnu/targets/arm/libs/install-native/arm-none-eabi/lib/hard" -L"R:/ndk_3_61_01_01/packages/ti/ndk/os/lib" -L"R:/pdk_am335x_1_0_17/packages/ti/starterware/binary/soc/lib/am335x-evm/a8/release/gcc" -Wl,--defsym,STACKSIZE=0x1C000 -Wl,--defsym,HEAPSIZE=0x400 --specs=nano.specs -o"NIMU_BasicExample_bbbAM335x_armExampleproject.out" "./GPIO_soc.o" "./I2C_soc.o" "./UART_soc.o" "./main_bbbAM335x.o" "./nimu_osal.o" "./statistics.o" -Wl,-T"configPkg/linker.cmd" -Wl,--start-group -lrdimon -lgcc -lm -lnosys -l:os.aa8fg -lsoc -lc -Wl,--end-group 
    Finished building target: "NIMU_BasicExample_bbbAM335x_armExampleproject.out"
     
    R:/pdk_am335x_1_0_17/packages/pdkAppImageCreate.bat R:/pdk_am335x_1_0_17/packages C:/ti/ccs930/ccs/tools/compiler/gcc-arm-none-eabi-7-2017-q4-major-win32 R:/pdk_am335x_1_0_17/packages/MyExampleProjects/NIMU_BasicExample_bbbAM335x_armExampleproject/Debug NIMU_BasicExample_bbbAM335x_armExampleproject AM335x arm
     
     
    
    **** Build Finished ****