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.

MCF8329EVM: MCF8329EVM Quick Spin

Expert 1225 points
Part Number: MCF8329EVM

Tool/software:

Hi,

I just want to start with MCF8329EVM.

But the first step is to Load Preset Values, the button is disabled unless i choose the file from my drive. What file should i choose, is there a deafoult setup file that can be downloaded somewhere?

Or this is not the first step?

Is there any istruction how to go step by step?

Regards,

Adam

  • When I choose: Documents -> User Guide I have empty window:

  • Hi Adam,

    The first step is to load a default register configuration. The configuration below can be used as a default configuration. Please keep in mind that the below register configuration is designed for vacuum cleaners so the configuration may need to be adjusted to operate your motor as required by your system and application needs. 

    {
    "signature":"oneui-register-data",
    "data":[
    [
    {
    "idx":0,
    "id":"ISD_CONFIG",
    "value":"0X64A2D4A1",
    "addr":"0x00000080"
    },
    {
    "idx":1,
    "id":"REV_DRIVE_CONFIG",
    "value":"0x48300000",
    "addr":"0x00000082"
    },
    {
    "idx":2,
    "id":"MOTOR_STARTUP1",
    "value":"0x10A64CC0",
    "addr":"0x00000084"
    },
    {
    "idx":3,
    "id":"MOTOR_STARTUP2",
    "value":"0x2D81C007",
    "addr":"0x00000086"
    },
    {
    "idx":4,
    "id":"CLOSED_LOOP1",
    "value":"0x1D7181B8",
    "addr":"0x00000088"
    },
    {
    "idx":5,
    "id":"CLOSED_LOOP2",
    "value":"0x0AAD0000",
    "addr":"0x0000008A"
    },
    {
    "idx":6,
    "id":"CLOSED_LOOP3",
    "value":"0x00000000",
    "addr":"0x0000008C"
    },
    {
    "idx":7,
    "id":"CLOSED_LOOP4",
    "value":"0x000004B0",
    "addr":"0x0000008E"
    },
    {
    "idx":8,
    "id":"REF_PROFILES1",
    "value":"0x00000000",
    "addr":"0x00000094"
    },
    {
    "idx":9,
    "id":"REF_PROFILES2",
    "value":"0x00000000",
    "addr":"0x00000096"
    },
    {
    "idx":10,
    "id":"REF_PROFILES3",
    "value":"0x00000004",
    "addr":"0x00000098"
    },
    {
    "idx":11,
    "id":"REF_PROFILES4",
    "value":"0x00000000",
    "addr":"0x0000009A"
    },
    {
    "idx":12,
    "id":"REF_PROFILES5",
    "value":"0x00000000",
    "addr":"0x0000009C"
    },
    {
    "idx":13,
    "id":"REF_PROFILES6",
    "value":"0x00000000",
    "addr":"0x0000009E"
    }
    ],
    [
    {
    "idx":0,
    "id":"FAULT_CONFIG1",
    "value":"0x465A31A6",
    "addr":"0x00000090"
    },
    {
    "idx":1,
    "id":"FAULT_CONFIG2",
    "value":"0x71422888",
    "addr":"0x00000092"
    }
    ],
    [
    {
    "idx":0,
    "id":"INT_ALGO_1",
    "value":"0x0946027D",
    "addr":"0x000000A0"
    },
    {
    "idx":1,
    "id":"INT_ALGO_2",
    "value":"0x020082E3",
    "addr":"0x000000A2"
    }
    ],
    [
    {
    "idx":0,
    "id":"PIN_CONFIG",
    "value":"0x40032309",
    "addr":"0x000000A4"
    },
    {
    "idx":1,
    "id":"DEVICE_CONFIG1",
    "value":"0x00100002",
    "addr":"0x000000A6"
    },
    {
    "idx":2,
    "id":"DEVICE_CONFIG2",
    "value":"0x03E8C00C",
    "addr":"0x000000A8"
    },
    {
    "idx":3,
    "id":"PERI_CONFIG1",
    "value":"0x69845CC0",
    "addr":"0x000000AA"
    },
    {
    "idx":4,
    "id":"GD_CONFIG1",
    "value":"0x0000807B",
    "addr":"0x000000AC"
    },
    {
    "idx":5,
    "id":"GD_CONFIG2",
    "value":"0x00000400",
    "addr":"0x000000AE"
    }
    ],
    [
    {
    "idx":0,
    "id":"GATE_DRIVER_FAULT_STATUS",
    "value":"0x00000000",
    "addr":"0x000000E0"
    },
    {
    "idx":1,
    "id":"CONTROLLER_FAULT_STATUS",
    "value":"0x00000000",
    "addr":"0x000000E2"
    }
    ],
    [
    {
    "idx":0,
    "id":"ALGO_STATUS",
    "value":"0x00000000",
    "addr":"0x000000E4"
    },
    {
    "idx":1,
    "id":"MTR_PARAMS",
    "value":"0x00000000",
    "addr":"0x000000E6"
    },
    {
    "idx":2,
    "id":"ALGO_STATUS_MPET",
    "value":"0x00000000",
    "addr":"0x000000E8"
    }
    ],
    [
    {
    "idx":0,
    "id":"ALGO_CTRL1",
    "value":"0x00000000",
    "addr":"0x000000EA"
    }
    ],
    [
    {
    "idx":0,
    "id":"ALGO_DEBUG1",
    "value":"0x80000000",
    "addr":"0x000000EC"
    },
    {
    "idx":1,
    "id":"ALGO_DEBUG2",
    "value":"0x00000000",
    "addr":"0x000000EE"
    },
    {
    "idx":2,
    "id":"CURRENT_PI",
    "value":"0x00000000",
    "addr":"0x000000F0"
    },
    {
    "idx":3,
    "id":"SPEED_PI",
    "value":"0x00000000",
    "addr":"0x000000F2"
    },
    {
    "idx":4,
    "id":"DAC_1",
    "value":"0x00000000",
    "addr":"0x000000F4"
    }
    ],
    [
    {
    "idx":0,
    "id":"ALGORITHM_STATE",
    "value":"0x00000000",
    "addr":"0x00000196"
    },
    {
    "idx":1,
    "id":"FG_SPEED_FDBK",
    "value":"0x00000000",
    "addr":"0x0000019C"
    },
    {
    "idx":2,
    "id":"BUS_CURRENT",
    "value":"0x00000000",
    "addr":"0x0000040E"
    },
    {
    "idx":3,
    "id":"PHASE_CURRENT_A",
    "value":"0x00000000",
    "addr":"0x0000043C"
    },
    {
    "idx":4,
    "id":"PHASE_CURRENT_B",
    "value":"0x00000000",
    "addr":"0x0000043E"
    },
    {
    "idx":5,
    "id":"PHASE_CURRENT_C",
    "value":"0x00000000",
    "addr":"0x00000440"
    },
    {
    "idx":6,
    "id":"CSA_GAIN_FEEDBACK",
    "value":"0x00000000",
    "addr":"0x00000450"
    },
    {
    "idx":7,
    "id":"VOLTAGE_GAIN_FEEDBACK",
    "value":"0x00000000",
    "addr":"0x00000458"
    },
    {
    "idx":8,
    "id":"VM_VOLTAGE",
    "value":"0x00000000",
    "addr":"0x0000045C"
    },
    {
    "idx":9,
    "id":"PHASE_VOLTAGE_VA",
    "value":"0x00000000",
    "addr":"0x00000460"
    },
    {
    "idx":10,
    "id":"PHASE_VOLTAGE_VB",
    "value":"0x00000000",
    "addr":"0x00000462"
    },
    {
    "idx":11,
    "id":"PHASE_VOLTAGE_VC",
    "value":"0x00000000",
    "addr":"0x00000464"
    },
    {
    "idx":12,
    "id":"SIN_COMMUTATION_ANGLE",
    "value":"0x00000000",
    "addr":"0x000004AA"
    },
    {
    "idx":13,
    "id":"COS_COMMUTATION_ANGLE",
    "value":"0x00000000",
    "addr":"0x000004AC"
    },
    {
    "idx":14,
    "id":"IALPHA",
    "value":"0x00000000",
    "addr":"0x000004CC"
    },
    {
    "idx":15,
    "id":"IBETA",
    "value":"0x00000000",
    "addr":"0x000004CE"
    },
    {
    "idx":16,
    "id":"VALPHA",
    "value":"0x00000000",
    "addr":"0x000004D0"
    },
    {
    "idx":17,
    "id":"VBETA",
    "value":"0x00000000",
    "addr":"0x000004D2"
    },
    {
    "idx":18,
    "id":"ID",
    "value":"0x00000000",
    "addr":"0x000004DC"
    },
    {
    "idx":19,
    "id":"IQ",
    "value":"0x00000000",
    "addr":"0x000004DE"
    },
    {
    "idx":20,
    "id":"VD",
    "value":"0x00000000",
    "addr":"0x000004E0"
    },
    {
    "idx":21,
    "id":"VQ",
    "value":"0x00000000",
    "addr":"0x000004E2"
    },
    {
    "idx":22,
    "id":"IQ_REF_ROTOR_ALIGN",
    "value":"0x00000000",
    "addr":"0x0000051A"
    },
    {
    "idx":23,
    "id":"SPEED_REF_OPEN_LOOP",
    "value":"0x00000000",
    "addr":"0x00000532"
    },
    {
    "idx":24,
    "id":"IQ_REF_OPEN_LOOP",
    "value":"0x00000000",
    "addr":"0x00000542"
    },
    {
    "idx":25,
    "id":"SPEED_REF_CLOSED_LOOP",
    "value":"0x00000000",
    "addr":"0x000005D0"
    },
    {
    "idx":26,
    "id":"ID_REF_CLOSED_LOOP",
    "value":"0x00000000",
    "addr":"0x0000060A"
    },
    {
    "idx":27,
    "id":"IQ_REF_CLOSED_LOOP",
    "value":"0x00000000",
    "addr":"0x0000060C"
    },
    {
    "idx":28,
    "id":"ISD_STATE",
    "value":"0x00000000",
    "addr":"0x000006B0"
    },
    {
    "idx":29,
    "id":"ISD_SPEED",
    "value":"0x00000000",
    "addr":"0x000006BA"
    },
    {
    "idx":30,
    "id":"IPD_STATE",
    "value":"0x00000000",
    "addr":"0x000006E4"
    },
    {
    "idx":31,
    "id":"IPD_ANGLE",
    "value":"0x00000000",
    "addr":"0x0000071A"
    },
    {
    "idx":32,
    "id":"ED",
    "value":"0x00000000",
    "addr":"0x0000075C"
    },
    {
    "idx":33,
    "id":"EQ",
    "value":"0x00000000",
    "addr":"0x0000075E"
    },
    {
    "idx":34,
    "id":"SPEED_FDBK",
    "value":"0x00000000",
    "addr":"0x0000076E"
    },
    {
    "idx":35,
    "id":"THETA_EST",
    "value":"0x00000000",
    "addr":"0x00000774"
    }
    ]
    ]
    }

    Is there any istruction how to go step by step?

    We have a Getting Started video for the MCF8329EVM which you can download using the link and access code below:

    Link: https://tidrive.ext.ti.com/u/8hm5uUaZuYvgGbmv/03ca804d-4764-47b7-93ef-dd46c5ac18d7?l

    Access Code: J1e#TRA6

    When I choose: Documents -> User Guide I have empty window

    Thank you for pointing this out, I will note this down to be corrected in our next update. The MCF8329EVM User's Guide can be found on the MCF8329EVM page on ti.com.

    Regards,

    Joshua

  • Thanks a lot!

    This link with video does not work, it opens this website:

    And I can not log in with my e2e account.

    The link looks like it's not complete, there is " /.../" in it.

    Thanks very much for the rest, it works :)

    Adam

  • Hi Adam,

    I corrected the link to the video in my previous reply, although since you cannot log into the website I have uploaded the video here.

    Regards,

    Joshua

  • Hi,

    thanks for the video. I followed it, also load the config file you provided in earlier reply.

    However Running MPET does not work, Motor is not able to spin, I am getting the following faults:

    Also as you can see, I can not input the phase resistance and inductance on the "MPET Results" sub-window -has no such inputs.

    What could be the case here?

    Regards,

    Adam

  • Hi Adam,

    To try and correct the MPET BEMF fault please try:

    1. go to the MPET page on Motor Studio
    2. enable MPET open loop parameter resistance
    3. increasing the Open Loop Current Reference
    4. decreasing the Open Loop Slew Rate on the MPET page

    To input the motors phase resistance and inductance, go to the Advanced Tuning page and open the Motor Parameters tab. Then fill MOTOR_RES with the Resistance  and fill both Lq and Ld with the Inductance.

    Regards,

    Joshua 

  • Thanks, I tried playing with:

    1. increasing the Open Loop Current Reference
    2. decreasing the Open Loop Slew Rate on the MPET page 

    and it didn't help.

    But I have one more observation:

    With "disabled MPET open loop parameter resistance" toggle it gives me errors like in screen form post above.

    But when I enabled "disabled MPET open loop parameter resistance" toggle (as you suggested) now when I run MPET it just do nothing for a 15s, then apply current of 0.25A (from power supply) and this current is stedy for, motor gives some acoustic noise but nothing happen, motor is not rotating. This is endless, i mean it takes form power supply 0.25A and nothing happen for a minute, two, 5 minutes, than i need to turn off the power supply.

    Motor is rated for 10A, 20krpm.

    I set the BASE_CURRENT as 37A.

    The open loop current referecne is set to 60%, this is 0,6*37=22A, why it is stoping at 0,25A?

    What more can I do?

    This MPET is just spinning the motor in open loop, right? All closed loop settiings does not matter here?

    Does inductance and resistance affect the MPET spinning? Let's say i put wrong values about 20%, this should have any impact?

    Adam

  • Update,

    I have before those two toggles selected:

    Measure Motor BEMF and Measure Motor Mechniacal Param.

    When I disabled Mechniacal Param meas, like below, now the motor runs:

    Is that ok? (mechanical params are not needed? like friction constant?)

    However now I am getting error MPET_BEMF_FAULT.

    I changed BEMF threshold to 100mV and it completed the MPET, however not manage to calculate PI params for speed, what could be the problem?:

    Also, are parameters form Control Config-Motor Startup Stationary relevant for MPET? Changing align type can help?

    Adam

  • Hi Adam,

    The "Measure Motor Mechanical Parameter" switch is used to enable measurement of the speed loop Kp and Ki values. Since you are having issues with MPET not spinning the motor with "Measure Motor Mechanical Parameter" enabled, you can try using 0.024 as starting values for both the Kp and Ki if you would like to test spinning the motor into closed loop.

    I will look into the issue you are experiencing when "Measure Motor Mechanical Parameter" is enabled and aim to get back to you by 7/10.

    Does inductance and resistance affect the MPET spinning? Let's say i put wrong values about 20%, this should have any impact?

    The accuracy of the inductance and resistance values should not have an impact on MPET spinning. The accuracy of the inductance and resistance values will have the most impact during closed loop operation since these values are used by the FOC algorithm during closed loop. 

    Also, are parameters form Control Config-Motor Startup Stationary relevant for MPET? Changing align type can help?

    MPET will only use the align start-up method when starting to spin. I will check how the startup settings (like the current limit) can be adjusted. I will aim to get back to you on this topic as well by 7/10.

    Regards,

    Joshua

  • Hi Adam,

    Also, are parameters form Control Config-Motor Startup Stationary relevant for MPET? Changing align type can help?

    While the startup method for MPET cannot be changed from Align, the current limit can. MPET will use the open loop current limit setting to determine the current limit when measuring BEMF. Depending on if MPET_KE_MEAS_PARAMETER_SELECT (MPET IPD Parameter select switch) is set to "MPET specific parameters" (1b) or "Configured for normal operation" (0b) the open loop current threshold used will be MPET_OPEN_LOOP_CURRENT_REF or OL_ILIMIT respectively.

    Form my testing I was unable to determine what may have been causing the issue you were experiencing when "Measure Motor Mechanical Parameter" is enabled. Could you provide a capture of the phase current, when running the motor with "Measure Motor Mechanical Parameter" enabled and the register configuration used when you were experiencing the issue where the current drawn was 0.25A? 

    Regards,

    Joshua

  • Thanks,

    Will send the current on the phase as your request.

    Also, can I just measure BEMF Constant by myself, also calculate Kp and Ki by myself and skip the MPET?

    As MPET gives only those 3 inputs, nothing more, right?

  • Also, can I just measure BEMF Constant by myself, also calculate Kp and Ki by myself and skip the MPET?

    Correct, MPET only measures the BEMF and speed Kp and Ki values. To skip MPET you can input the BEMF constant and speed Kp and Ki values.

    Regards,

    Joshua