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.

motor control and PFC development

Other Parts Discussed in Thread: CONTROLSUITE, CCSTUDIO

 hello, I brought the motor control and PFC developer's kit. I follow the quick start guide instruction but the watch window don't show up. also my motor still free when I debug..

I use:

1. code compose v6

2. 2xpm_motor

 

anybody can teach me directly?

urgent

  • Hi Aaron

    Could you give the kit name and the controller more detailed? We need to find our experts for the kit.

    Best regards,
  • Hi Wilson,

    The kit TMDS2MTRDFCKIT.
  • Aaron,

    I am moving your post to the InstaSPIN forum for better support.

  • Aaron,
    This kit is very old and was released with CCSv4. We are now on CCSv6 and some of the names have changed.

    Watch Window= View --> Expressions

    see if you can manipulate the variables now and run the project.
  • Hi, Chris
    I already done that but nothing variables show. Only show ''+add new expression'
  • the variables don't automatically populate. You need to add them manually per the documentation.

    C:\ti\controlSUITE\development_kits\LVMultiAxis+PfcKit_v1.4\~Docs\LVMultiAxis+PfcKit_HowToRunGuidev1.1.pdf

  • Hi Chris,
    thanks for the reply
    I already follow the guide that you have give but when i launched debug session and added the necessary variables in the expression tab.

    Then i reset the CPU, restarted, enabled real time silicon mode and real time polite mode.

    This error massage show up
    Trouble Reading PC Register:
    (Error -1142 @ 0x0)
    Device blocked debug access because it is currently executing non-debuggable code. Choose 'Rude Retry' to disable polite mode and force the operation.
    (Emulation package 5.0.747.0)

    And the both motor still did't lock.
  • that's the usually the message you seen when you leave the Real-time mode enabled while you try to re-load new code.

  • but after i enable real-time mode, i just click Resume and this massage pop-up
    2. after i rebuild program, i got a warning " Build attribute vendor section TI missing in'.
  • And this also

    Description Resource Path Location Type

    entry-point symbol "_c_int00" undefined Commros_user.c /TMDS2MTRPFCKIT-2xPM_Sensorless/src Crosshairs C/C++ Problem

    unresolved symbol FS$$DIV, first referenced in ./2xPM_Sensorless.obj TMDS2MTRPFCKIT-2xPM_Sensorless C/C++ Problem

    unresolved symbol FS$$ADD, first referenced in ./2xPM_Sensorless.obj TMDS2MTRPFCKIT-2xPM_Sensorless C/C++ Problem

    unresolved symbol FS$$SUB, first referenced in ./2xPM_Sensorless.obj TMDS2MTRPFCKIT-2xPM_Sensorless C/C++ Problem

    unresolved symbol FS$$MPY, first referenced in ./2xPM_Sensorless.obj TMDS2MTRPFCKIT-2xPM_Sensorless C/C++ Problem

    unresolved symbol FS$$TOU, first referenced in ./2xPM_Sensorless.obj TMDS2MTRPFCKIT-2xPM_Sensorless C/C++ Problem

    unresolved symbol FS$$TOFD, first referenced in ./2xPM_Sensorless.obj TMDS2MTRPFCKIT-2xPM_Sensorless C/C++ Problem

    unresolved symbol LL$$OR, first referenced in ../src TMDS2MTRPFCKIT-2xPM_Sensorless C/C++ Problem

    unresolved symbol LL$$CMP, first referenced in ../src TMDS2MTRPFCKIT-2xPM_Sensorless C/C++ Problem

    unresolved symbol _exp, first referenced in ./2xPM_Sensorless.obj TMDS2MTRPFCKIT-2xPM_Sensorless C/C++ Problem

    unresolved symbol U$$TOFS, first referenced in ./2xPM_Sensorless.obj TMDS2MTRPFCKIT-2xPM_Sensorless C/C++ Problem

    unresolved symbol _prolog_c28x_2, first referenced in ./2xPM_Sensorless.obj TMDS2MTRPFCKIT-2xPM_Sensorless C/C++ Problem

    unresolved symbol _memset, first referenced in ../src TMDS2MTRPFCKIT-2xPM_Sensorless C/C++ Problem

    unresolved symbols remain Commros_user.c /TMDS2MTRPFCKIT-2xPM_Sensorless/src Crosshairs C/C++ Problem

    errors encountered during linking; "TMDS2MTRPFCKIT-2xPM_Sensorless.out" Commros_user.c /TMDS2MTRPFCKIT-2xPM_Sensorless/src Crosshairs C/C++ Problem

    unresolved symbol FD$$MPY, first referenced in ./2xPM_Sensorless.obj TMDS2MTRPFCKIT-2xPM_Sensorless C/C++ Problem

    unresolved symbol FD$$TOL, first referenced in ./2xPM_Sensorless.obj TMDS2MTRPFCKIT-2xPM_Sensorless C/C++ Problem

  • if you dont mind Chrisyou can check my program by using team viewer
  • I don't know what that means. If you are asking for me to remotely view your issue on your PC, no, sorry we don't offer services like that.

    I imported the project into CCSv6.
    make sure you do NOT select the "Automatically import..." or the "Copy project..." options as it will mess up the file paths.
    The project built but did have the same warnings (this is a known issue with the version of the IQMath library being used)

    <Linking>
    warning: build attribute vendor section TI missing in
    "C:/ti/controlSUITE/libs/math/IQmath/v15c/lib/IQmath.lib<IQ24atan2PU.obj>":
    compatibility cannot be determined
    warning: build attribute vendor section TI missing in
    "C:/ti/controlSUITE/libs/math/IQmath/v15c/lib/IQmath.lib<IQ24cosPU.obj>":
    compatibility cannot be determined
    warning: build attribute vendor section TI missing in
    "C:/ti/controlSUITE/libs/math/IQmath/v15c/lib/IQmath.lib<IQ24sinPU.obj>":
    compatibility cannot be determined
    warning: build attribute vendor section TI missing in
    "C:/ti/controlSUITE/libs/math/IQmath/v15c/lib/IQmath.lib<IQmathTables.obj>":
    compatibility cannot be determined
    'Finished building target: TMDS2MTRPFCKIT-2xPM_Sensorless.out'
    ' '

    **** Build Finished ****


    Again, I do not have this specific kit to use, but I ran the project on the controlCARD and all the variables worked, IsrTicker updating, etc.

    I would make sure you have imported the project correctly and start with Build Level 1. Beyond that you may consider a fresh install of CCStudio.
  • Hi Chris, Thank you very much.Now i got 1 warning.
    Invalid project path: Include path not found (C:\ti\ccsv6\tools\compiler\c2000_5.2.3\include). TMDS2MTRPFCKIT-2xPM_Sensorless pathentry Path Entry Problem
  • PAGE 0:
             progRAM	    : origin = 0x008000, length = 0x001000 /* on-chip RAM (L0-L2)*/
    	OTP         : origin = 0x3D7800, length = 0x000400     /* on-chip OTP */
    	FLASHH      : origin = 0x3E8000, length = 0x002000     /* on-chip FLASH */
    	FLASHG      : origin = 0x3EA000, length = 0x002000     /* on-chip FLASH */
    	FLASHF      : origin = 0x3EC000, length = 0x002000     /* on-chip FLASH */
    	FLASHE      : origin = 0x3EE000, length = 0x002000     /* on-chip FLASH */
    	FLASHD      : origin = 0x3F0000, length = 0x002000     /* on-chip FLASH */
    	FLASHC      : origin = 0x3F2000, length = 0x002000     /* on-chip FLASH */
    	FLASHA      : origin = 0x3F6000, length = 0x001F80     /* on-chip FLASH */
    	CSM_RSVD    : origin = 0x3F7F80, length = 0x000076     /* Part of FLASHA.  Program with all 0x0000 when CSM is in use. */
    	BEGIN       : origin = 0x3F7FF6, length = 0x000002     /* Part of FLASHA.  Used for "boot to Flash" bootloader mode. */
    	CSM_PWL     : origin = 0x3F7FF8, length = 0x000008     /* Part of FLASHA.  CSM password locations in FLASHA */
    
    	IQTABLES    : origin = 0x3FE000, length = 0x000B50     /* IQ Math Tables in Boot ROM */
    	IQTABLES2   : origin = 0x3FEB50, length = 0x00008C     /* IQ Math Tables in Boot ROM */
    	IQTABLES3   : origin = 0x3FEBDC, length = 0x0000AA     /* IQ Math Tables in Boot ROM */
    
    	BOOTROM     : origin = 0x3FF27C, length = 0x000D44     /* Boot ROM */
    	RESET       : origin = 0x3FFFC0, length = 0x000002     /* part of boot ROM  */
    	VECTORS     : origin = 0x3FFFC2, length = 0x00003E     /* part of boot ROM  */
    
    PAGE 1 : 
    	BOOT_RSVD   : origin = 0x000000, length = 0x000050     /* Part of M0, BOOT rom will use this for stack */
    	RAMM0       : origin = 0x000050, length = 0x0003B0     /* on-chip RAM block M0 */
       	RAMM1       : origin = 0x000400, length = 0x000400     /* on-chip RAM block M1 */
    	dataRAM	    : origin = 0x009000, length = 0x001000     /* data RAM (L3) */
    	FLASHB      : origin = 0x3F4000, length = 0x002000     /* on-chip FLASH */
    
    	CLA_CPU_MSGRAM  : origin = 0x001480, length = 0x000080 /* CLA-R/W, CPU-R message RAM */
    	CPU_CLA_MSGRAM  : origin = 0x001500, length = 0x000080 /* CPU-R/W, CLA-R message RAM */

    ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

       .text            : > RAML0L1,   PAGE = 0
       .cinit           : > RAMM0,     PAGE = 0
       .pinit           : > RAMM0,     PAGE = 0
       .switch          : > RAMM0,     PAGE = 0
       .reset           : > RESET,     PAGE = 0, TYPE = DSECT /* not used, */
    
       .stack           : > RAMM1,     PAGE = 1
       .ebss            : > RAML2,     PAGE = 1
       .econst          : > RAML2,     PAGE = 1
       .esysmem         : > RAML2,     PAGE = 1
    

     

    After i build the program i got these errors and warnings


    BEGIN memory range has F28035_FLASH_2xPM_Sensorless.CMD /TMDS2MTRPFCKIT-2xPM_Sensorless line 62 C/C++ Problem

    BOOT_RSVD memory range F28035_FLASH_2xPM_Sensorless.CMD /TMDS2MTRPFCKIT-2xPM_Sensorless line 74 C/C++ Problem

    BOOTROM memory range F28035_FLASH_2xPM_Sensorless.CMD /TMDS2MTRPFCKIT-2xPM_Sensorless line 69 C/C++ Problem

    BOOTROM memory range has F28035_FLASH_2xPM_Sensorless.CMD /TMDS2MTRPFCKIT-2xPM_Sensorless line 69 C/C++ Problem


    dataRAM memory range F28035_FLASH_2xPM_Sensorless.CMD /TMDS2MTRPFCKIT-2xPM_Sensorless line 77 C/C++ Problem

    errors encountered during linking; "TMDS2MTRPFCKIT-2xPM_Sensorless.out" TMDS2MTRPFCKIT-2xPM_Sensorless    C/C++ Problem

    IQTABLES memory range F28035_FLASH_2xPM_Sensorless.CMD /TMDS2MTRPFCKIT-2xPM_Sensorless line 65 C/C++ Problem

    IQTABLES2 memory range F28035_FLASH_2xPM_Sensorless.CMD /TMDS2MTRPFCKIT-2xPM_Sensorless line 66 C/C++ Problem

    IQTABLES3 memory range F28035_FLASH_2xPM_Sensorless.CMD /TMDS2MTRPFCKIT-2xPM_Sensorless line 67 C/C++ Problem

    progRAM memory range F28035_FLASH_2xPM_Sensorless.CMD /TMDS2MTRPFCKIT-2xPM_Sensorless line 52 C/C++ Problem

    program will not fit into available 28035_RAM_lnk.cmd /TMDS2MTRPFCKIT-2xPM_Sensorless line 112 C/C++ Problem

    program will not fit into available 28035_RAM_lnk.cmd /TMDS2MTRPFCKIT-2xPM_Sensorless line 119 C/C++ Problem


    RAMM1 memory range F28035_FLASH_2xPM_Sensorless.CMD /TMDS2MTRPFCKIT-2xPM_Sensorless line 76 C/C++ Problem

    RAMM1 memory range has F28035_FLASH_2xPM_Sensorless.CMD /TMDS2MTRPFCKIT-2xPM_Sensorless line 76 C/C++ Problem

    RESET memory range F28035_FLASH_2xPM_Sensorless.CMD /TMDS2MTRPFCKIT-2xPM_Sensorless line 70 C/C++ Problem

    RESET memory range has F28035_FLASH_2xPM_Sensorless.CMD /TMDS2MTRPFCKIT-2xPM_Sensorless line 70 C/C++ Problem

    Warnings:

    build attribute vendor section TI missing in TMDS2MTRPFCKIT-2xPM_Sensorless    C/C++ Problem

    Description Resource Path Location Type
    This project was created using a version of compiler that is not currently installed: 5.2.3 [C2000]. Another version of the compiler will be used during build: 6.2.11. Please go to <a href="liveaction:OpenAppCenter">CCS App Center</a> to install the compiler of the required version, or migrate the project to one of the available compiler versions by adjusting project properties. TMDS2MTRPFCKIT-2xPM_Sensorless  properties Problems

    v

  • I don't know what you're doing.
    It works fine for me directly with no changes.

    I'd suggest a fresh workspace, and if that doesn't work maybe re-install CCS.
  • Hi Chris,
    Thanks for your suggestion it make no more error.

    I already re-install CCS and debug the example project (Dual Motor and PFC Developer's Kit- 2XPM_Sensorless) but the blink LED on control card didn't show up and still the both motor unlock.