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.

LAUNCHXL-F28377S: Why semicolon is requested?

Part Number: LAUNCHXL-F28377S
Other Parts Discussed in Thread: CONTROLSUITE, C2000WARE

@controlSUITE ver. 3.4.4 and CCS ver 6.2 I meet following errors;

>> Compilation failure
subdir_rules.mk:7: recipe for target 'F2837xS_CpuTimers.obj' failed
"C:/ti/controlSUITE/device_support/F2837xS/v210/F2837xS_headers/include/F2837xS_device.h", line 31: warning #262-D: explicit type is missing ("int" assumed)
"C:/ti/controlSUITE/device_support/F2837xS/v210/F2837xS_headers/include/F2837xS_device.h", line 31: error #66: expected a ";"

I checked where is makes the errors (line 31);

extern __cregister volatile unsigned int IFR;

"__cregister" is not highlighted on the window, means missing something? I can not understand why semicolon is requested on the line.

Instead of v210, should I use v200, v190, and or lower version, or what is the v-xx0 inherently, is it a version?, what is difference between them?

Best,

Takano

  • Hi Takano-san,

    I would request you to uninstall your controlSuite and install the same in C:/ti

    There seems to be some issue - with all your previous posts on the code incompatibility. Just a suggestion.

    Takano said:
    Instead of v210, should I use v200, v190, and or lower version, or what is the v-xx0 inherently, is it a version?, what is difference between them?

    Always prefer the most recent version.

    Regards,

    Gautam

  • I found following thread;
    e2e.ti.com/.../560651

    I made moving xdctools_3_32_01_22_core and xdctools_3_50_01_12_core to under tmp folder, so it does not affect I think, but I meed still same error.

    Best,
    Takano
  • Hi Iyer-san,

    I already uninstalled and installed again regarding 3.4.4 controlSUITE.

    Best,
    Takano
  • Hi Iyer-san,

    OK, now I uninstall controlSUITE and c2000WARE, after that I will install controlSUITE 3.4.4 or 3.4.5.
    If I meet same error again after that the installation, I would cry...

    Best,
    Takano
  • Let us know what you observe.
  • Hi,

    There is no previous errors, but I meet new errors as follows;

    I did is comment out "EALLOW", "EDIS", and so on intorder to remove error messages.

    But sill three error messages are remained

    I did find and comment out, bellow three words are not in a file, but is not there in the file.


    **** Build of configuration Debug for project ctrl_dsp ****

    "C:\\ti\\ccsv6\\utils\\bin\\gmake" -k all
    'Building file: ../init.c'
    'Invoking: ARM Compiler'
    "C:/ti/ccsv6/tools/compiler/arm_15.12.3.LTS/bin/armcl" -mv4 --code_state=32 --include_path="C:/ti/ccsv6/tools/compiler/arm_15.12.3.LTS/include" --include_path="C:/ti/controlSUITE/device_support/F2837xS/v210/F2837xS_headers/include" --include_path="C:/ti/controlSUITE/device_support/F2837xS/v210/F2837xS_common/include" -g --diag_wrap=off --diag_warning=225 --display_error_number --preproc_with_compile --preproc_dependency="init.d" "../init.c"
    3 Assembly Errors, No Assembly Warnings

    >> Compilation failure
    subdir_rules.mk:42: recipe for target 'init.obj' failed
    "C:\Users\J10004~1\AppData\Local\Temp\0340010", ERROR! at line 1411: [E0002] Illegal mnemonic specified
    setc INTM

    "C:\Users\J10004~1\AppData\Local\Temp\0340010", ERROR! at line 1641: [E0002] Illegal mnemonic specified
    clrc INTM

    "C:\Users\J10004~1\AppData\Local\Temp\0340010", ERROR! at line 1643: [E0002] Illegal mnemonic specified
    clrc DBGM


    Errors in Source - Assembler Aborted
    gmake: *** [init.obj] Error 1
    gmake: Target 'all' not remade because of errors.

    **** Build Finished ****

  • HI All,

    Other item ESTOP0 is also commented out.
    I wonder that comment out is easy but does not affect to code execution?
    Or, other similar key word is there?

    After commenting out EINT and ERTM 2 of 3 error are removed, One error remained;
    I checked whether I use key word of INTM in a project, but I do not use it.
    So it is indeed caused by other file.

    Best,
    Takano

    **** Build of configuration Debug for project ctrl_dsp ****

    "C:\\ti\\ccsv6\\utils\\bin\\gmake" -k all
    'Building file: ../init.c'
    'Invoking: ARM Compiler'
    "C:/ti/ccsv6/tools/compiler/arm_15.12.3.LTS/bin/armcl" -mv4 --code_state=32 --include_path="C:/ti/ccsv6/tools/compiler/arm_15.12.3.LTS/include" --include_path="C:/ti/controlSUITE/device_support/F2837xS/v210/F2837xS_headers/include" --include_path="C:/ti/controlSUITE/device_support/F2837xS/v210/F2837xS_common/include" -g --diag_wrap=off --diag_warning=225 --display_error_number --preproc_with_compile --preproc_dependency="init.d" "../init.c"
    1 Assembly Error, No Assembly Warnings

    >> Compilation failure
    subdir_rules.mk:42: recipe for target 'init.obj' failed
    "C:\Users\J10004~1\AppData\Local\Temp\0717610", ERROR! at line 1411: [E0002] Illegal mnemonic specified
    setc INTM


    Errors in Source - Assembler Aborted
    gmake: *** [init.obj] Error 1
    gmake: Target 'all' not remade because of errors.

    **** Build Finished ****
  • Hi,

    I also commented out "DINT" then error is changed as follows;
    Is this linking error, right? And then how to solve it on right way?

    Best,
    Takano

    **** Build of configuration Debug for project ctrl_dsp ****

    "C:\\ti\\ccsv6\\utils\\bin\\gmake" -k all
    'Building file: ../init.c'
    'Invoking: ARM Compiler'
    "C:/ti/ccsv6/tools/compiler/arm_15.12.3.LTS/bin/armcl" -mv4 --code_state=32 --include_path="C:/ti/ccsv6/tools/compiler/arm_15.12.3.LTS/include" --include_path="C:/ti/controlSUITE/device_support/F2837xS/v210/F2837xS_headers/include" --include_path="C:/ti/controlSUITE/device_support/F2837xS/v210/F2837xS_common/include" -g --diag_wrap=off --diag_warning=225 --display_error_number --preproc_with_compile --preproc_dependency="init.d" "../init.c"
    'Finished building: ../init.c'
    ' '
    'Building target: ctrl_dsp.out'
    'Invoking: ARM Linker'
    "C:/ti/ccsv6/tools/compiler/arm_15.12.3.LTS/bin/armcl" -mv4 --code_state=32 -g --diag_wrap=off --diag_warning=225 --display_error_number -z -m"ctrl_dsp.map" -i"C:/ti/ccsv6/tools/compiler/arm_15.12.3.LTS/lib" -i"C:/ti/ccsv6/tools/compiler/arm_15.12.3.LTS/include" --reread_libs --diag_wrap=off --warn_sections --display_error_number --xml_link_info="ctrl_dsp_linkInfo.xml" --rom_model -o "ctrl_dsp.out" "./ctrl_apd.obj" "./ctrl_encoder.obj" "./ctrl_init_err.obj" "./ctrl_spi.obj" "./ctrl_tdc.obj" "./init.obj" "./init_apd.obj" "./init_spi.obj" "./init_tdc.obj" "./main.obj" "./util.obj" -llibc.a
    <Linking>
    warning #10366-D: automatic library build: using library "C:\ti\ccsv6\tools\compiler\arm_15.12.3.LTS\lib\rtsv4_A_be_eabi.lib" for the first time, so it must be built. This may take a few minutes.
    warning #10247-D: creating output section ".text" without a SECTIONS specification
    warning #10247-D: creating output section ".data" without a SECTIONS specification
    warning #10247-D: creating output section ".bss" without a SECTIONS specification
    warning #10247-D: creating output section ".cinit" without a SECTIONS specification
    warning #10210-D: creating ".stack" section with default size of 0x800; use the -stack option to change the default size
    warning #10229-D: output section ".data" refers to load symbol "EPwm1Regs" and hence cannot be compressed; compression "rle" is ignored

    undefined first referenced
    symbol in file
    --------- ----------------
    ClkCfgRegs ./init.obj
    ConfigCpuTimer ./init.obj
    CpuTimer0 ./init.obj
    CpuTimer0Regs ./init.obj
    EPwm1Regs ./ctrl_tdc.obj
    EPwm2Regs ./ctrl_tdc.obj
    F28x_usDelay ./ctrl_tdc.obj
    GPIO_SetupPinMux ./init.obj
    GPIO_SetupPinOptions ./init.obj
    GPIO_WritePin ./ctrl_init_err.obj
    GpioCtrlRegs ./init.obj
    GpioDataRegs ./ctrl_init_err.obj
    IER ./init.obj
    IFR ./init.obj
    InitCpuTimers ./init.obj
    InitEPwmGpio ./init.obj
    InitGpio ./init.obj
    InitPieCtrl ./init.obj
    InitPieVectTable ./init.obj
    InitSysCtrl ./init.obj
    IntDisable ./ctrl_spi.obj
    IntEnable ./ctrl_apd.obj
    PieCtrlRegs ./init.obj
    PieVectTable ./init.obj
    SFO ./init.obj
    SpiaRegs ./util.obj
    SpibRegs ./util.obj
    g_TDC_EN_MEASURE ./ctrl_spi.obj
    init_err ./init.obj
    init_msr ./init.obj

    error #10234-D: unresolved symbols remain
    error #10010: errors encountered during linking; "ctrl_dsp.out" not built
    gmake: *** [ctrl_dsp.out] Error 1
    gmake: Target 'all' not remade because of errors.

    >> Compilation failure
    makefile:149: recipe for target 'ctrl_dsp.out' failed

    **** Build Finished ****
  • Regarding ClkCfgRegs which is used in init.obj, should I include *.c file to project folder?
    It takes much time for finding appropriate file...
    Best,
    Takano
  • Takano

    Undefined symbols mean you are missing the source files in your project. Refer to the examples on what you need.
    Additionally, you are using the ARM compiler instead of the required C2000 compiler.

    Best regards
    Chris
  • HI Chris,

    Yes I reset compiler setting and import necessary file into project folder.
    After that errors are resolved.

    Thanks,
    Takano