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/TMS570LS1224: Halcogen generated code doesn't build

Part Number: TMS570LS1224

Tool/software: Code Composer Studio

Hi,

We just got a bunch of Hercules LaunchPadXL2's and I'm trying to build a project. I have followed the CCS tutorial and tried Project_0 (http://processors.wiki.ti.com/index.php/LAUNCHXL2_TMS57012:_Project_0

  • Hello Lisa,

    can you provide some details on what types of errors you are seeing? have you set up your include paths as part of the project setup? What compiler version are you using? More details will further improve our ability to support. Thanks!
  • Hi Chuck,

    Thanks for the reply. Yes, I set up the include path as per the instructions. The include directives are:

    ${PROJECT_ROOT}
    ${PROJECT_ROOT}/include
    ${CG_TOOL_ROOT}/include

    PROJECT_ROOT resolves to my project directory, CG_TOOL_ROOT resolves to c:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.4LTS

    The Installation Details windows, says that I have ARM compiler tools version 17.6.0 and 16.9.4LTS; C/C++ GCC 9.0.0.201606062011; and TI Emulators 7.0.48.0.

    The errors “[E0002] Instruction only available in V7 and V6M0” and “[E0002] Instruction is only available in V6 and higher” occur in sys_mpu.asm.

    The errors “[E0002] Instruction requires VFP support” occur in sys_core.asm.

    I followed the instructions In Project_0, except where (from Project_0):

    "Required 'Processor Support' Options During Installation

    During the installation process, you will be presented with options for Processor Support. At a minimum you must select 32-bit ARM MCUs, and its components Hercules Device Support and the TI ARM Compiler, as shown here (click on the image to enlarge): "

    In the version of ccs I downloaded, there are no such options. I selected "Hercules Safety MCUs" and "TM4C12x ARM Cortex-M4F core-based MCUs" -- the latter because it was the closest thing available to "32-bit ARM MCUs".


    Thanks,
    Lisa
  • Lisa,

    Are you still having this issue? I think this might be related to a CCS/CGT bug in CCS v7. I am going to move your post to the CCS forum to see if they can provide more guidance. If you don't hear back from them soon, let me know and I will do some additional digging. You can let me know by either replying to this post or by using the messaging feature of the E2E to send me a private message. Sorry for the long delay getting you an answer.
  • Chuck,

    Thanks for the reply. I never could get v7 to work. A friend gave me a copy of v6 and that seems to be working ok so far.

    Thanks,

    Lisa

  • Hi Lisa,

    I apologize for the troubles. I believe that the CCS team has corrected the issue giving you trouble in v7.1 which is either now released or will be released soon. Either way, I think the important feature is the compiler itself and the ability to qualify it for your safety project. V6 should support what you need.
  • Sounds like an incompatible ABI is being used.   I would bet that the project was created and has "Target processor version" set for an older version instead of 7R4 (ARMv7 Cortex R4).  When creating the project in CCS if the correct device was selected then the appropriate ABI should be set.  Below is what CCS will set it to if the TMS570LS1224 device is selected in the wizard.  This is CCSv7.3 but I would expect the same in any 7.x release.

    Regards,

    John