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.

gpioLEDblink StarterWare library rtsv7A8_A_le_eabi.lib build error

Other Parts Discussed in Thread: TI-CGT

Hi

I am trying to compile gpioLEDblink example from StarterWare, but, rtsv7A8_A_le_eabi.lib can not be built:

**** Build of configuration Debug for project gpioLEDBlink ****

"C:\\ti\\ccsv6.1.1\\ccsv6\\utils\\bin\\gmake" -k -j 2 -s all
'Building file: C:/ti/AM335X_StarterWare_02_00_01_01/examples/beaglebone/gpio/gpioLEDBlink.c'
'Invoking: ARM Compiler'
'Finished building: C:/ti/AM335X_StarterWare_02_00_01_01/examples/beaglebone/gpio/gpioLEDBlink.c'
' '
'Building target: ../../../../../../../binary/armv7a/cgt_ccs/am335x/beaglebone/gpio/Debug/gpioLEDBlink.out'
'Invoking: ARM Linker'
<Linking>
warning #10366-D: automatic library build: using library
"C:\ti\ccsv6.1.1\ccsv6\tools\compiler\ti-cgt-arm_5.2.7\lib\rtsv7A8_A_le_eabi
.lib" for the first time, so it must be built. This may take a few
minutes.
'[' nÆo ‚ reconhecido como um comando interno
ou externo, um programa oper vel ou um arquivo em lotes.
'[' nÆo ‚ reconhecido como um comando interno
ou externo, um programa oper vel ou um arquivo em lotes.
process_begin: CreateProcess(NULL, armcl array_del.cpp -O --embed_icode --keep_asm --diag_warning=225 --quiet -mv7A8 --abi=eabi --fp_mode=strict --no_visible_enums -c --ti_lib --keep_unneeded_types=false -me -fg --rtti --building_runtime -Ic:/ti/ccsv61~1.1/ccsv6/tools/compiler/ti-cgt~1.7/lib/src -fr c:/users/sergio/appdata/local/temp/tiba0f~1/obj -fs c:/users/sergio/appdata/local/temp/tiba0f~1/obj -ft c:/users/sergio/appdata/local/temp/tiba0f~1/obj, ...) failed.
process_begin: CreateProcess(NULL, armcl array_new.cpp -O --embed_icode --keep_asm --diag_warning=225 --quiet -mv7A8 --abi=eabi --fp_mode=strict --no_visible_enums -c --ti_lib --keep_unneeded_types=false -me -fg --rtti --building_runtime -Ic:/ti/ccsv61~1.1/ccsv6/tools/compiler/ti-cgt~1.7/lib/src -fr c:/users/sergio/appdata/local/temp/tiba0f~1/obj -fs c:/users/sergio/appdata/local/temp/tiba0f~1/obj -ft c:/users/sergio/appdata/local/temp/tiba0f~1/obj, ...) failed.
make (e=2): O sistema não pode encontrar o arquivo especificado.

gmake.exe[1]: *** [c:/users/sergio/appdata/local/temp/tiba0f~1/obj/array_del.obj] Error 2
process_begin: CreateProcess(NULL, armcl array_nodel.cpp -O --embed_icode --keep_asm --diag_warning=225 --quiet -mv7A8 --abi=eabi --fp_mode=strict --no_visible_enums -c --ti_lib --keep_unneeded_types=false -me -fg --rtti --building_runtime -Ic:/ti/ccsv61~1.1/ccsv6/tools/compiler/ti-cgt~1.7/lib/src -fr c:/users/sergio/appdata/local/temp/tiba0f~1/obj -fs c:/users/sergio/appdata/local/temp/tiba0f~1/obj -ft c:/users/sergio/appdata/local/temp/tiba0f~1/obj, ...) failed.
make (e=2): O sistema não pode encontrar o arquivo especificado.

gmake.exe[1]: *** [c:/users/sergio/appdata/local/temp/tiba0f~1/obj/array_new.obj] Error 2
process_begin: CreateProcess(NULL, armcl array_nonew.cpp -O --embed_icode --keep_asm --diag_warning=225 --quiet -mv7A8 --abi=eabi --fp_mode=strict --no_visible_enums -c --ti_lib --keep_unneeded_types=false -me -fg --rtti --building_runtime -Ic:/ti/ccsv61~1.1/ccsv6/tools/compiler/ti-cgt~1.7/lib/src -fr c:/users/sergio/appdata/local/temp/tiba0f~1/obj -fs c:/users/sergio/appdata/local/temp/tiba0f~1/obj -ft c:/users/sergio/appdata/local/temp/tiba0f~1/obj, ...) failed.
make (e=2): O sistema não pode encontrar o arquivo especificado.

