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 makes *.cof file

There are some confusions while need simulation MSP430 by Proteus because it needs *.hex - file or *.cof - file. Following some partner of this forum suggest that change the output file *.out into *.cof  ---- This is enough to purpose. Here I make a small tip to do that change automatically.

From the Project Explorer, right click on active Project folder, you next choose following command: Show Build Settings... \ Build \ MSP430 Linker \ Basic Options. In the right side, you will see the line "Specify the output file name" and next is textbox with contente : "${ProjName}.out". Now, you change it into "${ProjName}.cof"; all click ok. and Ctrl+B to rebuild your Project and enjoy.

How interesting! :D.

  • Thanks for sharing this tip to others!

    ki

  • After doing as you mentioned, i used the .cof file for simulation in Proteus....it shows the following error...

    Unsupported COFF file type [magic=457F] [U1_MCUCORE]
    Failed to load COFF file '..\..\..\workspace_v6_1_3\led_blink\Debug\led_blink.COF' [U1_MCUCORE]
    Real Time Simulation failed to start.

    how can this be resolved?
  • First go to activ project folder and right click on it,
    then click on properties , a pop up box for properties of active project appears.
    Click on general in the side menu.
    See the text box next to output format.It can be usually set to
    1)Legacy COFF
    2)Eabi ELF
    Setting to Legacy COFF may show the following error message....
    As of version 15.3.0.STS of the MSP430 CG...on, please use MSP430 CGT version 4.4.x.
    Thus COFF file is not supported in this version of CCS.
    Therefore you must use Eabi ELF output file format.
    Proteus can use *.elf file format for simulation.
    Thus carry out the steps in Mr hung vu's post but instead change "Specify the output file name" text box to "${ProjName}.elf"