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.

.hex or .bin file with CCS v6.0

Other Parts Discussed in Thread: CC2538

Hello,

I'm new in TI products ... so probably my question seems stupid.

Nevertheless here it is: is it possible to produce a binary file to be flashed into CPU (CC2538).

If YES what settings should I put in CCS ?

Thanks in advance

Pavel.

  • Hello Pavel

    A recent post in the TIVA Forum also wanted to do something on the same lines.

    http://e2e.ti.com/support/microcontrollers/tiva_arm/f/908/t/346169.aspx

    I am pasting the command used. More details in the above post

    Go to Project Properties >> Build >> click on Steps tab >> In Post-build steps paste following line as it is(including quotes)

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

    Regards

    Amit

  • Hello Amit,

    Thank you for feedback.

    I've tried your suggestion, but nothing happened: my active Debug directory doesn't contain flash files.

    Should I check some options ro logs ?

    Probably the variables CCS_INSTALL_ROOT, CG_TOOL_ROOT aren't properly defined ?

    In any way after compilation there is NO any warning or error messages. Strange ...

    .

    Regards

    Pavel.

  • Hello,

    Not sure if this is causing the issue, but 

    I remember having a problem where norton antivirus would quarantine dll files produced by Visual Studio Express.

    It might be doing the same thing to your bin file without giving any warnings.

    Stephen

  • Hello Stephen

    Thanks for feedback.

    In the meantime I continued my investigations and the problem was partially resolved: actually there was no compilation at all, thats why nothing was generated. The option caused this malfunction is:

    Project Properties --> Build --> ARM Compliler --> Advanced Options --> Language Options --> C/C++ Dialect

    The "bad" value were "Embedded C++".

    Once changed for empty, it becomes OK: compilation works and ... unfortunately error appear. Naturally there is no compiled file.

    Cordially

    Pavel.

  • Hello Pavel,

    What is the compilation Error?

    Regards

    Amit

  • Hello Amit

    There were some not recognized variables and also some syntax constructions which provoked errors.

    I commented all thsis staff.

    Now link error:

    Description Resource Path Location Type
    unresolved symbol main, first referenced in c:\ti\ccsv6\tools\compiler\arm_5.1.5\lib\rtsv7M3_T_le_eabi.lib<args_main.obj> proj_ConTiki    C/C++ Problem

    Indeed there is no main() in the exampl source code - it's situated in source code, that is attached in "Includes".

    Probably it's not a rigth way to proceed.

    The problem changed face. Now it sonds something like this: how to compile an example from contiki design kit.

    For this problem I've created other post.

    Did you have experience with such kind of problems ?

    Cordially

    Pavel.

  • This command is working fine .
    Whole command should come in single line with single space separating string's their should be no new line in command .
    I was getting error previously when i separated five strings in separate lines .

    Regards
    Alok