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.

TMS320F28069M: I cannot build or load the flash_f28069 example from C2000ware

Part Number: TMS320F28069M
Other Parts Discussed in Thread: C2000WARE

Hello,

This all started with my attempt to build a release version (run from FLASH) of some code to
communicate between a motor control board and an LCD, using the SLIP protocol.
I finally got it to load the program into Flash, but could not get it to run from Flash,
independent of the Debugger.

The fellow that was helping me out (Gus Martinez) suggested that we take a step back and
try to get the flash_f28069 example loaded and running on my board. That didn't work out so well,
so the next plan of attack was to see if the flash_f28069 example could be run on my evaluation board
(the DRV8301-69M-KIT).

I tried running the flash_f28069 project on the Eval board, but the compiler was issuing an error
(whose description is blank) that would move around each time I compiled it, and would even tag
comment lines as errors.

Tried compiling it from a new workspace. Same problem.

Thinking that maybe the flash_f28069 example had gotten corrupted, or that perhaps I had made some
crazy change to it, Gus suggested that I update C2000Ware, which would provide me with a "fresh"
instance of the code.

Well, now the project no longer has any build options.

Here's what I wrote to Gus:    

     By the way, the whole program is riddled with errors, so I can't compile. There are
     no paths to the include files, like headers, etc.. With the old version of the project,
     if I look under Properties --> Build --> C2000 Compiler, there's a whole list of paths
     where the compiler can look for includes. In the new version, under Properties --> Build,
     there is nothing, not even a C2000 Compiler subheading. I can add those paths.
     It's just a pain, especially when they were just included before...

