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.

startup_ccs.c Assembler Aborded

Other Parts Discussed in Thread: CONTROLSUITE

Hi,

I have some troubles with a project for the c28 core (28M36P63C2). I don't get any errors in the "Problems" window when I compile it but the .out file is not generated.

Actually, when I take a look to the Console, I can see these errors:

...........................................................................................

--define="_DEBUG" --define="_FLASH" --define="LARGE_MODEL" --diag_warning=225 --preproc_with_compile --preproc_dependency="startup_css.pp" "../startup_css.c"
"C:\Users\Marc\AppData\Local\Temp\0462411", ERROR! at line 168: [E0003]
Syntax error - Operand 2
b.w _c_int00

"C:\Users\Marc\AppData\Local\Temp\0462411", ERROR! at line 168: [E0003]
Expecting condition code as operand
b.w _c_int00

"C:\Users\Marc\AppData\Local\Temp\0462411", ERROR! at EOF: [E0300]
The following symbols are undefined:
.w
3 Assembly Errors, No Assembly Warnings

Errors in Source - Assembler Aborted

>> Compilation failure
gmake: *** [startup_css.obj] Error 1
gmake: Target `all' not remade because of errors.

**** Build Finished ****

I don't know how to fix it. If someone has an idea... :-)

Thank your for your helping,

Marc

  • Hi Marc,

    I have also encountered similar problem. In my case, the problem is because I have forgotten to specify the Device and Connection under General in Properties. If you have not resolved it  which I don't think so, you could have a look at that. 
    Eventually, I just recreated the project from scratch because I was getting eabi output format issue.

    Cheers.

  • Marc Zetek said:
    a project for the c28 core

    Marc Zetek said:
    --define="_DEBUG" --define="_FLASH" --define="LARGE_MODEL" --diag_warning=225 --preproc_with_compile --preproc_dependency=

    Marc,

    These two statements seem to align - the command line fed to the compiler matches what I would expect for the 28x.

    Marc Zetek said:
    b.w _c_int00

    But B.W is a ARM instruction....... this is why the assembler doesn't like it.  So there is a disconnect somewhere.

    Marc Zetek said:
    >> Compilation failure
    gmake: *** [startup_css.obj] Error 1

    setup_ccs.c is also a file that we have included in our ARM projects but I do not believe it is included in any of our C28x projects.

    Is this a project in controlSUITE?

    -Lori

  • Kenneth makes a good observation.  In the compiler command line there is no device information.  For the 28x compiler on Concerto the following would be included:

    -v28 -ml -mt --float_support=fpu32 --vcu_support=vcu0 -g define="_FLASH" --diag_warning=225 --no_fast_branch

    And for the ARM compiler

    mv7M3 --code_state=16 --abi=eabi -me -g  --gcc --define=ccs --define="_FLASH" --diag_warning=225 --gen_func_subsections=on --ual

    (I left out all of the include path information for simplicity.  Check the device support example projects in controlSUITE)