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/TMS320F28335: How to generate .out file?

Part Number: TMS320F28335

Tool/software: Code Composer Studio

Hello,

        I have made a schematic in PSIM, generated its C-code and using CCS to burn it into my TMS320F28335. However, the ram debug folder is empty., so that I am unable to see any .out file to load into the controller. 

Can you please guide how the .out file is generated??

Thanks.

  • As can be seen, the ramdebug folder is empty. Maybe there is some setting to generate .out file that I am missing. Thanks in advance. 

  • Does the application build in CCS? In the CCS Edit perspective if you select the project and hit the build button (alternatively go to Project->Build Project or right click on the project and select Build Project, it will call the codegen tools which will create a .out if successful.

    I don't think your project as it's setup now will build successfully though. You have a bunch of conflicting cmd files when you really only need F2833x_Headers_nonBIOS.cmd and one of the others based on whether you want to load code to flash or RAM.

    Did you create this project or is this an output from PSIM? Or is the C-code the only part that came from PSIM?

    Whitney

  • Thanks Whitney for your reply. I have tried build project by all ways you told me but the .out file is not there.

    I have created the overall schematic in PSIM and built the project using PSIM generate code option. So, all these files have been created by PSIM. 

  • Unfortunately, I'm not very familiar with PSIM so I don't know what kind of code it generates. Did you get any error messages when you tried the build? Anything show up in the build console?

    What if you create your own CCS project by going to File->New->CCS Project and then add your PSIM code to that project? The project you have in your workspace currently is just a generic C project which I imagine isn't going to be setup by default to use TI compilers.

    Whitney

  • You are right. There are errors. See below:-


    **** Build of configuration 1_RamDebug for project single_phase ****

    "C:\\ti\\ccs910\\ccs\\utils\\bin\\gmake" -k -j 4 all -O

    Building file: "D:/Google drive/Research work/Typhoon hardware/single phase (C code)/single_phase.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs910/ccs/tools/compiler/ti-cgt-c2000_18.12.2.LTS/bin/cl2000" -v28 -ml --float_support=fpu32 --include_path="D:/Google drive/Research work/Typhoon hardware/single phase (C code)/single_phase" --include_path="/packages/ti/xdais" --include_path="C:/ti/ccs910/ccs/tools/compiler/ti-cgt-c2000_18.12.2.LTS/include" --define=_DEBUG --define=LARGE_MODEL -g --diag_warning=225 --diag_wrap=off --display_error_number --issue_remarks --abi=coffabi -k --asm_directory="D:/Google drive/Research work/Typhoon hardware/single phase (C code)/RamDebug" --preproc_with_compile --preproc_dependency="single_phase.d_raw" --obj_directory="D:/Google drive/Research work/Typhoon hardware/single phase (C code)/single_phase/../RamDebug" "D:/Google drive/Research work/Typhoon hardware/single phase (C code)/single_phase.c"

    >> Compilation failure
    subdir_rules.mk:9: recipe for target 'D:/Google drive/Research work/Typhoon hardware/single phase (C code)/RamDebug/single_phase.obj' failed
    "D:\Google drive\Research work\Typhoon hardware\single phase (C code)\PS_bios.h", line 571: error #29: expected an expression
    "D:\Google drive\Research work\Typhoon hardware\single phase (C code)\PS_bios.h", line 571: error #18: expected a ")"
    "D:\Google drive\Research work\Typhoon hardware\single phase (C code)\PS_bios.h", line 571: error #66: expected a ";"
    "D:\Google drive\Research work\Typhoon hardware\single phase (C code)\PS_bios.h", line 568: remark #880-D: parameter "pwmNo" was never referenced
    "D:\Google drive\Research work\Typhoon hardware\single phase (C code)\PS_bios.h", line 579: error #29: expected an expression
    "D:\Google drive\Research work\Typhoon hardware\single phase (C code)\PS_bios.h", line 579: error #18: expected a ")"
    "D:\Google drive\Research work\Typhoon hardware\single phase (C code)\PS_bios.h", line 579: error #66: expected a ";"
    "D:\Google drive\Research work\Typhoon hardware\single phase (C code)\PS_bios.h", line 580: error #29: expected an expression
    "D:\Google drive\Research work\Typhoon hardware\single phase (C code)\PS_bios.h", line 580: error #18: expected a ")"
    "D:\Google drive\Research work\Typhoon hardware\single phase (C code)\PS_bios.h", line 580: error #66: expected a ";"
    "D:\Google drive\Research work\Typhoon hardware\single phase (C code)\PS_bios.h", line 581: error #29: expected an expression
    "D:\Google drive\Research work\Typhoon hardware\single phase (C code)\PS_bios.h", line 581: error #18: expected a ")"
    "D:\Google drive\Research work\Typhoon hardware\single phase (C code)\PS_bios.h", line 581: error #66: expected a ";"
    "D:\Google drive\Research work\Typhoon hardware\single phase (C code)\PS_bios.h", line 583: error #29: expected an expression
    "D:\Google drive\Research work\Typhoon hardware\single phase (C code)\PS_bios.h", line 583: error #18: expected a ")"
    "D:\Google drive\Research work\Typhoon hardware\single phase (C code)\PS_bios.h", line 583: error #66: expected a ";"
    "D:\Google drive\Research work\Typhoon hardware\single phase (C code)\PS_bios.h", line 584: error #29: expected an expression
    "D:\Google drive\Research work\Typhoon hardware\single phase (C code)\PS_bios.h", line 584: error #18: expected a ")"
    "D:\Google drive\Research work\Typhoon hardware\single phase (C code)\PS_bios.h", line 584: error #66: expected a ";"
    "D:\Google drive\Research work\Typhoon hardware\single phase (C code)\PS_bios.h", line 585: error #29: expected an expression
    "D:\Google drive\Research work\Typhoon hardware\single phase (C code)\PS_bios.h", line 585: error #18: expected a ")"
    "D:\Google drive\Research work\Typhoon hardware\single phase (C code)\PS_bios.h", line 585: error #66: expected a ";"
    21 errors detected in the compilation of "D:/Google drive/Research work/Typhoon hardware/single phase (C code)/single_phase.c".
    gmake: *** [D:/Google drive/Research work/Typhoon hardware/single phase (C code)/RamDebug/single_phase.obj] Error 1
    gmake: Target 'all' not remade because of errors.

    **** Build Finished ****

    Can you give me some directions how to proceed in this case? 

  •  .

    I am not using my own code. Its the code I get from PSIM working model. The syntax errors are there that need to be removed prior to build.

  • Hi Whitney,

                      The issue was with a bug in the psim version I was using. Now its resolved. Thank you for the efforts.