I attempted to import the project into my workspace and got the following message:

    Import failed for project 'Example_2806xFlash' because its compiler definition is
     not available.
     Please install the C2000 v21.6 compiler before importing this project:
     - See 'Help > Install New Software' and select 'Code Generation Tools
     Updates' to check if this compiler is available through a CCS update.
     - Visit CCS App Center to get the latest compiler support.
     - Or download and install the compiler
     [http://software-dl.ti.com/codegen/non-esd/downloads],
     then register it with CCS through 'Preferences > CCS > Build > Compilers'

I can get as far as 'Code Generation Tools Updates', but there is a huge list. Not sure
which one to install or update. There's a C2800 v21.6.0 in the list, but not a C2000 v21.6,
as the message suggests.

Gus's most recent message to me is as follows:

      Dave,

      I am really sorry you are facing these issues. [ ] Not having the build options makes no sense.

      Please open a new forum post, state that you cannot build or
      load the flash_f28069 example from C2000ware. Somebody more familiar with
      the software should be able to help you. Let's focus on getting this sorted out before
      continuing on getting your code to boot from flash.

Can someone please help?

Thanks,

Dave

  • here's a C2800 v21.6.0 in the list, but not a C2000 v21.6,
    as the message suggests.

    The C2800 one should be what you need.

    I tried running the flash_f28069 project on the Eval board, but the compiler was issuing an error
    (whose description is blank) that would move around each time I compiled it, and would even tag
    comment lines as errors.

    This sounds odd. Can you provide a screenshot of this?

    Please also specify the exact CCS version you are using.

    Thanks

    ki

  • Hi Ki,

    Thanks for the quick reply. Here are some screenshots:

    The Original error shown above.

    Note error marked as line 318 ( I had to remove a lot of whitespace to get a good screenshot, but otherwise the subroutine is unchanged from the original.

    Comment out nearly everything, build, and the error marker moves, but remains in subroutine, marking a comment.

    Remove entire subroutine and error marker moves down into the next function - epwm1_timer_isr.

    I'm using CCS version 10.3.1.00003

    OS: Windows 10, v.10.0, x86_64 / win32
    Java version: 1.8.0_144

    thanks,

    Dave

  • Can you also post all the messages in the build console? You can copy and paste to a text file and then attach the file to this thread.

    Thanks

    ki

  • Hi Ki,

    Here it is (attached). It points out more errors than the "Problems" tab. I didn't expect to see that.

    Thanks,

    Dave

    **** Clean-only build of configuration Debug for project Example_2806xFlash ****
    
    "C:\\ti\\ccs1031\\ccs\\utils\\bin\\gmake" -k clean 
     
    DEL /F  "Example_2806xFlash.hex"  "Example_2806xFlash.out" 
    DEL /F "Example_28069Flash.obj" "F2806x_CSMPasswords.obj" "F2806x_CodeStartBranch.obj" "F2806x_DefaultIsr.obj" "F2806x_EPwm.obj" "F2806x_GlobalVariableDefs.obj" "F2806x_PieCtrl.obj" "F2806x_PieVect.obj" "F2806x_SysCtrl.obj" "F2806x_usDelay.obj" 
    DEL /F "Example_28069Flash.d" "F2806x_DefaultIsr.d" "F2806x_EPwm.d" "F2806x_GlobalVariableDefs.d" "F2806x_PieCtrl.d" "F2806x_PieVect.d" "F2806x_SysCtrl.d" 
    DEL /F "F2806x_CSMPasswords.d" "F2806x_CodeStartBranch.d" "F2806x_usDelay.d" 
    Could Not Find C:\ti\C2000Ware_3_04_00_00_Software\device_support\f2806x\examples\c28\flash_f28069\Debug\Example_2806xFlash.hex
    Could Not Find C:\ti\C2000Ware_3_04_00_00_Software\device_support\f2806x\examples\c28\flash_f28069\Debug\F2806x_CSMPasswords.d
    Finished clean
     
    
    **** Build Finished ****
    
    **** Build of configuration Debug for project Example_2806xFlash ****
    
    "C:\\ti\\ccs1031\\ccs\\utils\\bin\\gmake" -k all 
     
    Building file: "../Example_28069Flash.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1031/ccs/tools/compiler/ti-cgt-c2000_20.2.4.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla0 --float_support=fpu32 --vcu_support=vcu0 --include_path="C:/ti/ccs1031/ccs/tools/compiler/ti-cgt-c2000_20.2.4.LTS/include" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/device_support/f2806x/headers/include" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/device_support/f2806x/common/include" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/libraries/math/IQmath/c28/include" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/libraries/math/FPUfastRTS/c28/include" --define="_DEBUG" --define="LARGE_MODEL" -g --diag_suppress=10063 --diag_warning=225 --issue_remarks --verbose_diagnostics --quiet --preproc_with_compile --preproc_dependency="Example_28069Flash.d_raw"  "../Example_28069Flash.c"
    1 Assembly Error, No Assembly Warnings
     
    >> Compilation failure
    subdir_rules.mk:9: recipe for target 'Example_28069Flash.obj' failed
    "C:\Users\dreagan\AppData\Local\Temp\{16127B50-EF5D-488C-AB03-A54985D98015}", ERROR!   at line 328:
     [E0002]
             Invalid mnemonic specification
    	 ERTM
     
     
    Errors in Source - Assembler Aborted
    gmake: *** [Example_28069Flash.obj] Error 1
    Building file: "C:/ti/C2000Ware_3_04_00_00_Software/device_support/f2806x/common/source/F2806x_CSMPasswords.asm"
    Invoking: C2000 Compiler
    "C:/ti/ccs1031/ccs/tools/compiler/ti-cgt-c2000_20.2.4.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla0 --float_support=fpu32 --vcu_support=vcu0 --include_path="C:/ti/ccs1031/ccs/tools/compiler/ti-cgt-c2000_20.2.4.LTS/include" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/device_support/f2806x/headers/include" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/device_support/f2806x/common/include" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/libraries/math/IQmath/c28/include" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/libraries/math/FPUfastRTS/c28/include" --define="_DEBUG" --define="LARGE_MODEL" -g --diag_suppress=10063 --diag_warning=225 --issue_remarks --verbose_diagnostics --quiet --preproc_with_compile --preproc_dependency="F2806x_CSMPasswords.d_raw"  "C:/ti/C2000Ware_3_04_00_00_Software/device_support/f2806x/common/source/F2806x_CSMPasswords.asm"
    Finished building: "C:/ti/C2000Ware_3_04_00_00_Software/device_support/f2806x/common/source/F2806x_CSMPasswords.asm"
     
    Building file: "C:/ti/C2000Ware_3_04_00_00_Software/device_support/f2806x/common/source/F2806x_CodeStartBranch.asm"
    Invoking: C2000 Compiler
    "C:/ti/ccs1031/ccs/tools/compiler/ti-cgt-c2000_20.2.4.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla0 --float_support=fpu32 --vcu_support=vcu0 --include_path="C:/ti/ccs1031/ccs/tools/compiler/ti-cgt-c2000_20.2.4.LTS/include" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/device_support/f2806x/headers/include" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/device_support/f2806x/common/include" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/libraries/math/IQmath/c28/include" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/libraries/math/FPUfastRTS/c28/include" --define="_DEBUG" --define="LARGE_MODEL" -g --diag_suppress=10063 --diag_warning=225 --issue_remarks --verbose_diagnostics --quiet --preproc_with_compile --preproc_dependency="F2806x_CodeStartBranch.d_raw"  "C:/ti/C2000Ware_3_04_00_00_Software/device_support/f2806x/common/source/F2806x_CodeStartBranch.asm"
    Finished building: "C:/ti/C2000Ware_3_04_00_00_Software/device_support/f2806x/common/source/F2806x_CodeStartBranch.asm"
     
    Building file: "C:/ti/C2000Ware_3_04_00_00_Software/device_support/f2806x/common/source/F2806x_DefaultIsr.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1031/ccs/tools/compiler/ti-cgt-c2000_20.2.4.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla0 --float_support=fpu32 --vcu_support=vcu0 --include_path="C:/ti/ccs1031/ccs/tools/compiler/ti-cgt-c2000_20.2.4.LTS/include" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/device_support/f2806x/headers/include" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/device_support/f2806x/common/include" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/libraries/math/IQmath/c28/include" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/libraries/math/FPUfastRTS/c28/include" --define="_DEBUG" --define="LARGE_MODEL" -g --diag_suppress=10063 --diag_warning=225 --issue_remarks --verbose_diagnostics --quiet --preproc_with_compile --preproc_dependency="F2806x_DefaultIsr.d_raw"  "C:/ti/C2000Ware_3_04_00_00_Software/device_support/f2806x/common/source/F2806x_DefaultIsr.c"
    Finished building: "C:/ti/C2000Ware_3_04_00_00_Software/device_support/f2806x/common/source/F2806x_DefaultIsr.c"
     
    Building file: "C:/ti/C2000Ware_3_04_00_00_Software/device_support/f2806x/common/source/F2806x_EPwm.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1031/ccs/tools/compiler/ti-cgt-c2000_20.2.4.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla0 --float_support=fpu32 --vcu_support=vcu0 --include_path="C:/ti/ccs1031/ccs/tools/compiler/ti-cgt-c2000_20.2.4.LTS/include" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/device_support/f2806x/headers/include" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/device_support/f2806x/common/include" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/libraries/math/IQmath/c28/include" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/libraries/math/FPUfastRTS/c28/include" --define="_DEBUG" --define="LARGE_MODEL" -g --diag_suppress=10063 --diag_warning=225 --issue_remarks --verbose_diagnostics --quiet --preproc_with_compile --preproc_dependency="F2806x_EPwm.d_raw"  "C:/ti/C2000Ware_3_04_00_00_Software/device_support/f2806x/common/source/F2806x_EPwm.c"
     
    >> Compilation failure
    subdir_rules.mk:37: recipe for target 'F2806x_EPwm.obj' failed
    "C:/ti/C2000Ware_3_04_00_00_Software/device_support/f2806x/common/source/F2806x
              _EPwm.c", line 103: error: identifier "EALLOW" is undefined
          EALLOW;
          ^
     
    "C:/ti/C2000Ware_3_04_00_00_Software/device_support/f2806x/common/source/F2806x
              _EPwm.c", line 122: error: identifier "EDIS" is undefined
          EDIS;
          ^
     
    "C:/ti/C2000Ware_3_04_00_00_Software/device_support/f2806x/common/source/F2806x
              _EPwm.c", line 133: error: identifier "EALLOW" is undefined
          EALLOW;
          ^
     
    "C:/ti/C2000Ware_3_04_00_00_Software/device_support/f2806x/common/source/F2806x
              _EPwm.c", line 153: error: identifier "EDIS" is undefined
          EDIS;
          ^
     
    "C:/ti/C2000Ware_3_04_00_00_Software/device_support/f2806x/common/source/F2806x
              _EPwm.c", line 164: error: identifier "EALLOW" is undefined
         EALLOW;
         ^
     
    "C:/ti/C2000Ware_3_04_00_00_Software/device_support/f2806x/common/source/F2806x
              _EPwm.c", line 182: error: identifier "EDIS" is undefined
          EDIS;
          ^
     
    "C:/ti/C2000Ware_3_04_00_00_Software/device_support/f2806x/common/source/F2806x
              _EPwm.c", line 189: error: identifier "EALLOW" is undefined
          EALLOW;
          ^
     
    "C:/ti/C2000Ware_3_04_00_00_Software/device_support/f2806x/common/source/F2806x
              _EPwm.c", line 209: error: identifier "EDIS" is undefined
          EDIS;
          ^
     
    "C:/ti/C2000Ware_3_04_00_00_Software/device_support/f2806x/common/source/F2806x
              _EPwm.c", line 220: error: identifier "EALLOW" is undefined
          EALLOW;
          ^
     
    "C:/ti/C2000Ware_3_04_00_00_Software/device_support/f2806x/common/source/F2806x
              _EPwm.c", line 240: error: identifier "EDIS" is undefined
          EDIS;
          ^
     
    "C:/ti/C2000Ware_3_04_00_00_Software/device_support/f2806x/common/source/F2806x
              _EPwm.c", line 251: error: identifier "EALLOW" is undefined
          EALLOW;
          ^
     
    "C:/ti/C2000Ware_3_04_00_00_Software/device_support/f2806x/common/source/F2806x
              _EPwm.c", line 270: error: identifier "EDIS" is undefined
          EDIS;
          ^
     
    "C:/ti/C2000Ware_3_04_00_00_Software/device_support/f2806x/common/source/F2806x
              _EPwm.c", line 281: error: identifier "EALLOW" is undefined
          EALLOW;
          ^
     
    "C:/ti/C2000Ware_3_04_00_00_Software/device_support/f2806x/common/source/F2806x
              _EPwm.c", line 309: error: identifier "EDIS" is undefined
          EDIS;
          ^
     
    "C:/ti/C2000Ware_3_04_00_00_Software/device_support/f2806x/common/source/F2806x
              _EPwm.c", line 320: error: identifier "EALLOW" is undefined
          EALLOW;
          ^
     
    "C:/ti/C2000Ware_3_04_00_00_Software/device_support/f2806x/common/source/F2806x
              _EPwm.c", line 343: error: identifier "EDIS" is undefined
          EDIS;
          ^
     
    "C:/ti/C2000Ware_3_04_00_00_Software/device_support/f2806x/common/source/F2806x
              _EPwm.c", line 438: error: identifier "EALLOW" is undefined
          EALLOW;
          ^
     
    "C:/ti/C2000Ware_3_04_00_00_Software/device_support/f2806x/common/source/F2806x
              _EPwm.c", line 497: error: identifier "EDIS" is undefined
          EDIS;
          ^
     
    18 errors detected in the compilation of "C:/ti/C2000Ware_3_04_00_00_Software/device_support/f2806x/common/source/F2806x_EPwm.c".
    gmake: *** [F2806x_EPwm.obj] Error 1
    Building file: "C:/ti/C2000Ware_3_04_00_00_Software/device_support/f2806x/headers/source/F2806x_GlobalVariableDefs.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1031/ccs/tools/compiler/ti-cgt-c2000_20.2.4.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla0 --float_support=fpu32 --vcu_support=vcu0 --include_path="C:/ti/ccs1031/ccs/tools/compiler/ti-cgt-c2000_20.2.4.LTS/include" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/device_support/f2806x/headers/include" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/device_support/f2806x/common/include" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/libraries/math/IQmath/c28/include" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/libraries/math/FPUfastRTS/c28/include" --define="_DEBUG" --define="LARGE_MODEL" -g --diag_suppress=10063 --diag_warning=225 --issue_remarks --verbose_diagnostics --quiet --preproc_with_compile --preproc_dependency="F2806x_GlobalVariableDefs.d_raw"  "C:/ti/C2000Ware_3_04_00_00_Software/device_support/f2806x/headers/source/F2806x_GlobalVariableDefs.c"
    Finished building: "C:/ti/C2000Ware_3_04_00_00_Software/device_support/f2806x/headers/source/F2806x_GlobalVariableDefs.c"
     
    Building file: "C:/ti/C2000Ware_3_04_00_00_Software/device_support/f2806x/common/source/F2806x_PieCtrl.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1031/ccs/tools/compiler/ti-cgt-c2000_20.2.4.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla0 --float_support=fpu32 --vcu_support=vcu0 --include_path="C:/ti/ccs1031/ccs/tools/compiler/ti-cgt-c2000_20.2.4.LTS/include" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/device_support/f2806x/headers/include" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/device_support/f2806x/common/include" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/libraries/math/IQmath/c28/include" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/libraries/math/FPUfastRTS/c28/include" --define="_DEBUG" --define="LARGE_MODEL" -g --diag_suppress=10063 --diag_warning=225 --issue_remarks --verbose_diagnostics --quiet --preproc_with_compile --preproc_dependency="F2806x_PieCtrl.d_raw"  "C:/ti/C2000Ware_3_04_00_00_Software/device_support/f2806x/common/source/F2806x_PieCtrl.c"
    Finished building: "C:/ti/C2000Ware_3_04_00_00_Software/device_support/f2806x/common/source/F2806x_PieCtrl.c"
     
    Building file: "C:/ti/C2000Ware_3_04_00_00_Software/device_support/f2806x/common/source/F2806x_PieVect.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1031/ccs/tools/compiler/ti-cgt-c2000_20.2.4.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla0 --float_support=fpu32 --vcu_support=vcu0 --include_path="C:/ti/ccs1031/ccs/tools/compiler/ti-cgt-c2000_20.2.4.LTS/include" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/device_support/f2806x/headers/include" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/device_support/f2806x/common/include" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/libraries/math/IQmath/c28/include" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/libraries/math/FPUfastRTS/c28/include" --define="_DEBUG" --define="LARGE_MODEL" -g --diag_suppress=10063 --diag_warning=225 --issue_remarks --verbose_diagnostics --quiet --preproc_with_compile --preproc_dependency="F2806x_PieVect.d_raw"  "C:/ti/C2000Ware_3_04_00_00_Software/device_support/f2806x/common/source/F2806x_PieVect.c"
    Finished building: "C:/ti/C2000Ware_3_04_00_00_Software/device_support/f2806x/common/source/F2806x_PieVect.c"
     
    Building file: "C:/ti/C2000Ware_3_04_00_00_Software/device_support/f2806x/common/source/F2806x_SysCtrl.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1031/ccs/tools/compiler/ti-cgt-c2000_20.2.4.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla0 --float_support=fpu32 --vcu_support=vcu0 --include_path="C:/ti/ccs1031/ccs/tools/compiler/ti-cgt-c2000_20.2.4.LTS/include" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/device_support/f2806x/headers/include" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/device_support/f2806x/common/include" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/libraries/math/IQmath/c28/include" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/libraries/math/FPUfastRTS/c28/include" --define="_DEBUG" --define="LARGE_MODEL" -g --diag_suppress=10063 --diag_warning=225 --issue_remarks --verbose_diagnostics --quiet --preproc_with_compile --preproc_dependency="F2806x_SysCtrl.d_raw"  "C:/ti/C2000Ware_3_04_00_00_Software/device_support/f2806x/common/source/F2806x_SysCtrl.c"
    Finished building: "C:/ti/C2000Ware_3_04_00_00_Software/device_support/f2806x/common/source/F2806x_SysCtrl.c"
     
    Building file: "C:/ti/C2000Ware_3_04_00_00_Software/device_support/f2806x/common/source/F2806x_usDelay.asm"
    Invoking: C2000 Compiler
    "C:/ti/ccs1031/ccs/tools/compiler/ti-cgt-c2000_20.2.4.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla0 --float_support=fpu32 --vcu_support=vcu0 --include_path="C:/ti/ccs1031/ccs/tools/compiler/ti-cgt-c2000_20.2.4.LTS/include" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/device_support/f2806x/headers/include" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/device_support/f2806x/common/include" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/libraries/math/IQmath/c28/include" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/libraries/math/FPUfastRTS/c28/include" --define="_DEBUG" --define="LARGE_MODEL" -g --diag_suppress=10063 --diag_warning=225 --issue_remarks --verbose_diagnostics --quiet --preproc_with_compile --preproc_dependency="F2806x_usDelay.d_raw"  "C:/ti/C2000Ware_3_04_00_00_Software/device_support/f2806x/common/source/F2806x_usDelay.asm"
    Finished building: "C:/ti/C2000Ware_3_04_00_00_Software/device_support/f2806x/common/source/F2806x_usDelay.asm"
     
    gmake: Target 'all' not remade because of errors.
    
    **** Build Finished ****
    

  • yes there are several assembler errors. You will need to resolve those errors to complete the build.

    I will bring this thread to the attention of our compiler expert for more input.

    Thanks

    ki

  • Thank you Ki!

  • Thought I'd let you know...

    I just downloaded and installed the more recent version of the Compiler - C2800 v21.6.0.

    Tried building the flash_f28069 example. Same results.

    Thanks,

    Dave

  • For the source file F2806x_EPwm.c, please follow the directions in the article How to Submit a Compiler Test Case.

    Thanks and regards,

    -George

  • Hi George,

    I've attached the F2806x_EPwm.pp compiler test case file. Had to add a .txt extension on it, since the site would not allow me to include it with the .pp extension.

    The compiler version is C2800 v21.6.0.

    The Build Settings are:

    -v28 -ml -mt --cla_support=cla0 --float_support=fpu32 --vcu_support=vcu0 --include_path="C:/ti/ccs1031/ccs/tools/compiler/ti-cgt-c2000_20.2.4.LTS/include" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/device_support/f2806x/headers/include" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/device_support/f2806x/common/include" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/libraries/math/IQmath/c28/include" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/libraries/math/FPUfastRTS/c28/include" --define="_DEBUG" --define="LARGE_MODEL" -g --preproc_with_comment --preproc_with_compile --diag_suppress=10063 --diag_warning=225 --issue_remarks --verbose_diagnostics --quiet

    Thanks,

    Dave

    F2806x_EPwm.pp.txt

  • Sorry - the compiler version is actually TI v20.2.1.LTS [TI v20.2.4.LTS], as listed in the project properties, General Tab.

  • It appears you made these changes to the header file F2806x_Device.h ...

    //#define  DINT   __asm(" setc INTM")
    // A lot of thr defines here are repeated in cpu.h, so commenting some out for now.
    //#define  ERTM   __asm(" clrc DBGM")
    //#define  DRTM   __asm(" setc DBGM")
    //#define  EALLOW __asm(" EALLOW")
    //#define  EDIS   __asm(" EDIS")
    //#define  ESTOP0 __asm(" ESTOP0")
    

    Because those lines are commented out, code like this ...

        EALLOW;

    ... does not compile.

    Thanks and regards,

    -George

  • Thanks George!

    I think I remember it now. I was trying to hunt down some other problem, tried this & then forgot about it.

    Best Regards,

    Dave