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.

I got errors when building proj_lab11 in Motorware.

Other Parts Discussed in Thread: MOTORWARE

Dear all,

I am studying proj_lab11 in order to porting it from F28069F to F28054F. However, when doing a build for the orginal project I got three errors as the following figure:

The linking noticed that: 

#20 identifier "USER_CTRL_HANDLE_ADDRESS" is undefied

#20 identifier "USER_EST_HANDLE_ADDRESS" is undefined 

#20 identifier "USER_VD_SF" is undefined

I checked these CONSTANTS in user.h but not found! Has anybody met these errors with Lab11a or Lab11b yet?

Please explain me the meaning of these parameters in the project!

Thanks in advance,

Tran,

  • Hi Tran,

    Please reinstall MW15 into another directory and confirm that Lab11.c compiles without errors. It should. If it does compile with no errors, then do a file comparison with the SW you are using now and let us know what changes were made. I am expecting the project properties have changed.

    There is probably a file path issue with user.h, the file where USER_CTRL_HANDLE_ADDRESS is defined. Look closely at your project properties: Include Options and Linked Resources.

    Jeff
  • Dear Jeff,

    Thank you for your reply to my issue. I want to know the meaning of USER_CTRL_HANDLE_ADDRESS and USER_VD_SF parameters, that should be placed in user.h file. 

    I read deeply the section 4. User Parameters (user.h) in the document InstaSPIN-FOC and InstaSPIN-MOTION User's Guide (SPRUHJ1F-January 2013-Revised July 2014) but I could not find any section which talks about two parameters.

    If your motorware version have the value of two parameters, please let me know!

    Thank you very much! 

  • Hi Jeff,

    I've just reinstall MW15 and run Lab11.c for F28060F and the build is successful. I checked the parameters in the user.h, and I confirm that:

    //! \brief Defines the address of controller handle

    //!

    #define USER_CTRL_HANDLE_ADDRESS   (0x13C40)

    //! \brief Defines the address of estimator handle

    //!

    #define USER_EST_HANDLE_ADDRESS    (0x13840)

    //! \brief Defines the direct voltage (Vd) scale factor

    //!

    #define USER_VD_SF                 (0.95)

    But I am wanting to port this project (Lab11.c for F28069F) in order to run with F28054F, because I bought chip F28054F for my own board. Whether this project can run well with F28054F or not? and what can I do to port Lab11(a.b) to run on F28054F because I got some errors when porting to F28054F from the original project (F28069F).

    For more detail please see the following figure: notice that having errors in linking with the libary EST_getIdq_pu.lib and EST_setEstParams() & EST_setupEstIdleState() functions.

    Please help me as soon as posible.

  • Hi Tran,

    Lab 11 is not compatible with 05x since this device has dual security zones with the estimator functions are locked in zone 1. This is a problem since Lab 11 was restructured to make direct calls to the estimator, which is fine with 02x and 06x since these devices do not have the dual-security zone feature.

    Can you use the other labs that do support 05x?

    Thanks,
    Jeff
  • Hi Jeff,

    Thank you for your reply to my question. I ported the Lab11 from F28069F to F28054F and resolved these above errors by adding two libraries into the project that built for F2805x: 

    \sw\modules\fast\lib\32b\f28x\EST_setEstParams.lib, and

    \sw\modules\fast\lib\32b\f28x\EST_setupEstIdleState.lib

    The build was successful. You can look at the result in the following figure:

    However I have another question that relate to the parameter USER_VOLTAGE_FILTER_POLE_Hz in the user.h. Namely, I known that, with the circuit of sensing motor voltage that includes two resistors (configured as voltage divider) and a filter capacitor then Fpole = 1/(2*PI*Rparallel*C) --> Assigned for USER_VOLTAGE_FILTER_POLE_Hz .

    But in case I have a more complicate sensing circuit for the motor voltage, for example an inverted (or non-inverted) amplifier using op-amp, as following figure, so that how I can calculate?

  • Hi Tran,

    Please close this post by verifying the answer and put your new question on a new post such that the subject line reflects the question. This is makes it easier to reference the correct topic.

    Thanks,
    Jeff