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.

TIDM-1003: Error when building TIDM-1003 projects

Part Number: TIDM-1003
Other Parts Discussed in Thread: MOTORWARE, TMS320F28027

Dear TI Experts:

I really need your help to run TIDM-1003 projects.

According to the steps in the section 3.2.2 in application notes, we will get the error message "#20 Identifier "CTRL_Mode_e" is undefined" when building the project.

 

So I follow Expert Luo's instruction to unzip the compressive file "TIDM_1003_sw.zip", and import the CCS project in CCS 9, as shown below.
(0_2019_07_04_Final_Fight  is a directory made by myself.)
But it seems that the files are incomplete, causing a lot of source files not found.  
Did I import the project in the wrong way? Could you kindly show me how to correctly run the projects?  Or show me how to solve the error message "#20 Identifier "CTRL_Mode_e" is undefined", as mentioned above.
I am so eager to hear from you~
Wish you the best!!!
Tang Han

  • Dear Expert Luo:
    Yes, before I ask this new question, I have read the former link e2e.ti.com/.../792779
    Your explanation in more clear than the section 3.2.2 in application notes.
    But when I import the CCS project at
    c:\ti\motorware\motor_ware_1_01_00_18_\sw\solutions\instaSPIN_foc\board\TIDM_1003\
    I encountered the error message "#20 Identifier "CTRL_Mode_e" is undefined" when building the project.

    Then I tried your suggestion to use the compressive file "TIDM_1003_sw.zip", but I found many source files not found, even <math.h> ...
    So I am really confused about running this project.  Could you kindly guide me?
    Best Wishes,
    Tang Han
  • Hello,

    I'd like to report that I'm having exactly the same problems. Please try to help on finding the solution. I'm attaching the print screen of the errors that appear. I did reinstall CCS and Motorware but it's the same. I'd be very grateful, if anyone could make a small tutorial on setting up TIDM-1003, or attach the proper working files.

    Thank you,

    Mitja

  • Hello,

    I'd like to ask, if TI could provide the proper solution and suggest what to do with this problem and how to resolve it.


    Thanks in advance!


  • You may download the software from this reference design as the following link, and you can find "TIDM_1003_sw.zip" in the downloaded file, just need to extract this "TIDM_1003_sw.zip" that includes all the code files for this reference. 

     http://www.ti.com/tool/TIDM-1003

  • Dear Expert Luo:

    At the beginning of the thread, I have tried your suggestion to extract this "TIDM_1003_sw.zip". 

    "So I follow Expert Luo's instruction to unzip the compressive file "TIDM_1003_sw.zip", and import the CCS project in CCS 9, as shown below.
    But it seems that the files are incomplete, causing a lot of source files not found. 
    ... Then I tried your suggestion to use the compressive file "TIDM_1003_sw.zip", but I found many source files not found, even <math.h> ..."

    But with my attached CCS compiling errors, I doubt that it includes all the code files for this reference. Do you really run it well? Could you share the screen picture with us?

    Thanks for your kind help!

    Wish you the best!

    Tang Han

  • As replied to you, the  "TIDM_1003_sw.zip" include all files for the project, you only need to extract the file to run the project without motorWare. We have tested this on both CCS8 and CCS9, attached the figures for your reference.

    Btw, you may delete the "TMS320F28027_xds510usbplus.ccxml" from the project since you didn't install the emulator drive in your CCS.

  • Dear Expert Yanming:

    I am so grateful to you for your professional and detailed reply.

    I have followed your instructions and finally got the *.out file.

    May I ask some more questions about TIDM-1003?

    1. You ever introduced me to read SPRUHJ1G. According the TIDM-1003's schematic circuit, it seems that its current feedback belongs to positive feedback, and the current offsets should be negative in user.h, like the user.h for drv8312kit (revD). But the following current offsets in user.h of TIDM-1003 are positive values. Could you kindly show me why?

    #define   I_A_offset    (0.6250)   // =0.5*USER_ADC_FULL_SCALE_CURRENT_A/USER_IQ_FULL_SCALE_CURRENT_A
    #define   I_B_offset    (0.6250)   //
    #define   I_C_offset    (0.6250)   //

    #define   V_A_offset    (0.4950)   // =0.5*USER_ADC_FULL_SCALE_VOLTAGE_V/USER_IQ_FULL_SCALE_VOLTAGE_V
    #define   V_B_offset    (0.4950)   //
    #define   V_C_offset    (0.4950)   //
    2. On the other hand, it may be hard for the users to set the values of the above current or voltage offsets.
    In the user.h of TIDM-1003, we can find the following equations.
    I_x_offset =0.5*USER_ADC_FULL_SCALE_CURRENT_A/USER_IQ_FULL_SCALE_CURRENT_A
    V_x_offset  =0.5*USER_ADC_FULL_SCALE_VOLTAGE_V/USER_IQ_FULL_SCALE_VOLTAGE_V
    Could you kindly confirm for us that we can apply the above equations to set the values of current or voltage offsets?
    Thanks in advance~
    Wish you the best!
    Tang Han
  • Hello,

    Thank you for your kind reply. I'd also like to report, that after downloading the software and importing the project from _sw folder, I did managed to successfully build the project. 

    Then I tried to program the target device and debug it, but I ran into these errors. 




    Have you encountered this problem and what do you suggest to do?


    Thank you,

    Mitja

  • 1. You are right. The project enabled offsets recalibration always, so it didn't use the offsets in user.h. You may enable the offset recalibration first to get the correct offsets, and then copy these offsets from hal.adcBias.I and hal.adcBias.V to user.h. Every board should have different offsets.

    2. This is just for an ideal board, you should do the offset calibration as above for each board if you want to achieve better performance.

  • Thanks for Expert Yanming's kind and professional reply.   ^_^   Tang Han