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.

CCS/STARTERWARE-SITARA: AM335x

Part Number: STARTERWARE-SITARA

Tool/software: Code Composer Studio

I'm trying to build the uartEcho project from C:\ti\AM335X_StarterWare_02_00_01_01\build\armv7a\cgt_ccs\am335x\evmAM335x\uart directory and I'm receiving a build error when the program is trying to run mkhex4bin.exe.

The Error message I'm receiving is

**** Build of configuration Debug for project uartEcho ****

"C:\\ti\\ccsv7\\utils\\bin\\gmake" -k -j 8 -s all -O

'Building file: C:/ti/AM335X_StarterWare_02_00_01_01/examples/evmAM335x/uart/uartEcho.c'

'Invoking: ARM Compiler'

'Finished building: C:/ti/AM335X_StarterWare_02_00_01_01/examples/evmAM335x/uart/uartEcho.c'

' '

'Building target: C:/ti/binary/armv7a/cgt_ccs/am335x/evmAM335x/uart/Debug/uartEcho.out'

'Invoking: ARM Linker'

<Linking>

warning: creating output section ".text" without a SECTIONS specification

warning: creating output section ".const" without a SECTIONS specification

warning: creating output section ".data" without a SECTIONS specification

warning: creating output section ".bss" without a SECTIONS specification

warning: creating ".stack" section with default size of 0x800; use the -stack

option to change the default size

'Finished building target: C:/ti/binary/armv7a/cgt_ccs/am335x/evmAM335x/uart/Debug/uartEcho.out'

' '

"C:/ti/ccsv7/utils/tiobj2bin/mkhex4bin.exe" failure occurred. Giving up.

' '

error: failed to read

"../../../../../../../binary/armv7a/cgt_ccs/am335x/evmAM335x/uart/Debug/uart

Echo.out"

Use of uninitialized value $str in pattern match (m//) at XML_TI_OFD.pm line 2146.

Use of uninitialized value $targ_num in hash element at XML_TI_OFD.pm line 1325.

Unexpected target: unknown at script/mkhex4bin.pl line 270.

The system cannot find the path specified.

**** Build Finished ****

uartEcho.out is being built but it looks like the mkhex4bin.exe can't find it.  uartEcho.out is being stored to:

C:\ti\binary\armv7a\cgt_ccs\am335x\evmAM335x\uart\Debug.

 

  • Joe Cely said:
    I'm receiving a build error when the program is trying to run mkhex4bin.exe.

    You aren't supposed to directly invoke mkhex4bin during a build.  It is a helper utility to tiobj2bin.  The utility tiobj2bin converts an executable object file like uartEcho.out into a binary file.  Typical usage of tiobj2bin is discussed in the article Pre and Post Build Steps.

    If that doesn't clear things up, then I need to see the entire build log.  Perform this problem build again.  Then, in the Console view, use the icon Copy Build Log to capture it in a text file.  Be sure to use the file extension .txt.  Attach that to your next post.

    Thanks and regards,

    -George

  • The project was imported "as is", I'm not sure why this executable was being called.  I deleted the entire project and re-imported and that seemed to work.   Although I'm having a different problem, I may be closer.

    Thank you for the feedback.