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.

C2000 TMS320F28069M

Other Parts Discussed in Thread: TMS320F28069M, TMS320F28069F, MOTORWARE, ENERGIA, CONTROLSUITE, LAUNCHXL-F28069M, DRV8305

Hi,

What is the difference between TMS320F28069M and TMS320F28069F

Does they both work OK with Instant-spin ?

Thanks,

Roee

  • I see they should however the debugger giving me error when trying to load the flash

    C28xx: Error connecting to the target: (Error -1135 @ 0x0) The debug probe reported an error. Confirm debug probe configuration and connections, reset the debug probe, and retry the operation. (Emulation package 6.0.407.3)

    This is new board
    And bootselect looks OK
    Thanks
  • any MotorWare project will work on an "M" device. "F" device will only run -FOC projects, won't run -MOTION.

    the error has nothing to do with the silicon or the .out though. Looks like it's not powered.
  • It is powered since all LEDS are ON, and boot switches are OK
    looks to me like compilation error:

    error #10234-D: unresolved symbols remain
    error #10010: errors encountered during linking; "proj_lab11d.out" not built
    gmake: *** [proj_lab11d.out] Error 1
    gmake: Target 'all' not remade because of errors.

    is this code good only for F28069 chips?, how do I choose chip configuration?
    I know I can change the "build settings" - and choose the correct board
    but it doesn't help ....
    (and you already told me before not to touch default settings)
    Thanks,
    Roee
  • this error is compilation related. The previous was not.

    this code is good for F28069F or 69M chips. If you change to another F/M chip you need to link in the appropriate .cmd file for the different memory configuration.

    what is the detail of the error you are getting?

    it builds w/o error for me, so try going back to the default project settings.
  • Have made some progress - now computer see it as COM PORT - needed to change in device manager and check OVP ...
    I have to say that nothing is smooth with TI boards - you have to be super engineer in order to make everything work.
    In Arduino for example - it is just plug and play with no overhead of hours googling for strange answers ...
    Any way I have gone back to ENERGIA in order to see something .. got now :

    Connecting...
    fatal: C28xx: Error connecting to the target: (Error -1015 @ 0x0) Device is not responding to the request. Device may be locked, or the debug probe connection may be unreliable. Unlock the device if possible (e.g. use wait in reset mode, and power-cycle the board). If error persists, confirm configuration and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 6.0.14.5)

    In CCS took example 2806xGPIOSETUP
    got this:
    "C:\\ti\\ccsv6\\utils\\bin\\gmake" -k clean
    DEL /F "Example_2806xGpioSetup.out"
    DEL /F "Example_2806xGpioSetup.d" "F2806x_DefaultIsr.d" "F2806x_GlobalVariableDefs.d" "F2806x_PieCtrl.d" "F2806x_PieVect.d" "F2806x_SysCtrl.d"
    DEL /F "Example_2806xGpioSetup.obj" "F2806x_CodeStartBranch.obj" "F2806x_DefaultIsr.obj" "F2806x_GlobalVariableDefs.obj" "F2806x_PieCtrl.obj" "F2806x_PieVect.obj" "F2806x_SysCtrl.obj" "F2806x_usDelay.obj"
    DEL /F "F2806x_CodeStartBranch.d" "F2806x_usDelay.d"
    Could Not Find C:\ti\controlSUITE\device_support\f2806x\v151\F2806x_examples_ccsv5\gpio_setup\Debug\Example_2806xGpioSetup.out
    Could Not Find C:\ti\controlSUITE\device_support\f2806x\v151\F2806x_examples_ccsv5\gpio_setup\Debug\Example_2806xGpioSetup.d
    Could Not Find C:\ti\controlSUITE\device_support\f2806x\v151\F2806x_examples_ccsv5\gpio_setup\Debug\Example_2806xGpioSetup.obj
    Could Not Find C:\ti\controlSUITE\device_support\f2806x\v151\F2806x_examples_ccsv5\gpio_setup\Debug\F2806x_CodeStartBranch.d

    ??
    Thanks,
    Roee
  • certainly these tools are not for the Arduino fan. this is for professional engineering of deeply embedded control system, typically in very advanced power electronics applications. Arduino style tools wouldn't fit.

    as for your erros they look like a totally different set, so I'm not sure what you're trying to do.

    proj_lab11d compiles and run on LAUNCHXL-F28069M
    I'd use that as a starting point
  • So I am with you all the way :

    Should lab 11d - with single debug press should load to F28069M board?
    Or should I do additional settings before running the debugger ? (like in previous projects, settings Motor variable and so)

    Thanks,
    Roee
  • build_log.txt
    **** Build of configuration Release for project proj_lab11d ****
    
    "C:\\ti\\ccsv6\\utils\\bin\\gmake" -k all 
    'Building file: C:/ti/motorware/motorware_1_01_00_16_golden/sw/drivers/cpu/src/32b/f28x/f2806x/CodeStartBranch.asm'
    'Invoking: C2000 Compiler'
    "C:/ti/ccsv6/tools/compiler/c2000_15.12.3.LTS/bin/cl2000" -v28 -ml -mt -O2 --opt_for_speed=2 --include_path="C:/ti/motorware/motorware_1_01_00_16_golden/sw/modules/hal/boards/boostxldrv8305_revA/f28x/f2806x/src/" --include_path="C:/ti/ccsv6/tools/compiler/c2000_15.12.3.LTS/include" --include_path="C:/ti/motorware/motorware_1_01_00_16_golden/sw/solutions/instaspin_foc/boards/boostxldrv8305_revA/f28x/f2806xF/src" --include_path="C:/ti/motorware/motorware_1_01_00_16_golden" -g --define=FAST_ROM_V1p6 --define=NO_CTRL --diag_warning=225 --display_error_number --preproc_with_compile --preproc_dependency="CodeStartBranch.d"  "C:/ti/motorware/motorware_1_01_00_16_golden/sw/drivers/cpu/src/32b/f28x/f2806x/CodeStartBranch.asm"
    'Finished building: C:/ti/motorware/motorware_1_01_00_16_golden/sw/drivers/cpu/src/32b/f28x/f2806x/CodeStartBranch.asm'
    ' '
    'Building file: C:/ti/motorware/motorware_1_01_00_16_golden/sw/drivers/adc/src/32b/f28x/f2806x/adc.c'
    'Invoking: C2000 Compiler'
    "C:/ti/ccsv6/tools/compiler/c2000_15.12.3.LTS/bin/cl2000" -v28 -ml -mt -O2 --opt_for_speed=2 --include_path="C:/ti/motorware/motorware_1_01_00_16_golden/sw/modules/hal/boards/boostxldrv8305_revA/f28x/f2806x/src/" --include_path="C:/ti/ccsv6/tools/compiler/c2000_15.12.3.LTS/include" --include_path="C:/ti/motorware/motorware_1_01_00_16_golden/sw/solutions/instaspin_foc/boards/boostxldrv8305_revA/f28x/f2806xF/src" --include_path="C:/ti/motorware/motorware_1_01_00_16_golden" -g --define=FAST_ROM_V1p6 --define=NO_CTRL --diag_warning=225 --display_error_number --preproc_with_compile --preproc_dependency="adc.d"  "C:/ti/motorware/motorware_1_01_00_16_golden/sw/drivers/adc/src/32b/f28x/f2806x/adc.c"
    'Finished building: C:/ti/motorware/motorware_1_01_00_16_golden/sw/drivers/adc/src/32b/f28x/f2806x/adc.c'
    ' '
    'Building file: C:/ti/motorware/motorware_1_01_00_16_golden/sw/modules/angle_comp/src/32b/angle_comp.c'
    'Invoking: C2000 Compiler'
    "C:/ti/ccsv6/tools/compiler/c2000_15.12.3.LTS/bin/cl2000" -v28 -ml -mt -O2 --opt_for_speed=2 --include_path="C:/ti/motorware/motorware_1_01_00_16_golden/sw/modules/hal/boards/boostxldrv8305_revA/f28x/f2806x/src/" --include_path="C:/ti/ccsv6/tools/compiler/c2000_15.12.3.LTS/include" --include_path="C:/ti/motorware/motorware_1_01_00_16_golden/sw/solutions/instaspin_foc/boards/boostxldrv8305_revA/f28x/f2806xF/src" --include_path="C:/ti/motorware/motorware_1_01_00_16_golden" -g --define=FAST_ROM_V1p6 --define=NO_CTRL --diag_warning=225 --display_error_number --preproc_with_compile --preproc_dependency="angle_comp.d"  "C:/ti/motorware/motorware_1_01_00_16_golden/sw/modules/angle_comp/src/32b/angle_comp.c"
    'Finished building: C:/ti/motorware/motorware_1_01_00_16_golden/sw/modules/angle_comp/src/32b/angle_comp.c'
    ' '
    'Building file: C:/ti/motorware/motorware_1_01_00_16_golden/sw/modules/clarke/src/32b/clarke.c'
    'Invoking: C2000 Compiler'
    "C:/ti/ccsv6/tools/compiler/c2000_15.12.3.LTS/bin/cl2000" -v28 -ml -mt -O2 --opt_for_speed=2 --include_path="C:/ti/motorware/motorware_1_01_00_16_golden/sw/modules/hal/boards/boostxldrv8305_revA/f28x/f2806x/src/" --include_path="C:/ti/ccsv6/tools/compiler/c2000_15.12.3.LTS/include" --include_path="C:/ti/motorware/motorware_1_01_00_16_golden/sw/solutions/instaspin_foc/boards/boostxldrv8305_revA/f28x/f2806xF/src" --include_path="C:/ti/motorware/motorware_1_01_00_16_golden" -g --define=FAST_ROM_V1p6 --define=NO_CTRL --diag_warning=225 --display_error_number --preproc_with_compile --preproc_dependency="clarke.d"  "C:/ti/motorware/motorware_1_01_00_16_golden/sw/modules/clarke/src/32b/clarke.c"
    'Finished building: C:/ti/motorware/motorware_1_01_00_16_golden/sw/modules/clarke/src/32b/clarke.c'
    ' '
    'Building file: C:/ti/motorware/motorware_1_01_00_16_golden/sw/drivers/clk/src/32b/f28x/f2806x/clk.c'
    'Invoking: C2000 Compiler'
    "C:/ti/ccsv6/tools/compiler/c2000_15.12.3.LTS/bin/cl2000" -v28 -ml -mt -O2 --opt_for_speed=2 --include_path="C:/ti/motorware/motorware_1_01_00_16_golden/sw/modules/hal/boards/boostxldrv8305_revA/f28x/f2806x/src/" --include_path="C:/ti/ccsv6/tools/compiler/c2000_15.12.3.LTS/include" --include_path="C:/ti/motorware/motorware_1_01_00_16_golden/sw/solutions/instaspin_foc/boards/boostxldrv8305_revA/f28x/f2806xF/src" --include_path="C:/ti/motorware/motorware_1_01_00_16_golden" -g --define=FAST_ROM_V1p6 --define=NO_CTRL --diag_warning=225 --display_error_number --preproc_with_compile --preproc_dependency="clk.d"  "C:/ti/motorware/motorware_1_01_00_16_golden/sw/drivers/clk/src/32b/f28x/f2806x/clk.c"
    'Finished building: C:/ti/motorware/motorware_1_01_00_16_golden/sw/drivers/clk/src/32b/f28x/f2806x/clk.c'
    ' '
    'Building file: C:/ti/motorware/motorware_1_01_00_16_golden/sw/drivers/cpu/src/32b/f28x/f2806x/cpu.c'
    'Invoking: C2000 Compiler'
    "C:/ti/ccsv6/tools/compiler/c2000_15.12.3.LTS/bin/cl2000" -v28 -ml -mt -O2 --opt_for_speed=2 --include_path="C:/ti/motorware/motorware_1_01_00_16_golden/sw/modules/hal/boards/boostxldrv8305_revA/f28x/f2806x/src/" --include_path="C:/ti/ccsv6/tools/compiler/c2000_15.12.3.LTS/include" --include_path="C:/ti/motorware/motorware_1_01_00_16_golden/sw/solutions/instaspin_foc/boards/boostxldrv8305_revA/f28x/f2806xF/src" --include_path="C:/ti/motorware/motorware_1_01_00_16_golden" -g --define=FAST_ROM_V1p6 --define=NO_CTRL --diag_warning=225 --display_error_number --preproc_with_compile --preproc_dependency="cpu.d"  "C:/ti/motorware/motorware_1_01_00_16_golden/sw/drivers/cpu/src/32b/f28x/f2806x/cpu.c"
    'Finished building: C:/ti/motorware/motorware_1_01_00_16_golden/sw/drivers/cpu/src/32b/f28x/f2806x/cpu.c'
    ' '
    'Building file: C:/ti/motorware/motorware_1_01_00_16_golden/sw/drivers/drvic/drv8305/src/32b/f28x/f2806x/drv8305.c'
    'Invoking: C2000 Compiler'
    "C:/ti/ccsv6/tools/compiler/c2000_15.12.3.LTS/bin/cl2000" -v28 -ml -mt -O2 --opt_for_speed=2 --include_path="C:/ti/motorware/motorware_1_01_00_16_golden/sw/modules/hal/boards/boostxldrv8305_revA/f28x/f2806x/src/" --include_path="C:/ti/ccsv6/tools/compiler/c2000_15.12.3.LTS/include" --include_path="C:/ti/motorware/motorware_1_01_00_16_golden/sw/solutions/instaspin_foc/boards/boostxldrv8305_revA/f28x/f2806xF/src" --include_path="C:/ti/motorware/motorware_1_01_00_16_golden" -g --define=FAST_ROM_V1p6 --define=NO_CTRL --diag_warning=225 --display_error_number --preproc_with_compile --preproc_dependency="drv8305.d"  "C:/ti/motorware/motorware_1_01_00_16_golden/sw/drivers/drvic/drv8305/src/32b/f28x/f2806x/drv8305.c"
    'Finished building: C:/ti/motorware/motorware_1_01_00_16_golden/sw/drivers/drvic/drv8305/src/32b/f28x/f2806x/drv8305.c'
    ' '
    'Building file: C:/ti/motorware/motorware_1_01_00_16_golden/sw/modules/filter/src/32b/filter_fo.c'
    'Invoking: C2000 Compiler'
    "C:/ti/ccsv6/tools/compiler/c2000_15.12.3.LTS/bin/cl2000" -v28 -ml -mt -O2 --opt_for_speed=2 --include_path="C:/ti/motorware/motorware_1_01_00_16_golden/sw/modules/hal/boards/boostxldrv8305_revA/f28x/f2806x/src/" --include_path="C:/ti/ccsv6/tools/compiler/c2000_15.12.3.LTS/include" --include_path="C:/ti/motorware/motorware_1_01_00_16_golden/sw/solutions/instaspin_foc/boards/boostxldrv8305_revA/f28x/f2806xF/src" --include_path="C:/ti/motorware/motorware_1_01_00_16_golden" -g --define=FAST_ROM_V1p6 --define=NO_CTRL --diag_warning=225 --display_error_number --preproc_with_compile --preproc_dependency="filter_fo.d"  "C:/ti/motorware/motorware_1_01_00_16_golden/sw/modules/filter/src/32b/filter_fo.c"
    'Finished building: C:/ti/motorware/motorware_1_01_00_16_golden/sw/modules/filter/src/32b/filter_fo.c'
    ' '
    'Building file: C:/ti/motorware/motorware_1_01_00_16_golden/sw/drivers/flash/src/32b/f28x/f2806x/flash.c'
    'Invoking: C2000 Compiler'
    "C:/ti/ccsv6/tools/compiler/c2000_15.12.3.LTS/bin/cl2000" -v28 -ml -mt -O2 --opt_for_speed=2 --include_path="C:/ti/motorware/motorware_1_01_00_16_golden/sw/modules/hal/boards/boostxldrv8305_revA/f28x/f2806x/src/" --include_path="C:/ti/ccsv6/tools/compiler/c2000_15.12.3.LTS/include" --include_path="C:/ti/motorware/motorware_1_01_00_16_golden/sw/solutions/instaspin_foc/boards/boostxldrv8305_revA/f28x/f2806xF/src" --include_path="C:/ti/motorware/motorware_1_01_00_16_golden" -g --define=FAST_ROM_V1p6 --define=NO_CTRL --diag_warning=225 --display_error_number --preproc_with_compile --preproc_dependency="flash.d"  "C:/ti/motorware/motorware_1_01_00_16_golden/sw/drivers/flash/src/32b/f28x/f2806x/flash.c"
    'Finished building: C:/ti/motorware/motorware_1_01_00_16_golden/sw/drivers/flash/src/32b/f28x/f2806x/flash.c'
    ' '
    'Building file: C:/ti/motorware/motorware_1_01_00_16_golden/sw/drivers/gpio/src/32b/f28x/f2806x/gpio.c'
    'Invoking: C2000 Compiler'
    "C:/ti/ccsv6/tools/compiler/c2000_15.12.3.LTS/bin/cl2000" -v28 -ml -mt -O2 --opt_for_speed=2 --include_path="C:/ti/motorware/motorware_1_01_00_16_golden/sw/modules/hal/boards/boostxldrv8305_revA/f28x/f2806x/src/" --include_path="C:/ti/ccsv6/tools/compiler/c2000_15.12.3.LTS/include" --include_path="C:/ti/motorware/motorware_1_01_00_16_golden/sw/solutions/instaspin_foc/boards/boostxldrv8305_revA/f28x/f2806xF/src" --include_path="C:/ti/motorware/motorware_1_01_00_16_golden" -g --define=FAST_ROM_V1p6 --define=NO_CTRL --diag_warning=225 --display_error_number --preproc_with_compile --preproc_dependency="gpio.d"  "C:/ti/motorware/motorware_1_01_00_16_golden/sw/drivers/gpio/src/32b/f28x/f2806x/gpio.c"
    'Finished building: C:/ti/motorware/motorware_1_01_00_16_golden/sw/drivers/gpio/src/32b/f28x/f2806x/gpio.c'
    ' '
    'Building file: C:/ti/motorware/motorware_1_01_00_16_golden/sw/modules/hal/boards/boostxldrv8305_revA/f28x/f2806x/src/hal_2mtr.c'
    'Invoking: C2000 Compiler'
    "C:/ti/ccsv6/tools/compiler/c2000_15.12.3.LTS/bin/cl2000" -v28 -ml -mt -O2 --opt_for_speed=2 --include_path="C:/ti/motorware/motorware_1_01_00_16_golden/sw/modules/hal/boards/boostxldrv8305_revA/f28x/f2806x/src/" --include_path="C:/ti/ccsv6/tools/compiler/c2000_15.12.3.LTS/include" --include_path="C:/ti/motorware/motorware_1_01_00_16_golden/sw/solutions/instaspin_foc/boards/boostxldrv8305_revA/f28x/f2806xF/src" --include_path="C:/ti/motorware/motorware_1_01_00_16_golden" -g --define=FAST_ROM_V1p6 --define=NO_CTRL --diag_warning=225 --display_error_number --preproc_with_compile --preproc_dependency="hal_2mtr.d"  "C:/ti/motorware/motorware_1_01_00_16_golden/sw/modules/hal/boards/boostxldrv8305_revA/f28x/f2806x/src/hal_2mtr.c"
    'Finished building: C:/ti/motorware/motorware_1_01_00_16_golden/sw/modules/hal/boards/boostxldrv8305_revA/f28x/f2806x/src/hal_2mtr.c'
    ' '
    'Building file: C:/ti/motorware/motorware_1_01_00_16_golden/sw/modules/ipark/src/32b/ipark.c'
    'Invoking: C2000 Compiler'
    "C:/ti/ccsv6/tools/compiler/c2000_15.12.3.LTS/bin/cl2000" -v28 -ml -mt -O2 --opt_for_speed=2 --include_path="C:/ti/motorware/motorware_1_01_00_16_golden/sw/modules/hal/boards/boostxldrv8305_revA/f28x/f2806x/src/" --include_path="C:/ti/ccsv6/tools/compiler/c2000_15.12.3.LTS/include" --include_path="C:/ti/motorware/motorware_1_01_00_16_golden/sw/solutions/instaspin_foc/boards/boostxldrv8305_revA/f28x/f2806xF/src" --include_path="C:/ti/motorware/motorware_1_01_00_16_golden" -g --define=FAST_ROM_V1p6 --define=NO_CTRL --diag_warning=225 --display_error_number --preproc_with_compile --preproc_dependency="ipark.d"  "C:/ti/motorware/motorware_1_01_00_16_golden/sw/modules/ipark/src/32b/ipark.c"
    'Finished building: C:/ti/motorware/motorware_1_01_00_16_golden/sw/modules/ipark/src/32b/ipark.c'
    ' '
    'Building file: C:/ti/motorware/motorware_1_01_00_16_golden/sw/drivers/osc/src/32b/f28x/f2806x/osc.c'
    'Invoking: C2000 Compiler'
    "C:/ti/ccsv6/tools/compiler/c2000_15.12.3.LTS/bin/cl2000" -v28 -ml -mt -O2 --opt_for_speed=2 --include_path="C:/ti/motorware/motorware_1_01_00_16_golden/sw/modules/hal/boards/boostxldrv8305_revA/f28x/f2806x/src/" --include_path="C:/ti/ccsv6/tools/compiler/c2000_15.12.3.LTS/include" --include_path="C:/ti/motorware/motorware_1_01_00_16_golden/sw/solutions/instaspin_foc/boards/boostxldrv8305_revA/f28x/f2806xF/src" --include_path="C:/ti/motorware/motorware_1_01_00_16_golden" -g --define=FAST_ROM_V1p6 --define=NO_CTRL --diag_warning=225 --display_error_number --preproc_with_compile --preproc_dependency="osc.d"  "C:/ti/motorware/motorware_1_01_00_16_golden/sw/drivers/osc/src/32b/f28x/f2806x/osc.c"
    'Finished building: C:/ti/motorware/motorware_1_01_00_16_golden/sw/drivers/osc/src/32b/f28x/f2806x/osc.c'
    ' '
    'Building file: C:/ti/motorware/motorware_1_01_00_16_golden/sw/modules/pid/src/32b/pid.c'
    'Invoking: C2000 Compiler'
    "C:/ti/ccsv6/tools/compiler/c2000_15.12.3.LTS/bin/cl2000" -v28 -ml -mt -O2 --opt_for_speed=2 --include_path="C:/ti/motorware/motorware_1_01_00_16_golden/sw/modules/hal/boards/boostxldrv8305_revA/f28x/f2806x/src/" --include_path="C:/ti/ccsv6/tools/compiler/c2000_15.12.3.LTS/include" --include_path="C:/ti/motorware/motorware_1_01_00_16_golden/sw/solutions/instaspin_foc/boards/boostxldrv8305_revA/f28x/f2806xF/src" --include_path="C:/ti/motorware/motorware_1_01_00_16_golden" -g --define=FAST_ROM_V1p6 --define=NO_CTRL --diag_warning=225 --display_error_number --preproc_with_compile --preproc_dependency="pid.d"  "C:/ti/motorware/motorware_1_01_00_16_golden/sw/modules/pid/src/32b/pid.c"
    'Finished building: C:/ti/motorware/motorware_1_01_00_16_golden/sw/modules/pid/src/32b/pid.c'
    ' '
    'Building file: C:/ti/motorware/motorware_1_01_00_16_golden/sw/drivers/pie/src/32b/f28x/f2806x/pie.c'
    'Invoking: C2000 Compiler'
    "C:/ti/ccsv6/tools/compiler/c2000_15.12.3.LTS/bin/cl2000" -v28 -ml -mt -O2 --opt_for_speed=2 --include_path="C:/ti/motorware/motorware_1_01_00_16_golden/sw/modules/hal/boards/boostxldrv8305_revA/f28x/f2806x/src/" --include_path="C:/ti/ccsv6/tools/compiler/c2000_15.12.3.LTS/include" --include_path="C:/ti/motorware/motorware_1_01_00_16_golden/sw/solutions/instaspin_foc/boards/boostxldrv8305_revA/f28x/f2806xF/src" --include_path="C:/ti/motorware/motorware_1_01_00_16_golden" -g --define=FAST_ROM_V1p6 --define=NO_CTRL --diag_warning=225 --display_error_number --preproc_with_compile --preproc_dependency="pie.d"  "C:/ti/motorware/motorware_1_01_00_16_golden/sw/drivers/pie/src/32b/f28x/f2806x/pie.c"
    'Finished building: C:/ti/motorware/motorware_1_01_00_16_golden/sw/drivers/pie/src/32b/f28x/f2806x/pie.c'
    ' '
    'Building file: C:/ti/motorware/motorware_1_01_00_16_golden/sw/drivers/pll/src/32b/f28x/f2806x/pll.c'
    'Invoking: C2000 Compiler'
    "C:/ti/ccsv6/tools/compiler/c2000_15.12.3.LTS/bin/cl2000" -v28 -ml -mt -O2 --opt_for_speed=2 --include_path="C:/ti/motorware/motorware_1_01_00_16_golden/sw/modules/hal/boards/boostxldrv8305_revA/f28x/f2806x/src/" --include_path="C:/ti/ccsv6/tools/compiler/c2000_15.12.3.LTS/include" --include_path="C:/ti/motorware/motorware_1_01_00_16_golden/sw/solutions/instaspin_foc/boards/boostxldrv8305_revA/f28x/f2806xF/src" --include_path="C:/ti/motorware/motorware_1_01_00_16_golden" -g --define=FAST_ROM_V1p6 --define=NO_CTRL --diag_warning=225 --display_error_number --preproc_with_compile --preproc_dependency="pll.d"  "C:/ti/motorware/motorware_1_01_00_16_golden/sw/drivers/pll/src/32b/f28x/f2806x/pll.c"
    'Finished building: C:/ti/motorware/motorware_1_01_00_16_golden/sw/drivers/pll/src/32b/f28x/f2806x/pll.c'
    ' '
    'Building file: C:/ti/motorware/motorware_1_01_00_16_golden/sw/solutions/instaspin_foc/src/proj_lab11d.c'
    'Invoking: C2000 Compiler'
    "C:/ti/ccsv6/tools/compiler/c2000_15.12.3.LTS/bin/cl2000" -v28 -ml -mt -O2 --opt_for_speed=2 --include_path="C:/ti/motorware/motorware_1_01_00_16_golden/sw/modules/hal/boards/boostxldrv8305_revA/f28x/f2806x/src/" --include_path="C:/ti/ccsv6/tools/compiler/c2000_15.12.3.LTS/include" --include_path="C:/ti/motorware/motorware_1_01_00_16_golden/sw/solutions/instaspin_foc/boards/boostxldrv8305_revA/f28x/f2806xF/src" --include_path="C:/ti/motorware/motorware_1_01_00_16_golden" -g --define=FAST_ROM_V1p6 --define=NO_CTRL --diag_warning=225 --display_error_number --preproc_with_compile --preproc_dependency="proj_lab11d.d"  "C:/ti/motorware/motorware_1_01_00_16_golden/sw/solutions/instaspin_foc/src/proj_lab11d.c"
    'Finished building: C:/ti/motorware/motorware_1_01_00_16_golden/sw/solutions/instaspin_foc/src/proj_lab11d.c'
    ' '
    'Building file: C:/ti/motorware/motorware_1_01_00_16_golden/sw/drivers/pwm/src/32b/f28x/f2806x/pwm.c'
    'Invoking: C2000 Compiler'
    "C:/ti/ccsv6/tools/compiler/c2000_15.12.3.LTS/bin/cl2000" -v28 -ml -mt -O2 --opt_for_speed=2 --include_path="C:/ti/motorware/motorware_1_01_00_16_golden/sw/modules/hal/boards/boostxldrv8305_revA/f28x/f2806x/src/" --include_path="C:/ti/ccsv6/tools/compiler/c2000_15.12.3.LTS/include" --include_path="C:/ti/motorware/motorware_1_01_00_16_golden/sw/solutions/instaspin_foc/boards/boostxldrv8305_revA/f28x/f2806xF/src" --include_path="C:/ti/motorware/motorware_1_01_00_16_golden" -g --define=FAST_ROM_V1p6 --define=NO_CTRL --diag_warning=225 --display_error_number --preproc_with_compile --preproc_dependency="pwm.d"  "C:/ti/motorware/motorware_1_01_00_16_golden/sw/drivers/pwm/src/32b/f28x/f2806x/pwm.c"
    'Finished building: C:/ti/motorware/motorware_1_01_00_16_golden/sw/drivers/pwm/src/32b/f28x/f2806x/pwm.c'
    ' '
    'Building file: C:/ti/motorware/motorware_1_01_00_16_golden/sw/drivers/pwr/src/32b/f28x/f2806x/pwr.c'
    'Invoking: C2000 Compiler'
    "C:/ti/ccsv6/tools/compiler/c2000_15.12.3.LTS/bin/cl2000" -v28 -ml -mt -O2 --opt_for_speed=2 --include_path="C:/ti/motorware/motorware_1_01_00_16_golden/sw/modules/hal/boards/boostxldrv8305_revA/f28x/f2806x/src/" --include_path="C:/ti/ccsv6/tools/compiler/c2000_15.12.3.LTS/include" --include_path="C:/ti/motorware/motorware_1_01_00_16_golden/sw/solutions/instaspin_foc/boards/boostxldrv8305_revA/f28x/f2806xF/src" --include_path="C:/ti/motorware/motorware_1_01_00_16_golden" -g --define=FAST_ROM_V1p6 --define=NO_CTRL --diag_warning=225 --display_error_number --preproc_with_compile --preproc_dependency="pwr.d"  "C:/ti/motorware/motorware_1_01_00_16_golden/sw/drivers/pwr/src/32b/f28x/f2806x/pwr.c"
    'Finished building: C:/ti/motorware/motorware_1_01_00_16_golden/sw/drivers/pwr/src/32b/f28x/f2806x/pwr.c'
    ' '
    'Building file: C:/ti/motorware/motorware_1_01_00_16_golden/sw/drivers/spi/src/32b/f28x/f2806x/spi.c'
    'Invoking: C2000 Compiler'
    "C:/ti/ccsv6/tools/compiler/c2000_15.12.3.LTS/bin/cl2000" -v28 -ml -mt -O2 --opt_for_speed=2 --include_path="C:/ti/motorware/motorware_1_01_00_16_golden/sw/modules/hal/boards/boostxldrv8305_revA/f28x/f2806x/src/" --include_path="C:/ti/ccsv6/tools/compiler/c2000_15.12.3.LTS/include" --include_path="C:/ti/motorware/motorware_1_01_00_16_golden/sw/solutions/instaspin_foc/boards/boostxldrv8305_revA/f28x/f2806xF/src" --include_path="C:/ti/motorware/motorware_1_01_00_16_golden" -g --define=FAST_ROM_V1p6 --define=NO_CTRL --diag_warning=225 --display_error_number --preproc_with_compile --preproc_dependency="spi.d"  "C:/ti/motorware/motorware_1_01_00_16_golden/sw/drivers/spi/src/32b/f28x/f2806x/spi.c"
    'Finished building: C:/ti/motorware/motorware_1_01_00_16_golden/sw/drivers/spi/src/32b/f28x/f2806x/spi.c'
    ' '
    'Building file: C:/ti/motorware/motorware_1_01_00_16_golden/sw/modules/svgen/src/32b/svgen.c'
    'Invoking: C2000 Compiler'
    "C:/ti/ccsv6/tools/compiler/c2000_15.12.3.LTS/bin/cl2000" -v28 -ml -mt -O2 --opt_for_speed=2 --include_path="C:/ti/motorware/motorware_1_01_00_16_golden/sw/modules/hal/boards/boostxldrv8305_revA/f28x/f2806x/src/" --include_path="C:/ti/ccsv6/tools/compiler/c2000_15.12.3.LTS/include" --include_path="C:/ti/motorware/motorware_1_01_00_16_golden/sw/solutions/instaspin_foc/boards/boostxldrv8305_revA/f28x/f2806xF/src" --include_path="C:/ti/motorware/motorware_1_01_00_16_golden" -g --define=FAST_ROM_V1p6 --define=NO_CTRL --diag_warning=225 --display_error_number --preproc_with_compile --preproc_dependency="svgen.d"  "C:/ti/motorware/motorware_1_01_00_16_golden/sw/modules/svgen/src/32b/svgen.c"
    'Finished building: C:/ti/motorware/motorware_1_01_00_16_golden/sw/modules/svgen/src/32b/svgen.c'
    ' '
    'Building file: C:/ti/motorware/motorware_1_01_00_16_golden/sw/drivers/timer/src/32b/f28x/f2806x/timer.c'
    'Invoking: C2000 Compiler'
    "C:/ti/ccsv6/tools/compiler/c2000_15.12.3.LTS/bin/cl2000" -v28 -ml -mt -O2 --opt_for_speed=2 --include_path="C:/ti/motorware/motorware_1_01_00_16_golden/sw/modules/hal/boards/boostxldrv8305_revA/f28x/f2806x/src/" --include_path="C:/ti/ccsv6/tools/compiler/c2000_15.12.3.LTS/include" --include_path="C:/ti/motorware/motorware_1_01_00_16_golden/sw/solutions/instaspin_foc/boards/boostxldrv8305_revA/f28x/f2806xF/src" --include_path="C:/ti/motorware/motorware_1_01_00_16_golden" -g --define=FAST_ROM_V1p6 --define=NO_CTRL --diag_warning=225 --display_error_number --preproc_with_compile --preproc_dependency="timer.d"  "C:/ti/motorware/motorware_1_01_00_16_golden/sw/drivers/timer/src/32b/f28x/f2806x/timer.c"
    'Finished building: C:/ti/motorware/motorware_1_01_00_16_golden/sw/drivers/timer/src/32b/f28x/f2806x/timer.c'
    ' '
    'Building file: C:/ti/motorware/motorware_1_01_00_16_golden/sw/modules/usDelay/src/32b/f28x/usDelay.asm'
    'Invoking: C2000 Compiler'
    "C:/ti/ccsv6/tools/compiler/c2000_15.12.3.LTS/bin/cl2000" -v28 -ml -mt -O2 --opt_for_speed=2 --include_path="C:/ti/motorware/motorware_1_01_00_16_golden/sw/modules/hal/boards/boostxldrv8305_revA/f28x/f2806x/src/" --include_path="C:/ti/ccsv6/tools/compiler/c2000_15.12.3.LTS/include" --include_path="C:/ti/motorware/motorware_1_01_00_16_golden/sw/solutions/instaspin_foc/boards/boostxldrv8305_revA/f28x/f2806xF/src" --include_path="C:/ti/motorware/motorware_1_01_00_16_golden" -g --define=FAST_ROM_V1p6 --define=NO_CTRL --diag_warning=225 --display_error_number --preproc_with_compile --preproc_dependency="usDelay.d"  "C:/ti/motorware/motorware_1_01_00_16_golden/sw/modules/usDelay/src/32b/f28x/usDelay.asm"
    'Finished building: C:/ti/motorware/motorware_1_01_00_16_golden/sw/modules/usDelay/src/32b/f28x/usDelay.asm'
    ' '
    'Building file: C:/ti/motorware/motorware_1_01_00_16_golden/sw/modules/user/src/32b/user_2mtr.c'
    'Invoking: C2000 Compiler'
    "C:/ti/ccsv6/tools/compiler/c2000_15.12.3.LTS/bin/cl2000" -v28 -ml -mt -O2 --opt_for_speed=2 --include_path="C:/ti/motorware/motorware_1_01_00_16_golden/sw/modules/hal/boards/boostxldrv8305_revA/f28x/f2806x/src/" --include_path="C:/ti/ccsv6/tools/compiler/c2000_15.12.3.LTS/include" --include_path="C:/ti/motorware/motorware_1_01_00_16_golden/sw/solutions/instaspin_foc/boards/boostxldrv8305_revA/f28x/f2806xF/src" --include_path="C:/ti/motorware/motorware_1_01_00_16_golden" -g --define=FAST_ROM_V1p6 --define=NO_CTRL --diag_warning=225 --display_error_number --preproc_with_compile --preproc_dependency="user_2mtr.d"  "C:/ti/motorware/motorware_1_01_00_16_golden/sw/modules/user/src/32b/user_2mtr.c"
    'Finished building: C:/ti/motorware/motorware_1_01_00_16_golden/sw/modules/user/src/32b/user_2mtr.c'
    ' '
    'Building file: C:/ti/motorware/motorware_1_01_00_16_golden/sw/drivers/wdog/src/32b/f28x/f2806x/wdog.c'
    'Invoking: C2000 Compiler'
    "C:/ti/ccsv6/tools/compiler/c2000_15.12.3.LTS/bin/cl2000" -v28 -ml -mt -O2 --opt_for_speed=2 --include_path="C:/ti/motorware/motorware_1_01_00_16_golden/sw/modules/hal/boards/boostxldrv8305_revA/f28x/f2806x/src/" --include_path="C:/ti/ccsv6/tools/compiler/c2000_15.12.3.LTS/include" --include_path="C:/ti/motorware/motorware_1_01_00_16_golden/sw/solutions/instaspin_foc/boards/boostxldrv8305_revA/f28x/f2806xF/src" --include_path="C:/ti/motorware/motorware_1_01_00_16_golden" -g --define=FAST_ROM_V1p6 --define=NO_CTRL --diag_warning=225 --display_error_number --preproc_with_compile --preproc_dependency="wdog.d"  "C:/ti/motorware/motorware_1_01_00_16_golden/sw/drivers/wdog/src/32b/f28x/f2806x/wdog.c"
    'Finished building: C:/ti/motorware/motorware_1_01_00_16_golden/sw/drivers/wdog/src/32b/f28x/f2806x/wdog.c'
    ' '
    'Building target: proj_lab11d.out'
    'Invoking: C2000 Linker'
    "C:/ti/ccsv6/tools/compiler/c2000_15.12.3.LTS/bin/cl2000" -v28 -ml -mt -O2 --opt_for_speed=2 -g --define=FAST_ROM_V1p6 --define=NO_CTRL --diag_warning=225 --display_error_number -z -m"proj_lab11d.map" --stack_size=0x3B0 --warn_sections -i"C:/ti/ccsv6/tools/compiler/c2000_15.12.3.LTS/lib" -i"C:/ti/ccsv6/tools/compiler/c2000_15.12.3.LTS/include" --reread_libs --priority --disable_auto_rts --diag_suppress=16002 --xml_link_info="proj_lab11d_linkInfo.xml" --rom_model -o "proj_lab11d.out" -lrts2800_ml.lib "C:/ti/motorware/motorware_1_01_00_16_golden/sw/modules/fast/lib/32b/f28x/f2806x/2806xRevB_FastSpinROMSymbols.lib" "C:/ti/motorware/motorware_1_01_00_16_golden/sw/modules/iqmath/lib/f28x/32b/IQmath.lib" "./CodeStartBranch.obj" "./adc.obj" "./angle_comp.obj" "./clarke.obj" "./clk.obj" "./cpu.obj" "./drv8305.obj" "./filter_fo.obj" "./flash.obj" "./gpio.obj" "./hal_2mtr.obj" "./ipark.obj" "./osc.obj" "./pid.obj" "./pie.obj" "./pll.obj" "./proj_lab11d.obj" "./pwm.obj" "./pwr.obj" "./spi.obj" "./svgen.obj" "./timer.obj" "./usDelay.obj" "./user_2mtr.obj" "./wdog.obj" "C:/ti/motorware/motorware_1_01_00_16_golden/sw/modules/fast/lib/32b/f28x/EST_getIdq_pu.lib" "C:/ti/motorware/motorware_1_01_00_16_golden/sw/ide/ccs/cmd/f2806x/f28069F_ram_lnk.cmd"  
    <Linking>
    'Finished building target: proj_lab11d.out'
    ' '
    
    **** Build Finished ****
    
     I am attaching the build log and error report

    The build complete successfully, as far as I understand this is only connection problem.

    Please be aware that my environment already flashing C2000 F28027 OK

    So drivers and connections should be the same.

    Thanks,

    Roee

  • "Should lab 11d - with single debug press should load to F28069M board?"
    Yes

    "Or should I do additional settings before running the debugger ? (like in previous projects, settings Motor variable and so)"
    Well, if you want it to start running w/o any interaction through the debugger
  • your jumpers/switches are not correct. read the documentation.

    readmefirst_instaspin_launchboost.pdf
  • OK
    Now I have succeeded to flash the code
    BTW what is the difference between: debugger Flash and release ?
    Any way this lab (11d) doesn't spin my motor at all
    It is connected to upper (J1 J4)
    And JP4 and JP5 are OFF (open)
    Any suggestions ?
    Thanks!
  • there isn't a write up for this lab so you have to look through the code to see the variables you need to manipulate.
    notice there are handles for MTR_1 and MTR_2 now
    gMotorVars[HAL_MTR1].Flag_enableSys

    and if you don't have a boosterpack connected to JP4/JP5 why are you using 11d?
  • Hi Chris,
    Let me understand something:
    If I have 2 DRV8305 installed - but just one of them is connected to POWER and MOTOR - should it work ok?,
    Or the SW tries to measure also data from the second board and it will not enable first motor if it doesn't detect power or so ?

    Second there are too many users files: user_j1.h, user_j5.h, user_mtr_on_j1.h, user_mtr_on_j5.h, user.h, user1.h,user2.h
    Which of them to change to include my motor? (similiar to old labs I see that user_mtr_on_j1.h and j2 are like in old labs)

    Last:
    In order to start automatically after main (spinning) I need to use only the following?

    gMotorVars[HAL_MTR1].Flag_enableSys=true;
    gMotorVars[HAL_MTR2].Flag_enableSys=true;

    Thanks
  • "If I have 2 DRV8305 installed - but just one of them is connected to POWER and MOTOR - should it work ok?,"
    Yes

    "Which of them to change to include my motor? "
    Follow the code in proj_lab11d to see which files are used

    proj_lab11d includes
    user_2mtr.c which includes
    user1.h and user2.h which include
    user_mtr_on_j1.h and user_mtr_on_j2.h


    "In order to start automatically after main (spinning) I need to use only the following?"
    look through the logic of the for loop and ISRs to determine what variables influence operation
    for(;;)
    motor1_ISR
    motor2_ISR
  • Thanks working and spinning
    Now This is not working for me:
    gMotorVars[HAL_MTR1].SpeedRef_krpm = 0.6

    How do I change Motor speed, and read it in debugger ?
    Thanks
  • remember those are IQ values
    _IQ(0.6)

    look in the code for the gMotorVars[]
    Speed and SpeedEst just like in the other labs
  • A little confused
    Can I set it after main immediately before the loop?

    and this is:
    // set target speed
    gMotorVars[mtrNum].SpeedRef_pu = _IQmpy(gMotorVars[mtrNum].SpeedRef_krpm,
    gSpeed_krpm_to_pu_sf[mtrNum]);

    so:
    gMotorVars[mtrNum].SpeedRef_pu =_IQ(0.6)
    ?
    Thanks,
    Roee
  • you set a speed in KRPM
    gMotorVars[mtrNum].SpeedRef_krpm

    it is translated to a per unit value that the controller needs
    gMotorVars[mtrNum].SpeedRef_pu = _IQmpy(gMotorVars[mtrNum].SpeedRef_krpm,
    gSpeed_krpm_to_pu_sf[mtrNum]);

    and then used by the EST and speed PID:
    EST_run(estHandle[HAL_MTR1],&Iab_pu,&Vab_pu,gAdcData[HAL_MTR1].dcBus,gMotorVars[HAL_MTR1].SpeedRef_pu);

    PID_run_spd(pidHandle[HAL_MTR2][0],gMotorVars[HAL_MTR2].SpeedRef_pu,speed_pu,
    &(gIdq_ref_pu[HAL_MTR2].value[1]));


    in projects 2 - 10 this was done by
    // set the speed reference
    CTRL_setSpd_ref_krpm(ctrlHandle,gMotorVars.SpeedRef_krpm);
  • OK,
    But in this project 11d (not 2-10)
    These lines:
    gMotorVars[1].SpeedRef_pu =(0.6);
    gMotorVars[2].SpeedRef_pu =(0.6);

    Don't work ?

    In eaelier projects I set them _IQ(0.6) or something like this ...
    Don't remember how to make it change the speed ....
    Thanks,
  • gMotorVars[mtrNum].SpeedRef_krpm = _IQ(0.6); // sets 600 RPM

    this is right out of the other labs.
  • OK Succeeded now!
    I have tried to write it after main()
    But this did not work..
    I had to write it somewhere inside the for(;;)
    But I don't know if this is a good idea to write there ... - probably the best way is to send to another function every 100,000 cycles or so - in order to make the for(;;) too bussy about these settings
    Any way -
    When writing high value (about 600 RPM) the motor doesn't start - but it is noisy (looks like PI loop is not closed ok)
    And if starting at default (I guess this is about 100 RPM) - when I apply little force on motor it stops and the nFAULT RED led in DRV8305 is lighting

    How to overcome this, and apply high torque on slow RPM, and what is the correct way to do so?
    Thanks,
    Roee
  • "When writing high value (about 600 RPM) the motor doesn't start - but it is noisy (looks like PI loop is not closed ok)"

    I can't debug this for you. I don't know what you are doing at start-up, what options you are using, what sort of loads, the max current you can produce, etc.

    Setting a speed of 600 RPM should not be a problem for start-up.

    "And if starting at default (I guess this is about 100 RPM) - when I apply little force on motor it stops and the nFAULT RED led in DRV8305 is lighting"

    Again, I can't debug your issue, but it sounds like the drive is over-currenting, which would make me suspect that you are using a motor that can pull more current than the inverter can source.

    I also recommend you read through SPRUHJ1 chapter on start-up with load