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.

BOOSTXL-DRV8301: project_lab05b example using to run BLDC motor are not

Part Number: BOOSTXL-DRV8301
Other Parts Discussed in Thread: MOTORWARE, DRV8301, TMS320F28027F, C2000WARE, CONTROLSUITE

Tool/software:

I am using mc is tms320f28027f and drv8301 to run BLDC motor. I have taken lab example from motorware_1_01-00_18;/sw/solustions;/instaspin_foc/boards/bootxldrv8301_revB/f28x/f2802xF/projects/ccs/project_lab05b.

In this project_lab05b example using to run BLDC motor are not. And also any changes in setting or header files or source files.

Give any suggestions on.

In case any changes tell to me.

And also taken another example from ControlSuit/development_skits/DRV830x-HC-C2-Kit-v105/GUI-project-InstaSPIN-BLDC. To run BLDC motor are not.

  • Hi Kishor,

    Thank you for your question.

    Do you receive any fault or error when trying to run this lab? And can you provide the exact operating conditions during this test?

    Best Regards,

    -Joshua

  • Hi Joshua Maize

    I run Lab5b project but display the error occur. To show below

    How to resolve it. 

    My BLDC motor is A2212/13T

     I have changes the configuration in User.h to show below

    #define My_Motor                    104

    #define USER_MOTOR My_Motor

    #elif (USER_MOTOR == My_Motor)
    #define USER_MOTOR_TYPE MOTOR_Type_Pm
    //#define USER_MOTOR_NUM_POLE_PAIRS (2)
    #define USER_MOTOR_NUM_POLE_PAIRS (4)
    #define USER_MOTOR_Rr (NULL)
    #define USER_MOTOR_Rs (0.3918252)
    #define USER_MOTOR_Ls_d (0.00023495)
    #define USER_MOTOR_Ls_q (0.00023495)
    #define USER_MOTOR_RATED_FLUX (0.03955824)
    #define USER_MOTOR_MAGNETIZING_CURRENT (NULL)


    //#define USER_MOTOR_RES_EST_CURRENT (3.0)
    //#define USER_MOTOR_IND_EST_CURRENT (-0.5)
    //#define USER_MOTOR_MAX_CURRENT (20.0)
    //#define USER_MOTOR_MAX_CURRENT (20.0)
    //#define USER_MOTOR_FLUX_EST_FREQ_Hz (20.0)


    #define USER_MOTOR_RES_EST_CURRENT (2.0) // A - 10-30% of rated current of the motor

    #define USER_MOTOR_IND_EST_CURRENT (-1.5) // A - 10-30% of rated current of the motor, just enough to enable rotation

    #define USER_MOTOR_MAX_CURRENT (20.0) // A - 30~150% of rated current of the motor

    #define USER_MOTOR_FLUX_EST_FREQ_Hz (40.0) // Hz - 10~30% rated frequency of the motor

    the above  values are any changes are not.

  • Hi Kishor,

    Thank you for the additional information, please allow for time this week to look into appropriate next steps to help resolve this. 

    Thank you and Best Regards,

    -Joshua 

  • Creating new application without using project lab examples. If it is possible are not. If possible please give me code and also any suggestions on that.

    How to start develop the code ?

  • I am using mc is tms320f28027f and drv8301 to run BLDC motor. I have taken lab example from motorware_1_01-00_18;/sw/solustions;/instaspin_foc/boards/bootxldrv8301_revB/f28x/f2802xF/projects/ccs/project_lab02c.

    For example my motor run forward and backward left and right moves. It possible or not.

    In project_lab02c where code write it. please give suggestions

  • Hi Kishor, 

    Thank you again for the additional information.  Can you help to clarify this issue? 

    For example my motor run forward and backward left and right moves.

    Are you seeing the motor spin back and forth (not fully rotate)?

    Could you also please provide the motor phase output voltage/current waveforms to better help understand this behavior. 

    Best Regards, 

    -Joshua

  • I am using runtime supported library rts2800_ml_eabi.lib.  but error display below

    **** Build of configuration Debug for project BLDC_application ****

    "D:\\Texas_instrument\\ccs\\utils\\bin\\gmake" -k -j 12 all -O

    Building target: "BLDC_application.out"
    Invoking: C2000 Linker
    "D:/Texas_instrument/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/bin/cl2000" -v28 -ml -mt -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi -z -m"BLDC_application.map" --stack_size=0x300 --warn_sections -i"D:/Texas_instrument/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/lib" -i"D:/Texas_instrument/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include" --reread_libs --diag_wrap=off --display_error_number --xml_link_info="BLDC_application_linkInfo.xml" --rom_model -o "BLDC_application.out" "./i2ca.obj" "./main.obj" "./printf.obj" "./ringBuffer.obj" "./uart.obj" "./user.obj" "../28027_RAM_lnk.cmd" -lrts2800_ml_eabi.lib -l"D:/Texas_instrument/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/lib/rts2800_ml_eabi.lib" -llibc.a
    <Linking>
    fatal error #16000: object files have incompatible formats ("D:/Texas_instrument/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/lib/rts2800_ml_eabi.lib<boot28.asm.obj>" = ELF, "./i2ca.obj" = TI-COFF)

    >> Compilation failure
    makefile:142: recipe for target 'BLDC_application.out' failed
    gmake[1]: *** [BLDC_application.out] Error 1
    makefile:138: recipe for target 'all' failed
    gmake: *** [all] Error 2

    **** Build Finished ****

    how to resolve it, and give suggestion on that.

    give suggestion on that.

  • Thanks Kishor,  

    Please look forward to a further response at the start of this following week.

    Best Regards, 

    -Joshua 

  • I am using tms320f28027f and drv8301 to run bldc motor.

    Developing own application without using project lab examples, if it is possible are not. I am developing application to run bldc motor link below

    https://github.com/acvilla/BLDC-Motor-Control

    I am using above bldc motor control. Compile it, but does not supported run time library and obj. file. Errors occur below 


    **** Build of configuration Debug for project motor_8301 ****

    "D:\\Texas_instrument\\ccs\\utils\\bin\\gmake" -k -j 12 all -O

    Building file: "../CodeStartBranch.asm"
    Invoking: C2000 Compiler
    "D:/Texas_instrument/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/bin/cl2000" -v28 -ml -mt --include_path="D:/Texas_instrument/motorware_1_01_00_18/sw/modules/hal/boards/boostxldrv8301_revB/f28x/f2802x/src" --include_path="D:/Texas_instrument/motorware_1_01_00_18/sw/modules/types/src" --include_path="D:/Texas_instrument/motorware_1_01_00_18" --include_path="D:/Texas_instrument/motorware_1_01_00_18/sw/solutions/instaspin_foc/boards/boostxldrv8301_revB/f28x/f2802xF/src" --include_path="D:/TI_Progrms/motor_8301" --include_path="D:/Texas_instrument/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include" -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi --preproc_with_compile --preproc_dependency="CodeStartBranch.d_raw" "../CodeStartBranch.asm"
    Finished building: "../CodeStartBranch.asm"

    Building file: "../clarke.c"
    Invoking: C2000 Compiler
    "D:/Texas_instrument/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/bin/cl2000" -v28 -ml -mt --include_path="D:/Texas_instrument/motorware_1_01_00_18/sw/modules/hal/boards/boostxldrv8301_revB/f28x/f2802x/src" --include_path="D:/Texas_instrument/motorware_1_01_00_18/sw/modules/types/src" --include_path="D:/Texas_instrument/motorware_1_01_00_18" --include_path="D:/Texas_instrument/motorware_1_01_00_18/sw/solutions/instaspin_foc/boards/boostxldrv8301_revB/f28x/f2802xF/src" --include_path="D:/TI_Progrms/motor_8301" --include_path="D:/Texas_instrument/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include" -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi --preproc_with_compile --preproc_dependency="clarke.d_raw" "../clarke.c"
    Finished building: "../clarke.c"

    Building file: "../cpu.c"
    Invoking: C2000 Compiler
    "D:/Texas_instrument/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/bin/cl2000" -v28 -ml -mt --include_path="D:/Texas_instrument/motorware_1_01_00_18/sw/modules/hal/boards/boostxldrv8301_revB/f28x/f2802x/src" --include_path="D:/Texas_instrument/motorware_1_01_00_18/sw/modules/types/src" --include_path="D:/Texas_instrument/motorware_1_01_00_18" --include_path="D:/Texas_instrument/motorware_1_01_00_18/sw/solutions/instaspin_foc/boards/boostxldrv8301_revB/f28x/f2802xF/src" --include_path="D:/TI_Progrms/motor_8301" --include_path="D:/Texas_instrument/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include" -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi --preproc_with_compile --preproc_dependency="cpu.d_raw" "../cpu.c"
    Finished building: "../cpu.c"

    Building file: "../adc.c"
    Invoking: C2000 Compiler
    "D:/Texas_instrument/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/bin/cl2000" -v28 -ml -mt --include_path="D:/Texas_instrument/motorware_1_01_00_18/sw/modules/hal/boards/boostxldrv8301_revB/f28x/f2802x/src" --include_path="D:/Texas_instrument/motorware_1_01_00_18/sw/modules/types/src" --include_path="D:/Texas_instrument/motorware_1_01_00_18" --include_path="D:/Texas_instrument/motorware_1_01_00_18/sw/solutions/instaspin_foc/boards/boostxldrv8301_revB/f28x/f2802xF/src" --include_path="D:/TI_Progrms/motor_8301" --include_path="D:/Texas_instrument/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include" -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi --preproc_with_compile --preproc_dependency="adc.d_raw" "../adc.c"
    Finished building: "../adc.c"

    Building file: "../clk.c"
    Invoking: C2000 Compiler
    "D:/Texas_instrument/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/bin/cl2000" -v28 -ml -mt --include_path="D:/Texas_instrument/motorware_1_01_00_18/sw/modules/hal/boards/boostxldrv8301_revB/f28x/f2802x/src" --include_path="D:/Texas_instrument/motorware_1_01_00_18/sw/modules/types/src" --include_path="D:/Texas_instrument/motorware_1_01_00_18" --include_path="D:/Texas_instrument/motorware_1_01_00_18/sw/solutions/instaspin_foc/boards/boostxldrv8301_revB/f28x/f2802xF/src" --include_path="D:/TI_Progrms/motor_8301" --include_path="D:/Texas_instrument/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include" -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi --preproc_with_compile --preproc_dependency="clk.d_raw" "../clk.c"
    Finished building: "../clk.c"

    Building file: "../filter_fo.c"
    Invoking: C2000 Compiler
    "D:/Texas_instrument/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/bin/cl2000" -v28 -ml -mt --include_path="D:/Texas_instrument/motorware_1_01_00_18/sw/modules/hal/boards/boostxldrv8301_revB/f28x/f2802x/src" --include_path="D:/Texas_instrument/motorware_1_01_00_18/sw/modules/types/src" --include_path="D:/Texas_instrument/motorware_1_01_00_18" --include_path="D:/Texas_instrument/motorware_1_01_00_18/sw/solutions/instaspin_foc/boards/boostxldrv8301_revB/f28x/f2802xF/src" --include_path="D:/TI_Progrms/motor_8301" --include_path="D:/Texas_instrument/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include" -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi --preproc_with_compile --preproc_dependency="filter_fo.d_raw" "../filter_fo.c"
    Finished building: "../filter_fo.c"

    Building file: "../flash.c"
    Invoking: C2000 Compiler
    "D:/Texas_instrument/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/bin/cl2000" -v28 -ml -mt --include_path="D:/Texas_instrument/motorware_1_01_00_18/sw/modules/hal/boards/boostxldrv8301_revB/f28x/f2802x/src" --include_path="D:/Texas_instrument/motorware_1_01_00_18/sw/modules/types/src" --include_path="D:/Texas_instrument/motorware_1_01_00_18" --include_path="D:/Texas_instrument/motorware_1_01_00_18/sw/solutions/instaspin_foc/boards/boostxldrv8301_revB/f28x/f2802xF/src" --include_path="D:/TI_Progrms/motor_8301" --include_path="D:/Texas_instrument/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include" -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi --preproc_with_compile --preproc_dependency="flash.d_raw" "../flash.c"
    Finished building: "../flash.c"

    Building file: "../gpio.c"
    Invoking: C2000 Compiler
    "D:/Texas_instrument/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/bin/cl2000" -v28 -ml -mt --include_path="D:/Texas_instrument/motorware_1_01_00_18/sw/modules/hal/boards/boostxldrv8301_revB/f28x/f2802x/src" --include_path="D:/Texas_instrument/motorware_1_01_00_18/sw/modules/types/src" --include_path="D:/Texas_instrument/motorware_1_01_00_18" --include_path="D:/Texas_instrument/motorware_1_01_00_18/sw/solutions/instaspin_foc/boards/boostxldrv8301_revB/f28x/f2802xF/src" --include_path="D:/TI_Progrms/motor_8301" --include_path="D:/Texas_instrument/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include" -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi --preproc_with_compile --preproc_dependency="gpio.d_raw" "../gpio.c"
    Finished building: "../gpio.c"

    Building file: "../ipark.c"
    Invoking: C2000 Compiler
    "D:/Texas_instrument/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/bin/cl2000" -v28 -ml -mt --include_path="D:/Texas_instrument/motorware_1_01_00_18/sw/modules/hal/boards/boostxldrv8301_revB/f28x/f2802x/src" --include_path="D:/Texas_instrument/motorware_1_01_00_18/sw/modules/types/src" --include_path="D:/Texas_instrument/motorware_1_01_00_18" --include_path="D:/Texas_instrument/motorware_1_01_00_18/sw/solutions/instaspin_foc/boards/boostxldrv8301_revB/f28x/f2802xF/src" --include_path="D:/TI_Progrms/motor_8301" --include_path="D:/Texas_instrument/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include" -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi --preproc_with_compile --preproc_dependency="ipark.d_raw" "../ipark.c"
    Finished building: "../ipark.c"

    Building file: "../memCopy.c"
    Invoking: C2000 Compiler
    "D:/Texas_instrument/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/bin/cl2000" -v28 -ml -mt --include_path="D:/Texas_instrument/motorware_1_01_00_18/sw/modules/hal/boards/boostxldrv8301_revB/f28x/f2802x/src" --include_path="D:/Texas_instrument/motorware_1_01_00_18/sw/modules/types/src" --include_path="D:/Texas_instrument/motorware_1_01_00_18" --include_path="D:/Texas_instrument/motorware_1_01_00_18/sw/solutions/instaspin_foc/boards/boostxldrv8301_revB/f28x/f2802xF/src" --include_path="D:/TI_Progrms/motor_8301" --include_path="D:/Texas_instrument/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include" -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi --preproc_with_compile --preproc_dependency="memCopy.d_raw" "../memCopy.c"
    Finished building: "../memCopy.c"

    Building file: "../offset.c"
    Invoking: C2000 Compiler
    "D:/Texas_instrument/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/bin/cl2000" -v28 -ml -mt --include_path="D:/Texas_instrument/motorware_1_01_00_18/sw/modules/hal/boards/boostxldrv8301_revB/f28x/f2802x/src" --include_path="D:/Texas_instrument/motorware_1_01_00_18/sw/modules/types/src" --include_path="D:/Texas_instrument/motorware_1_01_00_18" --include_path="D:/Texas_instrument/motorware_1_01_00_18/sw/solutions/instaspin_foc/boards/boostxldrv8301_revB/f28x/f2802xF/src" --include_path="D:/TI_Progrms/motor_8301" --include_path="D:/Texas_instrument/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include" -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi --preproc_with_compile --preproc_dependency="offset.d_raw" "../offset.c"
    Finished building: "../offset.c"

    Building file: "../osc.c"
    Invoking: C2000 Compiler
    "D:/Texas_instrument/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/bin/cl2000" -v28 -ml -mt --include_path="D:/Texas_instrument/motorware_1_01_00_18/sw/modules/hal/boards/boostxldrv8301_revB/f28x/f2802x/src" --include_path="D:/Texas_instrument/motorware_1_01_00_18/sw/modules/types/src" --include_path="D:/Texas_instrument/motorware_1_01_00_18" --include_path="D:/Texas_instrument/motorware_1_01_00_18/sw/solutions/instaspin_foc/boards/boostxldrv8301_revB/f28x/f2802xF/src" --include_path="D:/TI_Progrms/motor_8301" --include_path="D:/Texas_instrument/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include" -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi --preproc_with_compile --preproc_dependency="osc.d_raw" "../osc.c"
    Finished building: "../osc.c"

    Building file: "../park.c"
    Invoking: C2000 Compiler
    "D:/Texas_instrument/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/bin/cl2000" -v28 -ml -mt --include_path="D:/Texas_instrument/motorware_1_01_00_18/sw/modules/hal/boards/boostxldrv8301_revB/f28x/f2802x/src" --include_path="D:/Texas_instrument/motorware_1_01_00_18/sw/modules/types/src" --include_path="D:/Texas_instrument/motorware_1_01_00_18" --include_path="D:/Texas_instrument/motorware_1_01_00_18/sw/solutions/instaspin_foc/boards/boostxldrv8301_revB/f28x/f2802xF/src" --include_path="D:/TI_Progrms/motor_8301" --include_path="D:/Texas_instrument/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include" -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi --preproc_with_compile --preproc_dependency="park.d_raw" "../park.c"
    Finished building: "../park.c"

    Building file: "../pll.c"
    Invoking: C2000 Compiler
    "D:/Texas_instrument/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/bin/cl2000" -v28 -ml -mt --include_path="D:/Texas_instrument/motorware_1_01_00_18/sw/modules/hal/boards/boostxldrv8301_revB/f28x/f2802x/src" --include_path="D:/Texas_instrument/motorware_1_01_00_18/sw/modules/types/src" --include_path="D:/Texas_instrument/motorware_1_01_00_18" --include_path="D:/Texas_instrument/motorware_1_01_00_18/sw/solutions/instaspin_foc/boards/boostxldrv8301_revB/f28x/f2802xF/src" --include_path="D:/TI_Progrms/motor_8301" --include_path="D:/Texas_instrument/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include" -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi --preproc_with_compile --preproc_dependency="pll.d_raw" "../pll.c"
    Finished building: "../pll.c"

    Building file: "../pie.c"
    Invoking: C2000 Compiler
    "D:/Texas_instrument/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/bin/cl2000" -v28 -ml -mt --include_path="D:/Texas_instrument/motorware_1_01_00_18/sw/modules/hal/boards/boostxldrv8301_revB/f28x/f2802x/src" --include_path="D:/Texas_instrument/motorware_1_01_00_18/sw/modules/types/src" --include_path="D:/Texas_instrument/motorware_1_01_00_18" --include_path="D:/Texas_instrument/motorware_1_01_00_18/sw/solutions/instaspin_foc/boards/boostxldrv8301_revB/f28x/f2802xF/src" --include_path="D:/TI_Progrms/motor_8301" --include_path="D:/Texas_instrument/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include" -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi --preproc_with_compile --preproc_dependency="pie.d_raw" "../pie.c"
    Finished building: "../pie.c"

    Building file: "../main.c"
    Invoking: C2000 Compiler
    "D:/Texas_instrument/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/bin/cl2000" -v28 -ml -mt --include_path="D:/Texas_instrument/motorware_1_01_00_18/sw/modules/hal/boards/boostxldrv8301_revB/f28x/f2802x/src" --include_path="D:/Texas_instrument/motorware_1_01_00_18/sw/modules/types/src" --include_path="D:/Texas_instrument/motorware_1_01_00_18" --include_path="D:/Texas_instrument/motorware_1_01_00_18/sw/solutions/instaspin_foc/boards/boostxldrv8301_revB/f28x/f2802xF/src" --include_path="D:/TI_Progrms/motor_8301" --include_path="D:/Texas_instrument/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include" -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi --preproc_with_compile --preproc_dependency="main.d_raw" "../main.c"
    Finished building: "../main.c"

    Building file: "../pwr.c"
    Invoking: C2000 Compiler
    "D:/Texas_instrument/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/bin/cl2000" -v28 -ml -mt --include_path="D:/Texas_instrument/motorware_1_01_00_18/sw/modules/hal/boards/boostxldrv8301_revB/f28x/f2802x/src" --include_path="D:/Texas_instrument/motorware_1_01_00_18/sw/modules/types/src" --include_path="D:/Texas_instrument/motorware_1_01_00_18" --include_path="D:/Texas_instrument/motorware_1_01_00_18/sw/solutions/instaspin_foc/boards/boostxldrv8301_revB/f28x/f2802xF/src" --include_path="D:/TI_Progrms/motor_8301" --include_path="D:/Texas_instrument/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include" -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi --preproc_with_compile --preproc_dependency="pwr.d_raw" "../pwr.c"
    Finished building: "../pwr.c"

    Building file: "../hal.c"
    Invoking: C2000 Compiler
    "D:/Texas_instrument/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/bin/cl2000" -v28 -ml -mt --include_path="D:/Texas_instrument/motorware_1_01_00_18/sw/modules/hal/boards/boostxldrv8301_revB/f28x/f2802x/src" --include_path="D:/Texas_instrument/motorware_1_01_00_18/sw/modules/types/src" --include_path="D:/Texas_instrument/motorware_1_01_00_18" --include_path="D:/Texas_instrument/motorware_1_01_00_18/sw/solutions/instaspin_foc/boards/boostxldrv8301_revB/f28x/f2802xF/src" --include_path="D:/TI_Progrms/motor_8301" --include_path="D:/Texas_instrument/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include" -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi --preproc_with_compile --preproc_dependency="hal.d_raw" "../hal.c"
    Finished building: "../hal.c"

    Building file: "../ctrl.c"
    Invoking: C2000 Compiler
    "D:/Texas_instrument/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/bin/cl2000" -v28 -ml -mt --include_path="D:/Texas_instrument/motorware_1_01_00_18/sw/modules/hal/boards/boostxldrv8301_revB/f28x/f2802x/src" --include_path="D:/Texas_instrument/motorware_1_01_00_18/sw/modules/types/src" --include_path="D:/Texas_instrument/motorware_1_01_00_18" --include_path="D:/Texas_instrument/motorware_1_01_00_18/sw/solutions/instaspin_foc/boards/boostxldrv8301_revB/f28x/f2802xF/src" --include_path="D:/TI_Progrms/motor_8301" --include_path="D:/Texas_instrument/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include" -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi --preproc_with_compile --preproc_dependency="ctrl.d_raw" "../ctrl.c"
    Finished building: "../ctrl.c"

    Building file: "../svgen.c"
    Invoking: C2000 Compiler
    "D:/Texas_instrument/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/bin/cl2000" -v28 -ml -mt --include_path="D:/Texas_instrument/motorware_1_01_00_18/sw/modules/hal/boards/boostxldrv8301_revB/f28x/f2802x/src" --include_path="D:/Texas_instrument/motorware_1_01_00_18/sw/modules/types/src" --include_path="D:/Texas_instrument/motorware_1_01_00_18" --include_path="D:/Texas_instrument/motorware_1_01_00_18/sw/solutions/instaspin_foc/boards/boostxldrv8301_revB/f28x/f2802xF/src" --include_path="D:/TI_Progrms/motor_8301" --include_path="D:/Texas_instrument/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include" -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi --preproc_with_compile --preproc_dependency="svgen.d_raw" "../svgen.c"
    Finished building: "../svgen.c"

    Building file: "../spi.c"
    Invoking: C2000 Compiler
    "D:/Texas_instrument/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/bin/cl2000" -v28 -ml -mt --include_path="D:/Texas_instrument/motorware_1_01_00_18/sw/modules/hal/boards/boostxldrv8301_revB/f28x/f2802x/src" --include_path="D:/Texas_instrument/motorware_1_01_00_18/sw/modules/types/src" --include_path="D:/Texas_instrument/motorware_1_01_00_18" --include_path="D:/Texas_instrument/motorware_1_01_00_18/sw/solutions/instaspin_foc/boards/boostxldrv8301_revB/f28x/f2802xF/src" --include_path="D:/TI_Progrms/motor_8301" --include_path="D:/Texas_instrument/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include" -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi --preproc_with_compile --preproc_dependency="spi.d_raw" "../spi.c"
    Finished building: "../spi.c"

    Building file: "../timer.c"
    Invoking: C2000 Compiler
    "D:/Texas_instrument/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/bin/cl2000" -v28 -ml -mt --include_path="D:/Texas_instrument/motorware_1_01_00_18/sw/modules/hal/boards/boostxldrv8301_revB/f28x/f2802x/src" --include_path="D:/Texas_instrument/motorware_1_01_00_18/sw/modules/types/src" --include_path="D:/Texas_instrument/motorware_1_01_00_18" --include_path="D:/Texas_instrument/motorware_1_01_00_18/sw/solutions/instaspin_foc/boards/boostxldrv8301_revB/f28x/f2802xF/src" --include_path="D:/TI_Progrms/motor_8301" --include_path="D:/Texas_instrument/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include" -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi --preproc_with_compile --preproc_dependency="timer.d_raw" "../timer.c"
    Finished building: "../timer.c"

    Building file: "../traj.c"
    Invoking: C2000 Compiler
    "D:/Texas_instrument/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/bin/cl2000" -v28 -ml -mt --include_path="D:/Texas_instrument/motorware_1_01_00_18/sw/modules/hal/boards/boostxldrv8301_revB/f28x/f2802x/src" --include_path="D:/Texas_instrument/motorware_1_01_00_18/sw/modules/types/src" --include_path="D:/Texas_instrument/motorware_1_01_00_18" --include_path="D:/Texas_instrument/motorware_1_01_00_18/sw/solutions/instaspin_foc/boards/boostxldrv8301_revB/f28x/f2802xF/src" --include_path="D:/TI_Progrms/motor_8301" --include_path="D:/Texas_instrument/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include" -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi --preproc_with_compile --preproc_dependency="traj.d_raw" "../traj.c"
    Finished building: "../traj.c"

    Building file: "../pwm.c"
    Invoking: C2000 Compiler
    "D:/Texas_instrument/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/bin/cl2000" -v28 -ml -mt --include_path="D:/Texas_instrument/motorware_1_01_00_18/sw/modules/hal/boards/boostxldrv8301_revB/f28x/f2802x/src" --include_path="D:/Texas_instrument/motorware_1_01_00_18/sw/modules/types/src" --include_path="D:/Texas_instrument/motorware_1_01_00_18" --include_path="D:/Texas_instrument/motorware_1_01_00_18/sw/solutions/instaspin_foc/boards/boostxldrv8301_revB/f28x/f2802xF/src" --include_path="D:/TI_Progrms/motor_8301" --include_path="D:/Texas_instrument/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include" -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi --preproc_with_compile --preproc_dependency="pwm.d_raw" "../pwm.c"
    Finished building: "../pwm.c"

    Building file: "../usDelay.asm"
    Invoking: C2000 Compiler
    "D:/Texas_instrument/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/bin/cl2000" -v28 -ml -mt --include_path="D:/Texas_instrument/motorware_1_01_00_18/sw/modules/hal/boards/boostxldrv8301_revB/f28x/f2802x/src" --include_path="D:/Texas_instrument/motorware_1_01_00_18/sw/modules/types/src" --include_path="D:/Texas_instrument/motorware_1_01_00_18" --include_path="D:/Texas_instrument/motorware_1_01_00_18/sw/solutions/instaspin_foc/boards/boostxldrv8301_revB/f28x/f2802xF/src" --include_path="D:/TI_Progrms/motor_8301" --include_path="D:/Texas_instrument/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include" -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi --preproc_with_compile --preproc_dependency="usDelay.d_raw" "../usDelay.asm"
    Finished building: "../usDelay.asm"

    Building file: "../wdog.c"
    Invoking: C2000 Compiler
    "D:/Texas_instrument/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/bin/cl2000" -v28 -ml -mt --include_path="D:/Texas_instrument/motorware_1_01_00_18/sw/modules/hal/boards/boostxldrv8301_revB/f28x/f2802x/src" --include_path="D:/Texas_instrument/motorware_1_01_00_18/sw/modules/types/src" --include_path="D:/Texas_instrument/motorware_1_01_00_18" --include_path="D:/Texas_instrument/motorware_1_01_00_18/sw/solutions/instaspin_foc/boards/boostxldrv8301_revB/f28x/f2802xF/src" --include_path="D:/TI_Progrms/motor_8301" --include_path="D:/Texas_instrument/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include" -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi --preproc_with_compile --preproc_dependency="wdog.d_raw" "../wdog.c"
    Finished building: "../wdog.c"

    Building file: "../user.c"
    Invoking: C2000 Compiler
    "D:/Texas_instrument/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/bin/cl2000" -v28 -ml -mt --include_path="D:/Texas_instrument/motorware_1_01_00_18/sw/modules/hal/boards/boostxldrv8301_revB/f28x/f2802x/src" --include_path="D:/Texas_instrument/motorware_1_01_00_18/sw/modules/types/src" --include_path="D:/Texas_instrument/motorware_1_01_00_18" --include_path="D:/Texas_instrument/motorware_1_01_00_18/sw/solutions/instaspin_foc/boards/boostxldrv8301_revB/f28x/f2802xF/src" --include_path="D:/TI_Progrms/motor_8301" --include_path="D:/Texas_instrument/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include" -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi --preproc_with_compile --preproc_dependency="user.d_raw" "../user.c"
    Finished building: "../user.c"

    Building target: "motor_8301.out"
    Invoking: C2000 Linker
    "D:/Texas_instrument/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/bin/cl2000" -v28 -ml -mt -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi -z -m"motor_8301.map" --stack_size=0x300 --warn_sections -i"D:/Texas_instrument/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/lib" -i"D:/Texas_instrument/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include" --reread_libs --diag_wrap=off --display_error_number --xml_link_info="motor_8301_linkInfo.xml" --rom_model -o "motor_8301.out" "./CodeStartBranch.obj" "./adc.obj" "./clarke.obj" "./clk.obj" "./cpu.obj" "./ctrl.obj" "./filter_fo.obj" "./flash.obj" "./gpio.obj" "./hal.obj" "./ipark.obj" "./main.obj" "./memCopy.obj" "./offset.obj" "./osc.obj" "./park.obj" "./pie.obj" "./pll.obj" "./pwm.obj" "./pwr.obj" "./spi.obj" "./svgen.obj" "./timer.obj" "./traj.obj" "./usDelay.obj" "./user.obj" "./wdog.obj" "../F28027.cmd" -lrts2800_ml_eabi.lib
    <Linking>
    fatal error #16000: object files have incompatible formats ("D:/Texas_instrument/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/lib/rts2800_ml_eabi.lib<boot28.asm.obj>" = ELF, "./CodeStartBranch.obj" = TI-COFF)

    >> Compilation failure
    makefile:161: recipe for target 'motor_8301.out' failed
    gmake[1]: *** [motor_8301.out] Error 1
    makefile:157: recipe for target 'all' failed
    gmake: *** [all] Error 2

    **** Build Finished ****

    how error solve it. Give me suggestion on that.

  • I am using tms320f28027f and drv8301 to run bldc motor.

    Developing own application without using project lab examples, if it is possible are not. I am developing application to run bldc motor link below

    https://github.com/acvilla/BLDC-Motor-Control

    I am using above bldc motor control. Compile it, but does not supported run time library and obj. file. Errors occur below 

    **** Build of configuration Debug for project BLDC_application ****

    "D:\\Texas_instrument\\ccs\\utils\\bin\\gmake" -k -j 12 all -O

    Building target: "BLDC_application.out"
    Invoking: C2000 Linker
    "D:/Texas_instrument/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/bin/cl2000" -v28 -ml -mt --advice:performance=all -g --diag_warning=225 --diag_wrap=off --emit_warnings_as_errors --abi=coffabi -z -m"BLDC_application.map" --stack_size=0x300 --warn_sections -i"D:/Texas_instrument/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/lib" -i"D:/Texas_instrument/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include" --reread_libs --diag_wrap=off --display_error_number --xml_link_info="BLDC_application_linkInfo.xml" --rom_model -o "BLDC_application.out" "./i2ca.obj" "./main.obj" "./printf.obj" "./ringBuffer.obj" "./uart.obj" "./user.obj" "../28027_RAM_lnk.cmd" -l"D:/Texas_instrument/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/lib/rts2800_ml_eabi.lib" -lrts2800_ml.lib -llibc.a
    <Linking>
    fatal error #16000: object files have incompatible formats ("D:/Texas_instrument/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/lib/rts2800_ml_eabi.lib<boot28.asm.obj>" = ELF, "./i2ca.obj" = TI-COFF)

    >> Compilation failure
    makefile:142: recipe for target 'BLDC_application.out' failed
    gmake[1]: *** [BLDC_application.out] Error 1
    makefile:138: recipe for target 'all' failed
    gmake: *** [all] Error 2

    **** Build Finished ****

    how to solve it. Give me suggetion on that.

  • I am blink led in TI board tms320f28027f. But some error occur. The code are below

    //#############################################################################

    //
    // File: Example_F2802xGpioSetup.c
    //
    // Title: F2802x Device GPIO Setup
    //
    //! \addtogroup example_list
    //! <h1>GPIO Setup</h1>
    //!
    //! Configures the 2802x GPIO into two different configurations
    //! This code is verbose to illustrate how the GPIO could be setup.
    //! In a real application, lines of code can be combined for improved
    //! code size and efficiency.
    //!
    //! This example only sets-up the GPIO. Nothing is actually done with
    //! the pins after setup.
    //!
    //! In general:
    //! - All pullup resistors are enabled. For EPwms this may not be desired.
    //! - Input qual for communication ports (eCAN, SPI, SCI, I2C) is
    //! asynchronous
    //! - Input qual for Trip pins (TZ) is asynchronous
    //! - Input qual for eCAP is synch to SYSCLKOUT
    //! - Input qual for some I/O's and interrupts may have a sampling window
    //
    //#############################################################################
    // $TI Release: $
    // $Release Date: $
    // $Copyright:
    // Copyright (C) 2009-2024 Texas Instruments Incorporated - http://www.ti.com/
    //
    // Redistribution and use in source and binary forms, with or without
    // modification, are permitted provided that the following conditions
    // are met:
    //
    // Redistributions of source code must retain the above copyright
    // notice, this list of conditions and the following disclaimer.
    //
    // Redistributions in binary form must reproduce the above copyright
    // notice, this list of conditions and the following disclaimer in the
    // documentation and/or other materials provided with the
    // distribution.
    //
    // Neither the name of Texas Instruments Incorporated nor the names of
    // its contributors may be used to endorse or promote products derived
    // from this software without specific prior written permission.
    //
    // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
    // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
    // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
    // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
    // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
    // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
    // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
    // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
    // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
    // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    // $
    //#############################################################################

    //
    // Included Files
    //
    #include "DSP28x_Project.h" // Device Headerfile and Examples Include Files

    #include "common/include/clk.h"
    #include "common/include/flash.h"
    #include "common/include/gpio.h"
    #include "common/include/pie.h"
    #include "common/include/pll.h"
    #include "common/include/wdog.h"

    //
    // Defines that select the example to compile in.
    // Only one example should be set as 1 the rest should be set as 0.
    //
    #define EXAMPLE1 1 // Basic pinout configuration example
    #define EXAMPLE2 0 // Communication pinout example

    //
    // Function Prototypes
    //
    void Gpio_setup1(void);
    void Gpio_setup2(void);

    //
    // Globals
    //
    CLK_Handle myClk;
    FLASH_Handle myFlash;
    GPIO_Handle myGpio;
    PIE_Handle myPie;

    //
    // Main
    //
    void main(void)
    {
    CPU_Handle myCpu;
    PLL_Handle myPll;
    WDOG_Handle myWDog;

    //
    // Initialize all the handles needed for this application
    //
    myClk = CLK_init((void *)CLK_BASE_ADDR, sizeof(CLK_Obj));
    myCpu = CPU_init((void *)NULL, sizeof(CPU_Obj));
    myFlash = FLASH_init((void *)FLASH_BASE_ADDR, sizeof(FLASH_Obj));
    myGpio = GPIO_init((void *)GPIO_BASE_ADDR, sizeof(GPIO_Obj));
    myPie = PIE_init((void *)PIE_BASE_ADDR, sizeof(PIE_Obj));
    myPll = PLL_init((void *)PLL_BASE_ADDR, sizeof(PLL_Obj));
    myWDog = WDOG_init((void *)WDOG_BASE_ADDR, sizeof(WDOG_Obj));

    //
    // Perform basic system initialization
    //
    WDOG_disable(myWDog);
    CLK_enableAdcClock(myClk);
    (*Device_cal)();
    CLK_disableAdcClock(myClk);

    //
    // Select the internal oscillator 1 as the clock source
    //
    CLK_setOscSrc(myClk, CLK_OscSrc_Internal);

    //
    // Setup the PLL for x10 /2 which will yield 50Mhz = 10Mhz * 10 / 2
    //
    PLL_setup(myPll, PLL_Multiplier_10, PLL_DivideSelect_ClkIn_by_2);

    //
    // Disable the PIE and all interrupts
    //
    PIE_disable(myPie);
    PIE_disableAllInts(myPie);
    CPU_disableGlobalInts(myCpu);
    CPU_clearIntFlags(myCpu);

    //
    // If running from flash copy RAM only functions to RAM
    //
    #ifdef _FLASH
    memcpy(&RamfuncsRunStart, &RamfuncsLoadStart, (size_t)&RamfuncsLoadSize);
    #endif

    //
    // Setup a debug vector table and enable the PIE
    //
    PIE_setDebugIntVectorTable(myPie);
    PIE_enable(myPie);

    #if EXAMPLE1
    //
    // This example is a basic pinout
    //
    Gpio_setup1();
    #endif // - EXAMPLE1

    #if EXAMPLE2
    //
    // This example is a communications pinout
    //
    Gpio_setup2();
    #endif // - EXAMPLE2
    }

    //
    // Gpio_setup1 - Example 1: Basic Pinout.
    //
    void
    Gpio_setup1(void)
    {
    //
    // This basic pinout includes:
    // PWM1-3, TZ1-TZ4, SPI-A, EQEP1, SCI-A, I2C and a number of I/O pins
    //

    //
    // These can be combined into single statements for improved
    // code efficiency.
    //

    //
    // Enable PWM1-3 on GPIO0-GPIO5
    //
    GPIO_setPullUp(myGpio, GPIO_Number_0, GPIO_PullUp_Enable);
    GPIO_setPullUp(myGpio, GPIO_Number_1, GPIO_PullUp_Enable);
    GPIO_setPullUp(myGpio, GPIO_Number_2, GPIO_PullUp_Enable);
    GPIO_setPullUp(myGpio, GPIO_Number_3, GPIO_PullUp_Enable);
    GPIO_setPullUp(myGpio, GPIO_Number_4, GPIO_PullUp_Enable);
    GPIO_setPullUp(myGpio, GPIO_Number_5, GPIO_PullUp_Enable);
    GPIO_setMode(myGpio, GPIO_Number_0, GPIO_0_Mode_EPWM1A);
    GPIO_setMode(myGpio, GPIO_Number_1, GPIO_1_Mode_EPWM1B);
    GPIO_setMode(myGpio, GPIO_Number_2, GPIO_2_Mode_EPWM2A);
    GPIO_setMode(myGpio, GPIO_Number_3, GPIO_3_Mode_EPWM2B);
    GPIO_setMode(myGpio, GPIO_Number_4, GPIO_4_Mode_EPWM3A);
    GPIO_setMode(myGpio, GPIO_Number_5, GPIO_5_Mode_EPWM3B);

    //
    // Enable an GPIO output on GPIO6&7, set it high
    //
    GPIO_setPullUp(myGpio, GPIO_Number_6, GPIO_PullUp_Enable);
    GPIO_setHigh(myGpio, GPIO_Number_6);
    GPIO_setMode(myGpio, GPIO_Number_6, GPIO_6_Mode_GeneralPurpose);
    GPIO_setDirection(myGpio, GPIO_Number_6, GPIO_Direction_Output);

    GPIO_setPullUp(myGpio, GPIO_Number_7, GPIO_PullUp_Enable);
    GPIO_setHigh(myGpio, GPIO_Number_7);
    GPIO_setMode(myGpio, GPIO_Number_7, GPIO_7_Mode_GeneralPurpose);
    GPIO_setDirection(myGpio, GPIO_Number_7, GPIO_Direction_Output);

    //
    // Enable Trip Zone input on GPIO12
    //
    GPIO_setPullUp(myGpio, GPIO_Number_12, GPIO_PullUp_Enable);
    GPIO_setQualification(myGpio, GPIO_Number_12, GPIO_Qual_ASync);
    GPIO_setMode(myGpio, GPIO_Number_12, GPIO_12_Mode_TZ1_NOT);

    //
    // Enable SPI-A on GPIO16 - GPIO19
    //
    GPIO_setPullUp(myGpio, GPIO_Number_16, GPIO_PullUp_Enable);
    GPIO_setPullUp(myGpio, GPIO_Number_17, GPIO_PullUp_Enable);
    GPIO_setPullUp(myGpio, GPIO_Number_18, GPIO_PullUp_Enable);
    GPIO_setPullUp(myGpio, GPIO_Number_19, GPIO_PullUp_Enable);
    GPIO_setQualification(myGpio, GPIO_Number_16, GPIO_Qual_ASync);
    GPIO_setQualification(myGpio, GPIO_Number_17, GPIO_Qual_ASync);
    GPIO_setQualification(myGpio, GPIO_Number_18, GPIO_Qual_ASync);
    GPIO_setQualification(myGpio, GPIO_Number_19, GPIO_Qual_ASync);
    GPIO_setMode(myGpio, GPIO_Number_16, GPIO_16_Mode_SPISIMOA);
    GPIO_setMode(myGpio, GPIO_Number_17, GPIO_17_Mode_SPISOMIA);
    GPIO_setMode(myGpio, GPIO_Number_18, GPIO_18_Mode_SPICLKA);
    GPIO_setMode(myGpio, GPIO_Number_19, GPIO_19_Mode_SPISTEA_NOT);

    //
    // Enable SCI-A on GPIO28 - GPIO29
    //
    GPIO_setPullUp(myGpio, GPIO_Number_28, GPIO_PullUp_Enable);
    GPIO_setQualification(myGpio, GPIO_Number_28, GPIO_Qual_ASync);
    GPIO_setMode(myGpio, GPIO_Number_28, GPIO_28_Mode_SCIRXDA);
    GPIO_setPullUp(myGpio, GPIO_Number_29, GPIO_PullUp_Enable);
    GPIO_setMode(myGpio, GPIO_Number_29, GPIO_29_Mode_SCITXDA);

    //
    // Make GPIO34 an input
    //
    GPIO_setPullUp(myGpio, GPIO_Number_34, GPIO_PullUp_Enable);
    GPIO_setMode(myGpio, GPIO_Number_34, GPIO_34_Mode_GeneralPurpose);
    GPIO_setDirection(myGpio, GPIO_Number_34, GPIO_Direction_Input);
    }

    //
    // Gpio_setup2 - Example 1 - Communications Pinout
    //
    void
    Gpio_setup2(void)
    {
    //
    // This basic communications pinout includes:
    // PWM1-3, SPI-A, SCI-A and a number of I/O pins
    //

    //
    // Enable PWM1-3 on GPIO0-GPIO5
    //
    GPIO_setPullUp(myGpio, GPIO_Number_0, GPIO_PullUp_Enable);
    GPIO_setPullUp(myGpio, GPIO_Number_0, GPIO_PullUp_Enable);
    GPIO_setPullUp(myGpio, GPIO_Number_0, GPIO_PullUp_Enable);
    GPIO_setPullUp(myGpio, GPIO_Number_0, GPIO_PullUp_Enable);
    GPIO_setPullUp(myGpio, GPIO_Number_0, GPIO_PullUp_Enable);
    GPIO_setPullUp(myGpio, GPIO_Number_0, GPIO_PullUp_Enable);
    GPIO_setMode(myGpio, GPIO_Number_0, GPIO_0_Mode_EPWM1A);
    GPIO_setMode(myGpio, GPIO_Number_1, GPIO_1_Mode_EPWM1B);
    GPIO_setMode(myGpio, GPIO_Number_2, GPIO_2_Mode_EPWM2A);
    GPIO_setMode(myGpio, GPIO_Number_3, GPIO_3_Mode_EPWM2B);
    GPIO_setMode(myGpio, GPIO_Number_4, GPIO_4_Mode_EPWM3A);
    GPIO_setMode(myGpio, GPIO_Number_5, GPIO_5_Mode_EPWM3B);

    //
    // Enable an GPIO output on GPIO6&7
    //
    GPIO_setPullUp(myGpio, GPIO_Number_6, GPIO_PullUp_Enable);
    GPIO_setHigh(myGpio, GPIO_Number_6);
    GPIO_setMode(myGpio, GPIO_Number_6, GPIO_6_Mode_GeneralPurpose);
    GPIO_setDirection(myGpio, GPIO_Number_6, GPIO_Direction_Output);

    GPIO_setPullUp(myGpio, GPIO_Number_7, GPIO_PullUp_Enable);
    GPIO_setHigh(myGpio, GPIO_Number_7);
    GPIO_setMode(myGpio, GPIO_Number_7, GPIO_7_Mode_GeneralPurpose);
    GPIO_setDirection(myGpio, GPIO_Number_7, GPIO_Direction_Output);

    //
    // Enable SPI-A on GPIO16 - GPIO19
    //
    GPIO_setPullUp(myGpio, GPIO_Number_16, GPIO_PullUp_Enable);
    GPIO_setPullUp(myGpio, GPIO_Number_17, GPIO_PullUp_Enable);
    GPIO_setPullUp(myGpio, GPIO_Number_18, GPIO_PullUp_Enable);
    GPIO_setPullUp(myGpio, GPIO_Number_19, GPIO_PullUp_Enable);
    GPIO_setQualification(myGpio, GPIO_Number_16, GPIO_Qual_ASync);
    GPIO_setQualification(myGpio, GPIO_Number_17, GPIO_Qual_ASync);
    GPIO_setQualification(myGpio, GPIO_Number_18, GPIO_Qual_ASync);
    GPIO_setQualification(myGpio, GPIO_Number_19, GPIO_Qual_ASync);
    GPIO_setMode(myGpio, GPIO_Number_16, GPIO_16_Mode_SPISIMOA);
    GPIO_setMode(myGpio, GPIO_Number_17, GPIO_17_Mode_SPISOMIA);
    GPIO_setMode(myGpio, GPIO_Number_18, GPIO_18_Mode_SPICLKA);
    GPIO_setMode(myGpio, GPIO_Number_19, GPIO_19_Mode_SPISTEA_NOT);

    //
    // Enable SCI-A on GPIO28 - GPIO29
    //
    GPIO_setPullUp(myGpio, GPIO_Number_28, GPIO_PullUp_Enable);
    GPIO_setQualification(myGpio, GPIO_Number_28, GPIO_Qual_ASync);
    GPIO_setMode(myGpio, GPIO_Number_28, GPIO_28_Mode_SCIRXDA);
    GPIO_setPullUp(myGpio, GPIO_Number_29, GPIO_PullUp_Enable);
    GPIO_setMode(myGpio, GPIO_Number_29, GPIO_29_Mode_SCITXDA);

    //
    // Make GPIO34 an input
    //
    GPIO_setPullUp(myGpio, GPIO_Number_34, GPIO_PullUp_Enable);
    GPIO_setMode(myGpio, GPIO_Number_34, GPIO_34_Mode_GeneralPurpose);
    GPIO_setDirection(myGpio, GPIO_Number_34, GPIO_Direction_Input);
    }

    //
    // End of File
    //

     Error is below

    **** Build of configuration Debug for project led_blink ****

    "D:\\Texas_instrument\\ccs\\utils\\bin\\gmake" -k -j 12 all -O

    Building file: "../main.c"
    Invoking: C2000 Compiler
    "D:/Texas_instrument/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/bin/cl2000" -v28 -ml -mt --include_path="D:/TI_Progrms/led_blink" --include_path="D:/TI_Progrms/led_blink" --include_path="D:/Texas_instrument/C2000Ware_5_02_00_00/device_support/f2802x" --include_path="D:/Texas_instrument/C2000Ware_5_02_00_00/device_support/f2802x/common/include" --include_path="D:/Texas_instrument/C2000Ware_5_02_00_00/device_support/f2802x/headers/include" --include_path="D:/Texas_instrument/C2000Ware_5_02_00_00/libraries/math/IQmath/c28/include" --include_path="D:/Texas_instrument/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include" --advice:performance=all --define=_DEBUG --define=LARGE_MODEL -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi --preproc_with_compile --preproc_dependency="main.d_raw" "../main.c"
    Finished building: "../main.c"

    Building target: "led_blink.out"
    Invoking: C2000 Linker
    "D:/Texas_instrument/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/bin/cl2000" -v28 -ml -mt --advice:performance=all --define=_DEBUG --define=LARGE_MODEL -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi -z -m"led_blink.map" --stack_size=0x300 --warn_sections -i"D:/Texas_instrument/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/lib" -i"D:/Texas_instrument/C2000Ware_5_02_00_00/libraries/math/IQmath/c28/lib" -i"D:/TI_Progrms/led_blink" -i"D:/Texas_instrument/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include" --reread_libs --diag_wrap=off --display_error_number --xml_link_info="led_blink_linkInfo.xml" --rom_model -o "led_blink.out" "./main.obj" "../F2802x_Headers_nonBIOS.cmd" -l"D:/Texas_instrument/C2000Ware_5_02_00_00/device_support/f2802x/common/cmd/F2802x_generic_ram.cmd" -lIQmath.lib
    <Linking>

    undefined first referenced
    symbol in file
    --------- ----------------
    _CLK_disableAdcClock ./main.obj
    _CLK_enableAdcClock ./main.obj
    _CLK_init ./main.obj
    _CLK_setOscSrc ./main.obj
    _CPU_clearIntFlags ./main.obj
    _CPU_disableGlobalInts ./main.obj
    _CPU_init ./main.obj
    _FLASH_init ./main.obj
    _GPIO_init ./main.obj
    _GPIO_setDirection ./main.obj
    _GPIO_setHigh ./main.obj
    _GPIO_setMode ./main.obj
    _GPIO_setPullUp ./main.obj
    _GPIO_setQualification ./main.obj
    _PIE_disable ./main.obj
    _PIE_disableAllInts ./main.obj
    _PIE_enable ./main.obj
    _PIE_init ./main.obj
    _PIE_setDebugIntVectorTable ./main.obj
    _PLL_init ./main.obj
    _PLL_setup ./main.obj
    _WDOG_disable ./main.obj
    _WDOG_init ./main.obj

    error #10234-D: unresolved symbols remain
    error #10010: errors encountered during linking; "led_blink.out" not built

    >> Compilation failure
    makefile:136: recipe for target 'led_blink.out' failed
    gmake[1]: *** [led_blink.out] Error 1
    makefile:132: recipe for target 'all' failed
    gmake: *** [all] Error 2

    **** Build Finished ****

    How to error solve it. Give me suggestion on that.

  • I am using the TI LaunchPad with a TMS320F28027F microcontroller and a DRV8301 gate driver to control a BLDC motor (A2212/13T). I've installed the MotorWare software version 1.01.00.18 and successfully tested the motor using the project labs examples provided, such as Lab2c and Lab5c.

    My question is whether this setup (TMS320F28027F and DRV8301) supports the development of custom applications for controlling a BLDC motor, or if it's limited to the provided example projects. Specifically, I'm interested in creating my own application to run the BLDC motor and would like to know if it's possible and what steps or considerations are involved.

    Could you provide guidance or suggestions on how to proceed with developing a custom application for this setup?

  • Hi Kishor, 

    The F28027F and DRV8301 can be used together to build new projects/applications, and I think it might be best to check in with another team for further recommendations. 

    Please expect an initial response by next week.

    Thank you for your patience!

    Best Regards, 

    -Joshua

  • Hi Kishor, 

    I apologize for the delay in my absence. 

    Please expect a further response this week as I will loop in our c2000 team for comment.

    Best Regards, 

    -Joshua

  • Thank you for your support. However, I am using functions from the motorware_hal_tutorial.pdf, but I am encountering some errors. Could you provide example code for UART commands to control a motor, such as 'Rx_on' to turn the motor on and 'Rx_off' to turn it off? I am working with the Lab2C platform for this project.

  • As replied to you in another thread. There is no such example for you in motorWare. You may follow the HAL guide and refer to the SCI example in C2000Ware or controlSUITE.