.....

Attached follows complete compilation log.

I am using CCSv6.1.1 and StarterWare 02_00_01_01, under Windows 10. 

I already applied PATCH for am335x over StarterWare ( StarterWare_BBB_suport.tar.gz).

Any help will welcome.

1805.compilation.log

  • Sergio,

    Could you please give the new AM335x RTOS package a try? This does not need any patching for the AM335x.

    http://software-dl.ti.com/processor-sdk-rtos/esd/AM335X/02_00_02_11/index_FDS.html 

    Lali

  • Hi Lali

    I installed the new AM335x RTOS, under CCSV6.1.2, this time in Windows 7, as Windows 10 proved totally bugged for use with CCS ( for some strange reason, W10 creates some folders without any kind of access rights, but Read-Only ).

    I could compile successfully the "hello_BeagleBone_Black_CortexA" example to .out file.

    But, as I am loading examples through uSD card in BBB ( MLO loads app to RAM and execute it ), I need the BIN file. Yes, I don't have XDS jtag adapter yet, but, it is on the way.

    I tried the post-build step:


    "${CCS_INSTALL_ROOT}/utils/tiobj2bin/tiobj2bin.bat" "${BuildArtifactFileName}" "${BuildArtifactFileBaseName}.bin" "${CG_TOOL_ROOT}/bin/armofd" "${CG_TOOL_ROOT}/bin/armhex"
    "${CCS_INSTALL_ROOT}/utils/tiobj2bin/mkhex4bin"


    But, this post-build step do not finish the BIN file giving errors:


    'Finished building target: hello_BeagleBone_Black_CortexA.out'
    ' '
    "C:/ti/ccsv6/utils/tiobj2bin/tiobj2bin.bat" "hello_BeagleBone_Black_CortexA.out" "hello_BeagleBone_Black_CortexA.bin" "C:/ti/ccsv6/tools/compiler/ti-cgt-arm_16.3.0.STS/bin/armofd" "C:/ti/ccsv6/tools/compiler/ti-cgt-arm_16.3.0.STS/bin/armhex"
    'mkhex4bin' nao é reconhecido como um comando interno
    ou externo, um programa oper vel ou um arquivo em lotes.
    mkhex4bin failure occurred. Giving up.
    "C:/ti/ccsv6/utils/tiobj2bin/mkhex4bin"
    Reading from stdin ...
    File does not exist: at XML_TI_OFD.pm line 877.
    gmake[1]: [post-build] Error 2 (ignored)
    ' '

    **** Build Finished ****


    The same post-build step works fine in CCSv6.1.1 in W10 with TM4C programs.

    Now, I am using CCSv6.1.2 in W7, as I said in the beginning.

    What could be wrong in BIN file post-build step?

    Sergio
  • Hi Sergio,

    Are you sure that your CG_TOOL_ROOT variable is correct? I don't see ti-cgt-arm_16.3.0.STS in my CCS installation under C:\ti\ccsv6\tools\compiler. I'm not sure that the exact steps for TM4C programs would work in this case.

    Please import one of the Starterware examples in pdk_am335x_1_0_2\packages\ti\starterware to see what post-build steps it uses in the project properties.

    I cannot understand the other part of the error message since it is in another language.

    Lali

  • Hi Lali

    The problem is that mkhex2bin.exe it is not recognized as internal or external command, and due this, I can't get .bin file.

    Follows print screens showing several setups of my CCSv6.1.2:

  • Hi Lali

    In time, the Starterware gpio and demo examples are successfully compiled to "*_ti.bin" and run perfectly in my BeagleBone Black:


    **** Build of configuration Debug for project gpioLEDBlink ****

    "C:\\ti\\ccsv6\\utils\\bin\\gmake" -k -j 2 -s all
    'Building file: C:/ti/AM335X_StarterWare_02_00_01_01/examples/beaglebone/gpio/gpioLEDBlink.c'
    'Invoking: ARM Compiler'
    'Finished building: C:/ti/AM335X_StarterWare_02_00_01_01/examples/beaglebone/gpio/gpioLEDBlink.c'
    ' '
    'Building target: ../../../../../../../binary/armv7a/cgt_ccs/am335x/beaglebone/gpio/Debug/gpioLEDBlink.out'
    'Invoking: ARM Linker'
    <Linking>
    'Finished building target: ../../../../../../../binary/armv7a/cgt_ccs/am335x/beaglebone/gpio/Debug/gpioLEDBlink.out'
    ' '

    ' '

    **** Build Finished ****



    So, the issue of mkhex4bin it only for RTOS examples.

    Sergio