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.

Problem to get the motor control project to run under ccs v5.1

Other Parts Discussed in Thread: TMS320F28035, CONTROLSUITE

Hello,

I'm new to TI products and CCS, so I started with the development kit for two BLDC motor control with F28035 control card and CCS v3.3. Every thing worked smooth without any problem.

I got CCS v5.1 and I could not get the motor control project to run under CCS v5.1. I tried the motor control project version which comes with the development kit and CCS v3.3 using import legacy 3.3 project and the motor control project version which comes with the control suite using import CCS project, but could not succeed in both.

I was able to run the blink LED example from the control suite under CCS v5.1.

Did any one try to run the motor control project under CCS v5.1? and what is the right procedure?

Thanks,

AMK

  • Hi,

    can you please explain a bit further?

    - what steps did you take to try and use the example/project in v5.1?  Have you tried v5.2, the latest release?

    - what errors or issues do you see?

    - have you tried using the resource explorer in CCS to bring in some of the F28035 examples?

    Best Regards,
    Lisa

  • Hi,

    I'm out of company for 2 days and will confirm your questions when I'm back.

    But here what I remember:

    - I don't have v5.2, I just installed v5.1 with floating license.

    - I tried resource explorer, and tried import legacy v3.3 for project comes with development kit and tried import CCS example for project in control suite, and none worked with me.

    When I'm back to company, I will write details about steps and issues for each test.

    Regards,

    AMK

  • Hi,

    Here is the details of the steps I followed using TI resource explorer:

    In TI resource explorer page: Under control suite -> kits -> low voltage dual-axis motor control

    There is 4 links:

    1. Import is done with green check mark.

    2. Build is done with green check mark and 1 warning " 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.0.2. Please install the compiler of the required version, or migrate the project to one of the available compiler versions."

    (I tried to use refactor -> upgrade compiler version from project properties menu)

    3. Debug configuration is down with green check mark.

    At this point, I checked the project and found the configuration file "TMS320F28035.ccxml" was active, and from the project properties windows: the configuration to RAM is selected and "DSP2803x_headers_nonBIOS.cmd" was the linker command file.

    Then I followed the instructions in the document file "sensorless FOC of 2xPM.pdf" for Level1 build example.

    4. Debug, I noticed the message of erasing flash during process. I think the flash should not be erased for RAM configuration, why is that?

    According to the document, after debug, I should do CPU reset, restart, run real time mode then run. But after CPU reset, I got the following message " No source available for "0x3ff8a1".

    After run, I got the message " 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."

    If I press rude retry, I got the message "ISR_ILLEGAL()at 2xPM_Sensorless-DevInit_F2803x.c: 563 0x3F771C"

    I hope the steps are clear and you could find the reason of errors.

    Next, I will write the steps when I followed import option from CCS.

    Regards,

    AMK

  • Hi,

    Using "import existing CCS/CCE eclipse project" to import the motor control project from control suite gave me the same results as TI resource explorer.

    I forgot to mention that the control suite I have is v3.0.1 dated 06 July 2012.

    Regards,

    AMK

  • Hi

    Here is the details for using "import legacy v3.3 project" option:

    I imported the motor control project ver 1.2 which comes for CCS v3.3. The project path is C:\TI_F28xxx_SysSW\MotorCtrl+PfcKit\2xPM_Motors

    After import (copy project into workspace option was selected), I got 6 warnings

    Invalid project path: Include path not found (\DSP2802x_headers).

    Invalid project path: Include path not found (\DSP2802x_headers\include).

    Invalid project path: Include path not found (\include).

    Invalid project path: Include path not found (C:\TI_F28xxx_SysSW\DSP2802x_headers).

    Invalid project path: Include path not found (C:\TI_F28xxx_SysSW\DSP2802x_headers\include).

    Invalid project path: Include path not found (C:\TI_F28xxx_SysSW\include).

     

    I checked the project properties and corrected the following:

    Changed the configuration from F2802x flash to F2803x flash and chose the correct board and connection type.

     

    The 6 warning still there but DSP2803x instead of DSP2803x. I deleted the include path which cause these warning from build -> c2000 compiler -> include options

     

    At this point, there was no error or warning, then I built the project and got 11 errors and 3 warnings:

    Errors:

    #10010 errors encountered during linking;

    <a href="file:/C:/ti/ccsv5/tools/compiler/dmed/HTML/10234.html">#10234-D</a>  unresolved symbols remain

     

    unresolved symbol _clarke_calc, first referenced in C:/workspace_v5_1/2xPM_Motors/2803x_FLASH/2xPM_Motors.obj

     

    unresolved symbol _ipark_calc, first referenced in C:/workspace_v5_1/2xPM_Motors/2803x_FLASH/2xPM_Motors.obj

     

    unresolved symbol _park_calc, first referenced in C:/workspace_v5_1/2xPM_Motors/2803x_FLASH/2xPM_Motors.obj

     

    unresolved symbol _phase_voltage_calc, first referenced in C:/workspace_v5_1/2xPM_Motors/2803x_FLASH/2xPM_Motors.obj

     

    unresolved symbol _pid_reg3_calc, first referenced in C:/workspace_v5_1/2xPM_Motors/2803x_FLASH/2xPM_Motors.obj

     

    unresolved symbol _rampgen_calc, first referenced in C:/workspace_v5_1/2xPM_Motors/2803x_FLASH/2xPM_Motors.obj

     

    unresolved symbol _rmp_cntl_calc, first referenced in C:/workspace_v5_1/2xPM_Motors/2803x_FLASH/2xPM_Motors.obj

     

    unresolved symbol _speed_est_calc, first referenced in C:/workspace_v5_1/2xPM_Motors/2803x_FLASH/2xPM_Motors.obj

     

    unresolved symbol _svgendq_calc, first referenced in C:/workspace_v5_1/2xPM_Motors/2803x_FLASH/2xPM_Motors.obj

     

    Warnings:

    <a href="file:/C:/ti/ccsv5/tools/compiler/dmed/HTML/225.html">#225-D</a>  function declared implicitly (DeviceInit();)

    <a href="file:/C:/ti/ccsv5/tools/compiler/dmed/HTML/225.html">#225-D</a>  function declared implicitly

    (MemCopy(&RamfuncsLoadStart, &RamfuncsLoadEnd, &RamfuncsRunStart);)

    <a href="file:/C:/ti/ccsv5/tools/compiler/dmed/HTML/225.html">#225-D</a>  function declared implicitly

    (InitFlash();)

     

    It seems to me that one of the required library is not linked, so I checked the linked resources window and found the file iqdmc_ml.l28 as one of the linked files.

    Hope you can help with.

     

    Regards,

    AMK

  • Let's focus on importing the project in ControlSuite using either Resource Explorer or 'Import existing CCS/CCE Eclipse project" rather than converting a CCS 3.3 project.

    amk johani said:
    Debug, I noticed the message of erasing flash during process. I think the flash should not be erased for RAM configuration, why is that?



    Based on this information, I imported the project in the same way you did and it appears that both the RAM and Flash build configurations for this project are set to use F28035_FLASH_2xPM_Sensorless.cmd, which is incorrect. The correct thing would be that the .cmd file toggles between F28035_RAM_2xPM_Sensorless.cmd and F28035_FLASH_2xPM_Sensorless.cmd depending on whether you are building the RAM or FLASH configuration. You can change this manually by excluding F28035_FLASH_2xPM_Sensorless.cmd from build (for the RAM build) and including F28035_RAM_2xPM_Sensorless.cmd instead. You can do this by right-clicking on the file and go to Resource Configurations->Exclude from build.

    Alternately, there is another folder in ControlSuite (\development_kits\LVMultiAxis+PfcKit_v1.4\2xPM_Sensorless) from where the imported project seems to have the correct setting, so you could try this as well. You would need to import this manually though through 'Import existing CCS/CCE Eclipse project" instead of through Resource Explorer.

    This should at least get you the correct build and you should not see the Flash being programmed when using the RAM configuration. Hopefully that resolves your run time issues as well.

  • Hi AartiG,

     

    Thank you for your reply.

     

    I tried both options (TI resource explorer and import ccs project) and both have the same setting. Both are set to use F28035_FLASH_2xPM_Sensorless.cmd and the linker command file setting in the project window for both are using DSP2803x_Headers_nonBIOS.cmd.

     

    I excluded F28035_FLASH_2xPM_Sensorless.cmd for RAM configuration and included  F28035_RAM_2xPM_Sensorless.cmd and after building the project, I got 3 errors:

    #10010              errors encountered during linking; line 0

    #10099-D          placement fails  line 81 of F28035_RAM_2xPM_Sensorless.CMD

    #10099-D          run placement   line 90 of F28035_RAM_2xPM_Sensorless.CMD

     

    Regards,

    AMK

  • amk johani said:

    I tried both options (TI resource explorer and import ccs project) and both have the same setting. Both are set to use F28035_FLASH_2xPM_Sensorless.cmd and the linker command file setting in the project window for both are using DSP2803x_Headers_nonBIOS.cmd.

    You are correct, this is the setting that appears when importing from resource explorer or manually importing the project from \development_kits\LVMultiAxis+PfcKit_v1.4\2xPM_Sensorless_v1_1. And you are also correct that simply changing the project to use F28035_RAM_2xPM_Sensorless.cmd in this particular project gives these build errors. It seems that this version has an added folder (src Crosshairs) which is adding additional source files and that seems to be causing it to run out of memory. I will work this with the C2000 team that creates these examples.

    In the meantime, do you have the folder \development_kits\LVMultiAxis+PfcKit_v1.4\2xPM_Sensorless in your ControlSuite? If so, you should be able to manually import the project from this folder and it should build fine.

  • Hi,

    I checked the control suite version 3.0.0 and 2.8.7, both have 2xPM_Sensorless_v1_1 only and not 2xPM_Sensorless.

     

    Then I checked an older control suite version 2.6.0 and I found 2xPM_Sensorless. This one build without any problems.

     

    I tried build level1 and it worked fine except that I got a message after CPU reset which I don't know why. the message says "no source available for 0x3FF599". But I could continue with the debug and the ISR_Ticker increments as it should.

    Any idea why I got this message?

     

    Regards,

    AMK

  • amk johani said:
    I tried build level1 and it worked fine except that I got a message after CPU reset which I don't know why. the message says "no source available for 0x3FF599".

    This message is simply saying that there is no source code equivalent to the reset vector but if you open the disassembly window, you should be able to see where you are halted. If you then do a Restart you will likely halt at "main". From there you can run your program.

    I will report the issues with the newer 2xPM_Sensorless_v1_1 example to the C2000 team. Thanks for your patience.

  • Hi,

    I've got same problem as had. The solution is to use older version of "2xPM_Sensorless" project included in control suite version 2.6.0 (according to ). My request is: could you provide this version of controlsuit (the only available version on TI site is 3.1.0) or at least proper version of this project.

    Thanks in advance,

    Kamil

  • Hi,

    I have the same problem with amk johani and Kamil Kranz. I am using the latest version of CCS (Downloaded it yesterday). How can I solve it?

    Problem is: "No source available for "0x3ff599".

    I have it sometimes after pressed debug, but I dont have it sometimes.

    Thanks in advance,

    Kerim