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/DRV8301-69M-KIT: Error after first build with IQmpy

Part Number: DRV8301-69M-KIT
Other Parts Discussed in Thread: MOTORWARE, DRV8301

Tool/software: Code Composer Studio

I am using CCS to work through the InstaSPIN labs and I keep running into an error condition. For example I can build and download for debug proj_lab02c. If I have just started CCS then it all works correctly and I can run the project as expected. However if I stop the execution and then rebuilt it will give me an error such as 

I can run Clean, Rebuild Project and neither clears the errors. I can shut down CCS and then reopen and it works fine again for the first launch. Can someone tell me how to solve this annoying issue? 

  • Hello,

    The link to your screenshot is broken. Can you repost it?

    If you continue to have issues, please see the below FAQ:

    https://e2e.ti.com/support/tools/ccs/f/81/t/821597?tisearch=e2e-sitesearch&keymatch=faq%3Atrue

    Thanks

    ki

  • Thank you for responding. Here is the image.

  • Can you post the build errors as it appears in the build console?

  • When I shut down the project debug there appears a Red x by the project icon. When I tell it to rebuild it does without errors but then when I try to start debug again it shows the dialog below.

  • Yes, it is because you have some build errors. Please post all the build output in the build console.

    Thanks

    ki

  • Ok when I open CCS, click on the project and then click the debug here is what I get in the build console.

    ***********First run


    **** Build of configuration Release for project proj_lab02c ****

    "C:\\ti\\ccs1010\\ccs\\utils\\bin\\gmake" -k all

    Building file: "C:/ti/motorware/motorware_1_01_00_18/sw/modules/ctrl/src/32b/ctrl.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1010/ccs/tools/compiler/ti-cgt-c2000_20.2.1.LTS/bin/cl2000" -v28 -ml -mt -O2 --include_path="C:/ti/motorware/motorware_1_01_00_18/sw/modules/hal/boards/drv8301kit_revD/f28x/f2806x/src/" --include_path="C:/ti/ccs1010/ccs/tools/compiler/ti-cgt-c2000_20.2.1.LTS/include" --include_path="C:/ti/motorware/motorware_1_01_00_18/sw/solutions/instaspin_foc/boards/drv8301kit_revD/f28x/f2806xF/src" --include_path="C:/ti/motorware/motorware_1_01_00_18" -g --define=FAST_ROM_V1p6 --diag_warning=225 --display_error_number --preproc_with_compile --preproc_dependency="ctrl.d_raw" "C:/ti/motorware/motorware_1_01_00_18/sw/modules/ctrl/src/32b/ctrl.c"
    Finished building: "C:/ti/motorware/motorware_1_01_00_18/sw/modules/ctrl/src/32b/ctrl.c"

    Building file: "C:/ti/motorware/motorware_1_01_00_18/sw/modules/hal/boards/drv8301kit_revD/f28x/f2806x/src/hal.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1010/ccs/tools/compiler/ti-cgt-c2000_20.2.1.LTS/bin/cl2000" -v28 -ml -mt -O2 --include_path="C:/ti/motorware/motorware_1_01_00_18/sw/modules/hal/boards/drv8301kit_revD/f28x/f2806x/src/" --include_path="C:/ti/ccs1010/ccs/tools/compiler/ti-cgt-c2000_20.2.1.LTS/include" --include_path="C:/ti/motorware/motorware_1_01_00_18/sw/solutions/instaspin_foc/boards/drv8301kit_revD/f28x/f2806xF/src" --include_path="C:/ti/motorware/motorware_1_01_00_18" -g --define=FAST_ROM_V1p6 --diag_warning=225 --display_error_number --preproc_with_compile --preproc_dependency="hal.d_raw" "C:/ti/motorware/motorware_1_01_00_18/sw/modules/hal/boards/drv8301kit_revD/f28x/f2806x/src/hal.c"
    Finished building: "C:/ti/motorware/motorware_1_01_00_18/sw/modules/hal/boards/drv8301kit_revD/f28x/f2806x/src/hal.c"

    Building file: "C:/ti/motorware/motorware_1_01_00_18/sw/solutions/instaspin_foc/src/proj_lab02c.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1010/ccs/tools/compiler/ti-cgt-c2000_20.2.1.LTS/bin/cl2000" -v28 -ml -mt -O2 --include_path="C:/ti/motorware/motorware_1_01_00_18/sw/modules/hal/boards/drv8301kit_revD/f28x/f2806x/src/" --include_path="C:/ti/ccs1010/ccs/tools/compiler/ti-cgt-c2000_20.2.1.LTS/include" --include_path="C:/ti/motorware/motorware_1_01_00_18/sw/solutions/instaspin_foc/boards/drv8301kit_revD/f28x/f2806xF/src" --include_path="C:/ti/motorware/motorware_1_01_00_18" -g --define=FAST_ROM_V1p6 --diag_warning=225 --display_error_number --preproc_with_compile --preproc_dependency="proj_lab02c.d_raw" "C:/ti/motorware/motorware_1_01_00_18/sw/solutions/instaspin_foc/src/proj_lab02c.c"
    Finished building: "C:/ti/motorware/motorware_1_01_00_18/sw/solutions/instaspin_foc/src/proj_lab02c.c"

    Building file: "C:/ti/motorware/motorware_1_01_00_18/sw/modules/user/src/32b/user.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1010/ccs/tools/compiler/ti-cgt-c2000_20.2.1.LTS/bin/cl2000" -v28 -ml -mt -O2 --include_path="C:/ti/motorware/motorware_1_01_00_18/sw/modules/hal/boards/drv8301kit_revD/f28x/f2806x/src/" --include_path="C:/ti/ccs1010/ccs/tools/compiler/ti-cgt-c2000_20.2.1.LTS/include" --include_path="C:/ti/motorware/motorware_1_01_00_18/sw/solutions/instaspin_foc/boards/drv8301kit_revD/f28x/f2806xF/src" --include_path="C:/ti/motorware/motorware_1_01_00_18" -g --define=FAST_ROM_V1p6 --diag_warning=225 --display_error_number --preproc_with_compile --preproc_dependency="user.d_raw" "C:/ti/motorware/motorware_1_01_00_18/sw/modules/user/src/32b/user.c"
    Finished building: "C:/ti/motorware/motorware_1_01_00_18/sw/modules/user/src/32b/user.c"

    Building target: "proj_lab02c.out"
    Invoking: C2000 Linker
    "C:/ti/ccs1010/ccs/tools/compiler/ti-cgt-c2000_20.2.1.LTS/bin/cl2000" -v28 -ml -mt -O2 -g --define=FAST_ROM_V1p6 --diag_warning=225 --display_error_number -z -m"proj_lab02c.map" --stack_size=0x3B0 --warn_sections -i"C:/ti/ccs1010/ccs/tools/compiler/ti-cgt-c2000_20.2.1.LTS/lib" -i"C:/ti/ccs1010/ccs/tools/compiler/ti-cgt-c2000_20.2.1.LTS/include" --reread_libs --priority --disable_auto_rts --diag_suppress=16002 --xml_link_info="proj_lab02c_linkInfo.xml" --rom_model -o "proj_lab02c.out" -lrts2800_ml.lib "C:/ti/motorware/motorware_1_01_00_18/sw/modules/fast/lib/32b/f28x/f2806x/2806xRevB_FastSpinROMSymbols.lib" "C:/ti/motorware/motorware_1_01_00_18/sw/modules/iqmath/lib/f28x/32b/IQmath.lib" "./CodeStartBranch.obj" "./adc.obj" "./clarke.obj" "./clk.obj" "./cpu.obj" "./ctrl.obj" "./drv8301.obj" "./filter_fo.obj" "./flash.obj" "./gpio.obj" "./hal.obj" "./ipark.obj" "./offset.obj" "./osc.obj" "./park.obj" "./pid.obj" "./pie.obj" "./pll.obj" "./proj_lab02c.obj" "./pwm.obj" "./pwr.obj" "./spi.obj" "./svgen.obj" "./timer.obj" "./traj.obj" "./usDelay.obj" "./user.obj" "./wdog.obj" "C:/ti/motorware/motorware_1_01_00_18/sw/ide/ccs/cmd/f2806x/f28069F_ram_lnk.cmd"
    <Linking>
    Finished building target: "proj_lab02c.out"

    **** Build Finished ****

    *********

    *****After running debug shutting down and then changing a file I save the minor change and click on debug again and this comes in the debug console


    **** Build of configuration Release for project proj_lab02c ****

    "C:\\ti\\ccs1010\\ccs\\utils\\bin\\gmake" -k all

    Building file: "C:/ti/motorware/motorware_1_01_00_18/sw/modules/ctrl/src/32b/ctrl.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1010/ccs/tools/compiler/ti-cgt-c2000_20.2.1.LTS/bin/cl2000" -v28 -ml -mt -O2 --include_path="C:/ti/motorware/motorware_1_01_00_18/sw/modules/hal/boards/drv8301kit_revD/f28x/f2806x/src/" --include_path="C:/ti/ccs1010/ccs/tools/compiler/ti-cgt-c2000_20.2.1.LTS/include" --include_path="C:/ti/motorware/motorware_1_01_00_18/sw/solutions/instaspin_foc/boards/drv8301kit_revD/f28x/f2806xF/src" --include_path="C:/ti/motorware/motorware_1_01_00_18" -g --define=FAST_ROM_V1p6 --diag_warning=225 --display_error_number --preproc_with_compile --preproc_dependency="ctrl.d_raw" "C:/ti/motorware/motorware_1_01_00_18/sw/modules/ctrl/src/32b/ctrl.c"
    Finished building: "C:/ti/motorware/motorware_1_01_00_18/sw/modules/ctrl/src/32b/ctrl.c"

    Building file: "C:/ti/motorware/motorware_1_01_00_18/sw/modules/hal/boards/drv8301kit_revD/f28x/f2806x/src/hal.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1010/ccs/tools/compiler/ti-cgt-c2000_20.2.1.LTS/bin/cl2000" -v28 -ml -mt -O2 --include_path="C:/ti/motorware/motorware_1_01_00_18/sw/modules/hal/boards/drv8301kit_revD/f28x/f2806x/src/" --include_path="C:/ti/ccs1010/ccs/tools/compiler/ti-cgt-c2000_20.2.1.LTS/include" --include_path="C:/ti/motorware/motorware_1_01_00_18/sw/solutions/instaspin_foc/boards/drv8301kit_revD/f28x/f2806xF/src" --include_path="C:/ti/motorware/motorware_1_01_00_18" -g --define=FAST_ROM_V1p6 --diag_warning=225 --display_error_number --preproc_with_compile --preproc_dependency="hal.d_raw" "C:/ti/motorware/motorware_1_01_00_18/sw/modules/hal/boards/drv8301kit_revD/f28x/f2806x/src/hal.c"
    Finished building: "C:/ti/motorware/motorware_1_01_00_18/sw/modules/hal/boards/drv8301kit_revD/f28x/f2806x/src/hal.c"

    Building file: "C:/ti/motorware/motorware_1_01_00_18/sw/solutions/instaspin_foc/src/proj_lab02c.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1010/ccs/tools/compiler/ti-cgt-c2000_20.2.1.LTS/bin/cl2000" -v28 -ml -mt -O2 --include_path="C:/ti/motorware/motorware_1_01_00_18/sw/modules/hal/boards/drv8301kit_revD/f28x/f2806x/src/" --include_path="C:/ti/ccs1010/ccs/tools/compiler/ti-cgt-c2000_20.2.1.LTS/include" --include_path="C:/ti/motorware/motorware_1_01_00_18/sw/solutions/instaspin_foc/boards/drv8301kit_revD/f28x/f2806xF/src" --include_path="C:/ti/motorware/motorware_1_01_00_18" -g --define=FAST_ROM_V1p6 --diag_warning=225 --display_error_number --preproc_with_compile --preproc_dependency="proj_lab02c.d_raw" "C:/ti/motorware/motorware_1_01_00_18/sw/solutions/instaspin_foc/src/proj_lab02c.c"
    Finished building: "C:/ti/motorware/motorware_1_01_00_18/sw/solutions/instaspin_foc/src/proj_lab02c.c"

    Building file: "C:/ti/motorware/motorware_1_01_00_18/sw/modules/user/src/32b/user.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1010/ccs/tools/compiler/ti-cgt-c2000_20.2.1.LTS/bin/cl2000" -v28 -ml -mt -O2 --include_path="C:/ti/motorware/motorware_1_01_00_18/sw/modules/hal/boards/drv8301kit_revD/f28x/f2806x/src/" --include_path="C:/ti/ccs1010/ccs/tools/compiler/ti-cgt-c2000_20.2.1.LTS/include" --include_path="C:/ti/motorware/motorware_1_01_00_18/sw/solutions/instaspin_foc/boards/drv8301kit_revD/f28x/f2806xF/src" --include_path="C:/ti/motorware/motorware_1_01_00_18" -g --define=FAST_ROM_V1p6 --diag_warning=225 --display_error_number --preproc_with_compile --preproc_dependency="user.d_raw" "C:/ti/motorware/motorware_1_01_00_18/sw/modules/user/src/32b/user.c"
    Finished building: "C:/ti/motorware/motorware_1_01_00_18/sw/modules/user/src/32b/user.c"

    Building target: "proj_lab02c.out"
    Invoking: C2000 Linker
    "C:/ti/ccs1010/ccs/tools/compiler/ti-cgt-c2000_20.2.1.LTS/bin/cl2000" -v28 -ml -mt -O2 -g --define=FAST_ROM_V1p6 --diag_warning=225 --display_error_number -z -m"proj_lab02c.map" --stack_size=0x3B0 --warn_sections -i"C:/ti/ccs1010/ccs/tools/compiler/ti-cgt-c2000_20.2.1.LTS/lib" -i"C:/ti/ccs1010/ccs/tools/compiler/ti-cgt-c2000_20.2.1.LTS/include" --reread_libs --priority --disable_auto_rts --diag_suppress=16002 --xml_link_info="proj_lab02c_linkInfo.xml" --rom_model -o "proj_lab02c.out" -lrts2800_ml.lib "C:/ti/motorware/motorware_1_01_00_18/sw/modules/fast/lib/32b/f28x/f2806x/2806xRevB_FastSpinROMSymbols.lib" "C:/ti/motorware/motorware_1_01_00_18/sw/modules/iqmath/lib/f28x/32b/IQmath.lib" "./CodeStartBranch.obj" "./adc.obj" "./clarke.obj" "./clk.obj" "./cpu.obj" "./ctrl.obj" "./drv8301.obj" "./filter_fo.obj" "./flash.obj" "./gpio.obj" "./hal.obj" "./ipark.obj" "./offset.obj" "./osc.obj" "./park.obj" "./pid.obj" "./pie.obj" "./pll.obj" "./proj_lab02c.obj" "./pwm.obj" "./pwr.obj" "./spi.obj" "./svgen.obj" "./timer.obj" "./traj.obj" "./usDelay.obj" "./user.obj" "./wdog.obj" "C:/ti/motorware/motorware_1_01_00_18/sw/ide/ccs/cmd/f2806x/f28069F_ram_lnk.cmd"
    <Linking>
    Finished building target: "proj_lab02c.out"

    **** Build Finished ****

    And the dialog pops up that I sent earlier.

  • Terry Harrison said:
    Here is the image.

    I think the could not be resolved errors are coming from the Eclipse CODAN static code analyser, rather than errors from the compiler. The build output you showed didn't have any errors from compiler.
    The errors from the Eclipse CODAN analysis can give the "Errors exist in required project(s)" dialog on attempting to start a debug session.

    By default CODAN is disabled in CCS, but maybe CODAN has been enabled in your workspace / project. See Code Analysis in the Code Composer Studio User’s Guide for more information.

  • Yes, it is likely coming from CODAN.

    Check the "Type" column of the Problems view. If it appears as a "Semantic Error", then it is a CODAN error

    Thanks

    ki

  • Ok thanks let me see if I can figure out how to cut off this CODAN. Sorry, I did not get notified that you had responded so I did not see this until tonight. Is it safe to believe that when it does compile and run even with that warning that it really ran the updated code? 

  • Yes, if the only errors were CODAN errors.