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.

MCF8316AEVM: MCF8316AEVM Evaluation Module - Motor not turning

Part Number: MCF8316AEVM
Other Parts Discussed in Thread: MCF8316A, MOTORSTUDIO, MCF8329A

Hi Support folks

We have just received the above EVM and have connected USB, 12V power and a known good brushless motor to it. 

We've run the MCF8316A_GUI/ver/1.1.9 and followed the instructions to spin the motor, however it's not turning.

LEDs and power supplies, switch positions, jumper positions are nominal.

We can see a changing voltage (0 to 3.3V) on J6 SPEED jumper when we turn Pot R4, but the motor doesn't turn in ANALOG mode.

If we switch to I2C speed control mode we can't see any activity on the SDA or SCL lines and the motor doesn't turn. 

There is also no activity on the I2C lines when we try to read the EEPROM, or activity on the ABC outputs to the motor when we try to drive the motor. 

Can you advise? 

Thanks

  • Hi Bob stiles,

    Looks like your HW is not connected to GUI. To understand that please check below items 

    1. When you launch GUI do you see HW connected message at the bottom of GUI and LED on the EVM starts toggling?

    2. If above observation is fine then click I2C address finder button and then verify if I2C address is detected.

    Please let me know if this works.

    There is new GUI available, Can you check this link and try to follow the steps mentioned in the link.

    The new GUI called MOTOR STUDIO requires different FW for the MSP430 on the EVM. Below link provides two "out' files. One for Old GUI (To support the GUI which you are using) and another for new GUI.

    If the steps 1 and 2 do not work please try programming the MSP430 for Old GUI . The procedure for programming is available in the same link provided below.

    https://e2e.ti.com/support/motor-drivers-group/motor-drivers/f/motor-drivers-forum/1281363/faq-motor-studio-gui---evm-firmware-compatibility

    Thanks and Best Regards,

    Venkatadri S

  • Hi Venkatadri
    Thanks for your message.  

    1. The HW connected message is OK - the chain icon indicates that it is connected to FTDI chip on board.  LED on the EVM is not toggling.  D7 is on, D6 is off.

    2. I2C address finder returns 0x0

    Maybe the MSP430 is not programmed??  I'll try programming it, and also try the new GUI

    Thanks and regards

    Bob

  • Hi Bob,

    Please try Old GUI for now and let me know.

    Thanks and Best Regards,

    Venkatadri S

  • Hi Venkatadri

    I downloaded the web interface again and there is no difference - no activity on the serial port. So I downloaded MotorStudio 0.1.9

    I am seeing this error on startup:

    however the app starts and I can connect to the board (D6 is now flashing).

    I am loading the Default Registers OK, but when I try to spin the motor, it tries a little but errors out.

    I've tried two different sized motors, and seen various error, however once it has errored out I can clear the faults, but then the options are greyed out and I can't retry.  I have to restart the program, and then sometimes the results are not repeatable.

    I have worked on this all morning - I need to get results and see if the device is suitable for our needs.  Can you help?

    Thanks

    Bob

  • Hi Bob,

    If you are facing issue with Motor studio let us go back to old GUI. Update MSP430 as suggested in the link.

    Can you please share what fault you get when motor stops spinning. This requires some tuning depends on the motor parameter.

    Can you share the motor parameter (Rated voltage, rated speed, Per phase Inductance, Back EMF Constant, Resistance)

    What is your end application?

    To make motor spin and reliable start we need to tune the open loop acceleration, current, close loop acceleration etc. 

    Please share the motor details.

    Thanks and Best Regards,

    Venkatadri S

  • Hi Venkatadri

    Our end application is to replace a small Electronic Speed Controller, similar to Turnigy 7A, which is used in smaller drones.

    There are many ESCs on the market like this, which work very well, have good torque and startup for a wide range of motors.

    Do you have preconfigured parameter file for this application since we don't have time to spend on tuning? We have other problems to solve.

    I'm using this motor for testing.  Perhaps its too large for this application.  I tried a smaller motor, but I think it was damaged during earlier testing.

    brotherhobby.com/avenger-28065-motor-p00132p1.html

    If its too large, it should advise this in the datasheet.

    I have been able to complete MPET successfully using these parameters

    I am trying to improve the startup parameters, but at one point the motor beacme unresponsive, although no errors were displayed.  I tried closing everything, powering down, restarting the app, but the motor is not reponding.

    Can you advise which is the old GUI?

    Thanks Bob

  • Hi Venkatadri

    The EVM has the latest firmware - D7 lights up when USB connected.

    I don't have an MSP430 LaunchPad to do the reprogramming for the old GUI

  • Hi Bob,

    You can download the GUI from this link Search results for "MCF8316A_GUI" · Gallery (ti.com)

    You require a launch pad to program it.

    Can you please elaborate the problem of motor becoming unresponsive?

    Once MPET (quick spin) completes you are giving speed command , is that correct?

    Can you send me the JSON file which you have generated? We need to check fault settings, R,K,KE and Speed control loop parameters like Open loop, close loop slew rates etc. 

    If you know the motor details including poles, max speed please provide. 

    Thanks and Best Regards,

    Venkatadri S

  • Hi Venkatadri

    Can you please elaborate the problem of motor becoming unresponsive?

    I am testing with a micro drone motor - HobbyKing AP03 4000KV which are widely used with many off-the-shelf ESCs.

    Unfortunately no technical details are available other than max current 2A (2.5A pk) at 7V

    I select Small DLP Color wheel and press Load Preset values

    I press Run MPET

    The motor spins up and stops. There are no errors. Run MPET button is greyed out.

    This is the screen.  No options are available except to restart the program.

    Can you send me several known good preset JSON files to use as a starting point for tuning?

    Thanks

    Bob

  • Hi Bob,

    JSON generated through quick spin is more basic and expected to work on many motors.  I am attaching some JSON which is not intended as example but something I use with some of motors. Just for quick check you can see this.  The tuning guide shared earlier provides the basic step by step instructions. They include PWM frequency selection based on R, L of motor.

    Do not load JSON since it is generated with earlier GUI. You can view it and understand about some settings.

    I will provide tuning instructions separately by next week.

    Thanks and Best Regards,

    Venkatadri S

    Sample JSON.json
    {
      "signature": "oneui-register-data",
      "data": [
        [
          {
            "idx": 0,
            "id": "isd_config",
            "value": "0x6C230C3C"
          },
          {
            "idx": 1,
            "id": "rev_drive_config",
            "value": "0xA8200000"
          },
          {
            "idx": 2,
            "id": "motor_startup1",
            "value": "0x6568C700"
          },
          {
            "idx": 3,
            "id": "motor_startup2",
            "value": "0x9A82200D"
          },
          {
            "idx": 4,
            "id": "closed_loop1",
            "value": "0x0E3191BD"
          },
          {
            "idx": 5,
            "id": "closed_loop2",
            "value": "0x99E59091"
          },
          {
            "idx": 6,
            "id": "closed_loop3",
            "value": "0x30800002"
          },
          {
            "idx": 7,
            "id": "closed_loop4",
            "value": "0x298A84B0"
          },
          {
            "idx": 8,
            "id": "speed_profiles1",
            "value": "0x00000000"
          },
          {
            "idx": 9,
            "id": "speed_profiles2",
            "value": "0x00000000"
          },
          {
            "idx": 10,
            "id": "speed_profiles3",
            "value": "0x00000000"
          },
          {
            "idx": 11,
            "id": "speed_profiles4",
            "value": "0x00000000"
          },
          {
            "idx": 12,
            "id": "speed_profiles5",
            "value": "0x00000000"
          },
          {
            "idx": 13,
            "id": "speed_profiles6",
            "value": "0x00000000"
          }
        ],
        [
          {
            "idx": 0,
            "id": "algo_debug1",
            "value": "0x80000000"
          },
          {
            "idx": 1,
            "id": "algo_debug2",
            "value": "0x00000000"
          },
          {
            "idx": 2,
            "id": "current_pi",
            "value": "0x012D012E"
          },
          {
            "idx": 3,
            "id": "speed_pi",
            "value": "0x022A012A"
          },
          {
            "idx": 4,
            "id": "dac_1",
            "value": "0x00000000"
          },
          {
            "idx": 5,
            "id": "dac_2",
            "value": "0x00000000"
          }
        ],
        [
          {
            "idx": 0,
            "id": "algorithm_state",
            "value": "0x00000000"
          },
          {
            "idx": 1,
            "id": "fg_speed_fdbk",
            "value": "0x0400EC20"
          },
          {
            "idx": 2,
            "id": "bus_current",
            "value": "0x00000000"
          },
          {
            "idx": 3,
            "id": "phase_current_a",
            "value": "0x000A0000"
          },
          {
            "idx": 4,
            "id": "phase_current_b",
            "value": "0xFFFA0000"
          },
          {
            "idx": 5,
            "id": "phase_current_c",
            "value": "0x00000000"
          },
          {
            "idx": 6,
            "id": "csa_gain_feedback",
            "value": "0x00000003"
          },
          {
            "idx": 7,
            "id": "voltage_gain_feedback",
            "value": "0x00000002"
          },
          {
            "idx": 8,
            "id": "vm_voltage",
            "value": "0x0194A000"
          },
          {
            "idx": 9,
            "id": "phase_voltage_va",
            "value": "0x0000376C"
          },
          {
            "idx": 10,
            "id": "phase_voltage_vb",
            "value": "0x0000376C"
          },
          {
            "idx": 11,
            "id": "phase_voltage_vc",
            "value": "0x0001F2D4"
          },
          {
            "idx": 12,
            "id": "sin_commutation_angle",
            "value": "0x07E7B288"
          },
          {
            "idx": 13,
            "id": "cos_commutation_angle",
            "value": "0x0128ADF9"
          },
          {
            "idx": 14,
            "id": "ialpha",
            "value": "0x000A8000"
          },
          {
            "idx": 15,
            "id": "ibeta",
            "value": "0x0054DED8"
          },
          {
            "idx": 16,
            "id": "valpha",
            "value": "0xFF83F708"
          },
          {
            "idx": 17,
            "id": "vbeta",
            "value": "0x000EE48C"
          },
          {
            "idx": 18,
            "id": "id",
            "value": "0x00556269"
          },
          {
            "idx": 19,
            "id": "iq",
            "value": "0x0001EB50"
          },
          {
            "idx": 20,
            "id": "vd",
            "value": "0xFFFCBD4D"
          },
          {
            "idx": 21,
            "id": "vq",
            "value": "0x007D0BEC"
          },
          {
            "idx": 22,
            "id": "iq_ref_rotor_align",
            "value": "0x00000000"
          },
          {
            "idx": 23,
            "id": "speed_ref_open_loop",
            "value": "0x00000000"
          },
          {
            "idx": 24,
            "id": "iq_ref_open_loop",
            "value": "0x0CCC9C80"
          },
          {
            "idx": 25,
            "id": "speed_ref_closed_loop",
            "value": "0x00147AE1"
          },
          {
            "idx": 26,
            "id": "id_ref_closed_loop",
            "value": "0x07FFE1D0"
          },
          {
            "idx": 27,
            "id": "iq_ref_closed_loop",
            "value": "0x00000000"
          },
          {
            "idx": 28,
            "id": "isd_state",
            "value": "0x0000075A"
          },
          {
            "idx": 29,
            "id": "isd_speed",
            "value": "0x00000740"
          },
          {
            "idx": 30,
            "id": "ipd_state",
            "value": "0x0000046A"
          },
          {
            "idx": 31,
            "id": "ipd_angle",
            "value": "0x0403A986"
          },
          {
            "idx": 32,
            "id": "ed",
            "value": "0x00310EE0"
          },
          {
            "idx": 33,
            "id": "eq",
            "value": "0x00000000"
          },
          {
            "idx": 34,
            "id": "speed_fdbk",
            "value": "0x20000000"
          },
          {
            "idx": 35,
            "id": "theta_est",
            "value": "0x4C09457B"
          }
        ],
        [
          {
            "idx": 0,
            "id": "ana_trim3",
            "value": "0xCA00C801"
          },
          {
            "idx": 1,
            "id": "ana_trim4",
            "value": "0x00000000"
          },
          {
            "idx": 2,
            "id": "ana_trim5",
            "value": "0x180B0007"
          },
          {
            "idx": 3,
            "id": "ana_trim6",
            "value": "0x00000000"
          },
          {
            "idx": 4,
            "id": "ana_trim7",
            "value": "0x00000000"
          },
          {
            "idx": 5,
            "id": "ana_trim8",
            "value": "0x80005241"
          },
          {
            "idx": 6,
            "id": "ana_trim9",
            "value": "0x80B5C79B"
          },
          {
            "idx": 7,
            "id": "ana_trim10",
            "value": "0x53671137"
          }
        ],
        [
          {
            "idx": 0,
            "id": "algo_ctrl1",
            "value": "0x00000000"
          }
        ],
        [
          {
            "idx": 0,
            "id": "fault_config1",
            "value": "0xA6EA4326"
          },
          {
            "idx": 1,
            "id": "fault_config2",
            "value": "0xFF0220B8"
          }
        ],
        [
          {
            "idx": 0,
            "id": "gate_driver_fault_status",
            "value": "0x00000000"
          },
          {
            "idx": 1,
            "id": "controller_fault_status",
            "value": "0x00000000"
          }
        ],
        [
          {
            "idx": 0,
            "id": "pin_config",
            "value": "0x08000000"
          },
          {
            "idx": 1,
            "id": "device_config1",
            "value": "0x00101465"
          },
          {
            "idx": 2,
            "id": "device_config2",
            "value": "0xC0003107"
          },
          {
            "idx": 3,
            "id": "peri_config1",
            "value": "0x81E81F00"
          },
          {
            "idx": 4,
            "id": "gd_config1",
            "value": "0x9C410901"
          },
          {
            "idx": 5,
            "id": "gd_config2",
            "value": "0x00300000"
          }
        ],
        [
          {
            "idx": 0,
            "id": "int_algo_1",
            "value": "0xA43141BD"
          },
          {
            "idx": 1,
            "id": "int_algo_2",
            "value": "0x000001A3"
          }
        ],
        [
          {
            "idx": 0,
            "id": "algo_status",
            "value": "0x27A60004"
          },
          {
            "idx": 1,
            "id": "mtr_params",
            "value": "0x90619100"
          },
          {
            "idx": 2,
            "id": "algo_status_mpet",
            "value": "0xE1000000"
          }
        ]
      ]
    }
    Sample droneMotor.json
    {
      "signature": "oneui-register-data",
      "data": [
        [
          {
            "idx": 0,
            "id": "isd_config",
            "value": "0x00000000"
          },
          {
            "idx": 1,
            "id": "rev_drive_config",
            "value": "0x00000000"
          },
          {
            "idx": 2,
            "id": "motor_startup1",
            "value": "0x08820004"
          },
          {
            "idx": 3,
            "id": "motor_startup2",
            "value": "0x1C068004"
          },
          {
            "idx": 4,
            "id": "closed_loop1",
            "value": "0x0F050000"
          },
          {
            "idx": 5,
            "id": "closed_loop2",
            "value": "0x00000F01"
          },
          {
            "idx": 6,
            "id": "closed_loop3",
            "value": "0x0A6691B2"
          },
          {
            "idx": 7,
            "id": "closed_loop4",
            "value": "0x3DC32A30"
          },
          {
            "idx": 8,
            "id": "speed_profiles1",
            "value": "0x00000000"
          },
          {
            "idx": 9,
            "id": "speed_profiles2",
            "value": "0x00000000"
          },
          {
            "idx": 10,
            "id": "speed_profiles3",
            "value": "0x00000000"
          },
          {
            "idx": 11,
            "id": "speed_profiles4",
            "value": "0x00000000"
          },
          {
            "idx": 12,
            "id": "speed_profiles5",
            "value": "0x00000000"
          },
          {
            "idx": 13,
            "id": "speed_profiles6",
            "value": "0x00000000"
          }
        ],
        [
          {
            "idx": 0,
            "id": "fault_config1",
            "value": "0x4DDF8901"
          },
          {
            "idx": 1,
            "id": "fault_config2",
            "value": "0x24C78003"
          }
        ],
        [
          {
            "idx": 0,
            "id": "pin_config",
            "value": "0x0000000A"
          },
          {
            "idx": 1,
            "id": "device_config1",
            "value": "0x09603341"
          },
          {
            "idx": 2,
            "id": "device_config2",
            "value": "0x00003400"
          },
          {
            "idx": 3,
            "id": "peri_config1",
            "value": "0x48480000"
          },
          {
            "idx": 4,
            "id": "gd_config1",
            "value": "0x134C0000"
          },
          {
            "idx": 5,
            "id": "gd_config2",
            "value": "0x07FFFF22"
          }
        ],
        [
          {
            "idx": 0,
            "id": "ana_trim3",
            "value": "0xC8004801"
          },
          {
            "idx": 1,
            "id": "ana_trim4",
            "value": "0x00000000"
          },
          {
            "idx": 2,
            "id": "ana_trim5",
            "value": "0xC000801A"
          },
          {
            "idx": 3,
            "id": "ana_trim6",
            "value": "0x3813E7FA"
          },
          {
            "idx": 4,
            "id": "ana_trim7",
            "value": "0xB1FC43F7"
          },
          {
            "idx": 5,
            "id": "ana_trim8",
            "value": "0x80000651"
          },
          {
            "idx": 6,
            "id": "ana_trim9",
            "value": "0x80829D2B"
          },
          {
            "idx": 7,
            "id": "ana_trim10",
            "value": "0x53831138"
          }
        ],
        [
          {
            "idx": 0,
            "id": "int_algo_1",
            "value": "0x000C3170"
          },
          {
            "idx": 1,
            "id": "int_algo_2",
            "value": "0x000001C6"
          }
        ],
        [
          {
            "idx": 0,
            "id": "gate_driver_fault_status",
            "value": "0x00000000"
          },
          {
            "idx": 1,
            "id": "controller_fault_status",
            "value": "0x00000000"
          }
        ],
        [
          {
            "idx": 0,
            "id": "algo_status",
            "value": "0x00000004"
          },
          {
            "idx": 1,
            "id": "mtr_params",
            "value": "0x00000000"
          },
          {
            "idx": 2,
            "id": "algo_status_mpet",
            "value": "0x0A000000"
          }
        ],
        [
          {
            "idx": 0,
            "id": "dev_ctrl",
            "value": "0x20000000"
          }
        ],
        [
          {
            "idx": 0,
            "id": "algo_ctrl1",
            "value": "0x80000000"
          },
          {
            "idx": 1,
            "id": "algo_ctrl2",
            "value": "0x00000000"
          },
          {
            "idx": 2,
            "id": "current_pi",
            "value": "0x02360334"
          },
          {
            "idx": 3,
            "id": "speed_pi",
            "value": "0x00000000"
          },
          {
            "idx": 4,
            "id": "dac_1",
            "value": "0x00000000"
          },
          {
            "idx": 5,
            "id": "dac_2",
            "value": "0x00000000"
          }
        ],
        [
          {
            "idx": 0,
            "id": "algorithm_state",
            "value": "0x00000080"
          },
          {
            "idx": 1,
            "id": "fg_speed_fdbk",
            "value": "0x3BF30000"
          },
          {
            "idx": 2,
            "id": "bus_current",
            "value": "0x00000000"
          },
          {
            "idx": 3,
            "id": "phase_current_a",
            "value": "0x00000005"
          },
          {
            "idx": 4,
            "id": "phase_current_b",
            "value": "0xFFFC0000"
          },
          {
            "idx": 5,
            "id": "phase_current_c",
            "value": "0x00040000"
          },
          {
            "idx": 6,
            "id": "csa_gain_feedback",
            "value": "0x0000000A"
          },
          {
            "idx": 7,
            "id": "voltage_gain_feedback",
            "value": "0x01860000"
          },
          {
            "idx": 8,
            "id": "vm_voltage",
            "value": "0x0A82618A"
          },
          {
            "idx": 9,
            "id": "phase_voltage_va",
            "value": "0x0000376C"
          },
          {
            "idx": 10,
            "id": "phase_voltage_vb",
            "value": "0x00004000"
          },
          {
            "idx": 11,
            "id": "phase_voltage_vc",
            "value": "0x00006000"
          },
          {
            "idx": 12,
            "id": "sin_commutation_angle",
            "value": "0xFF8FC996"
          },
          {
            "idx": 13,
            "id": "cos_commutation_angle",
            "value": "0x00AAA75C"
          },
          {
            "idx": 14,
            "id": "ialpha",
            "value": "0xFFEA8D1F"
          },
          {
            "idx": 15,
            "id": "ibeta",
            "value": "0x00194840"
          },
          {
            "idx": 16,
            "id": "valpha",
            "value": "0xFF8FC996"
          },
          {
            "idx": 17,
            "id": "vbeta",
            "value": "0x0084449E"
          },
          {
            "idx": 18,
            "id": "id",
            "value": "0xFFF080FF"
          },
          {
            "idx": 19,
            "id": "iq",
            "value": "0x001D5339"
          },
          {
            "idx": 20,
            "id": "vd",
            "value": "0x00000000"
          },
          {
            "idx": 21,
            "id": "vq",
            "value": "0x00000000"
          },
          {
            "idx": 22,
            "id": "iq_ref_rotor_align",
            "value": "0x01999390"
          },
          {
            "idx": 23,
            "id": "speed_ref_open_loop",
            "value": "0x00000000"
          },
          {
            "idx": 24,
            "id": "iq_ref_open_loop",
            "value": "0x0001179E"
          },
          {
            "idx": 25,
            "id": "speed_ref_closed_loop",
            "value": "0x00000000"
          },
          {
            "idx": 26,
            "id": "id_ref_closed_loop",
            "value": "0x00000000"
          },
          {
            "idx": 27,
            "id": "iq_ref_closed_loop",
            "value": "0x00000000"
          },
          {
            "idx": 28,
            "id": "isd_state",
            "value": "0x00000754"
          },
          {
            "idx": 29,
            "id": "isd_speed",
            "value": "0x0000073A"
          },
          {
            "idx": 30,
            "id": "ipd_state",
            "value": "0x0000046A"
          },
          {
            "idx": 31,
            "id": "ipd_angle",
            "value": "0x00000000"
          },
          {
            "idx": 32,
            "id": "ed",
            "value": "0x001FC0E8"
          },
          {
            "idx": 33,
            "id": "eq",
            "value": "0x00000000"
          },
          {
            "idx": 34,
            "id": "speed_fdbk",
            "value": "0x00A591D0"
          },
          {
            "idx": 35,
            "id": "theta_est",
            "value": "0x00B2843C"
          }
        ]
      ]
    }

  • {
    "signature":"oneui-register-data",
    "data":[
    [
    {
    "idx":0,
    "id":"ISD_CONFIG",
    "value":"0x44238C20",
    "addr":"0x00000080"
    },
    {
    "idx":1,
    "id":"REV_DRIVE_CONFIG",
    "value":"0x283AF064",
    "addr":"0x00000082"
    },
    {
    "idx":2,
    "id":"MOTOR_STARTUP1",
    "value":"0x556441C4",
    "addr":"0x00000084"
    },
    {
    "idx":3,
    "id":"MOTOR_STARTUP2",
    "value":"0x166E6007",
    "addr":"0x00000086"
    },
    {
    "idx":4,
    "id":"CLOSED_LOOP1",
    "value":"0x3F9C0130",
    "addr":"0x00000088"
    },
    {
    "idx":5,
    "id":"CLOSED_LOOP2",
    "value":"0x9BAD8810",
    "addr":"0x0000008A"
    },
    {
    "idx":6,
    "id":"CLOSED_LOOP3",
    "value":"0x00000000",
    "addr":"0x0000008C"
    },
    {
    "idx":7,
    "id":"CLOSED_LOOP4",
    "value":"0x24D42F40",
    "addr":"0x0000008E"
    },
    {
    "idx":8,
    "id":"SPEED_PROFILES1",
    "value":"0x00000000",
    "addr":"0x00000094"
    },
    {
    "idx":9,
    "id":"SPEED_PROFILES2",
    "value":"0x00000000",
    "addr":"0x00000096"
    },
    {
    "idx":10,
    "id":"SPEED_PROFILES3",
    "value":"0x00000000",
    "addr":"0x00000098"
    },
    {
    "idx":11,
    "id":"SPEED_PROFILES4",
    "value":"0x00000000",
    "addr":"0x0000009A"
    },
    {
    "idx":12,
    "id":"SPEED_PROFILES5",
    "value":"0x00000000",
    "addr":"0x0000009C"
    },
    {
    "idx":13,
    "id":"SPEED_PROFILES6",
    "value":"0x00000000",
    "addr":"0x0000009E"
    }
    ],
    [
    {
    "idx":0,
    "id":"FAULT_CONFIG1",
    "value":"0x17EA0126",
    "addr":"0x00000090"
    },
    {
    "idx":1,
    "id":"FAULT_CONFIG2",
    "value":"0x64020000",
    "addr":"0x00000092"
    }
    ],
    [
    {
    "idx":0,
    "id":"INT_ALGO_1",
    "value":"0x02B1407D",
    "addr":"0x000000A0"
    },
    {
    "idx":1,
    "id":"INT_ALGO_2",
    "value":"0x000003A1",
    "addr":"0x000000A2"
    }
    ],
    [
    {
    "idx":0,
    "id":"PIN_CONFIG",
    "value":"0x00000001",
    "addr":"0x000000A4"
    },
    {
    "idx":1,
    "id":"DEVICE_CONFIG1",
    "value":"0x00100000",
    "addr":"0x000000A6"
    },
    {
    "idx":2,
    "id":"DEVICE_CONFIG2",
    "value":"0x0000B040",
    "addr":"0x000000A8"
    },
    {
    "idx":3,
    "id":"PERI_CONFIG1",
    "value":"0x40000200",
    "addr":"0x000000AA"
    },
    {
    "idx":4,
    "id":"GD_CONFIG1",
    "value":"0x0C000103",
    "addr":"0x000000AC"
    },
    {
    "idx":5,
    "id":"GD_CONFIG2",
    "value":"0x00000000",
    "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":"0x00000380",
    "addr":"0x000000E4"
    },
    {
    "idx":1,
    "id":"MTR_PARAMS",
    "value":"0x88001000",
    "addr":"0x000000E6"
    },
    {
    "idx":2,
    "id":"ALGO_STATUS_MPET",
    "value":"0xFA000000",
    "addr":"0x000000E8"
    }
    ],
    [
    {
    "idx":0,
    "id":"ALGO_CTRL1",
    "value":"0x00000000",
    "addr":"0x000000EA"
    }
    ],
    [
    {
    "idx":0,
    "id":"ALGO_DEBUG1",
    "value":"0x00000000",
    "addr":"0x000000EC"
    },
    {
    "idx":1,
    "id":"ALGO_DEBUG2",
    "value":"0x00000021",
    "addr":"0x000000EE"
    },
    {
    "idx":2,
    "id":"CURRENT_PI",
    "value":"0x0007A51D",
    "addr":"0x000000F0"
    },
    {
    "idx":3,
    "id":"SPEED_PI",
    "value":"0x000D0641",
    "addr":"0x000000F2"
    },
    {
    "idx":4,
    "id":"DAC_1",
    "value":"0x00000000",
    "addr":"0x000000F4"
    },
    {
    "idx":5,
    "id":"DAC_2",
    "value":"0x00000000",
    "addr":"0x000000F6"
    }
    ],
    [
    {
    "idx":0,
    "id":"ALGORITHM_STATE",
    "value":"0x00000017",
    "addr":"0x00000210"
    },
    {
    "idx":1,
    "id":"FG_SPEED_FDBK",
    "value":"0x7FFFFFFF",
    "addr":"0x00000216"
    },
    {
    "idx":2,
    "id":"BUS_CURRENT",
    "value":"0x00000000",
    "addr":"0x00000410"
    },
    {
    "idx":3,
    "id":"PHASE_CURRENT_A",
    "value":"0x00000000",
    "addr":"0x0000043E"
    },
    {
    "idx":4,
    "id":"PHASE_CURRENT_B",
    "value":"0x00000000",
    "addr":"0x00000440"
    },
    {
    "idx":5,
    "id":"PHASE_CURRENT_C",
    "value":"0x00000000",
    "addr":"0x00000442"
    },
    {
    "idx":6,
    "id":"CSA_GAIN_FEEDBACK",
    "value":"0x00010003",
    "addr":"0x00000466"
    },
    {
    "idx":7,
    "id":"VOLTAGE_GAIN_FEEDBACK",
    "value":"0x00000002",
    "addr":"0x00000476"
    },
    {
    "idx":8,
    "id":"VM_VOLTAGE",
    "value":"0x00F62000",
    "addr":"0x00000478"
    },
    {
    "idx":9,
    "id":"PHASE_VOLTAGE_VA",
    "value":"0x00000000",
    "addr":"0x0000047E"
    },
    {
    "idx":10,
    "id":"PHASE_VOLTAGE_VB",
    "value":"0x00000000",
    "addr":"0x00000480"
    },
    {
    "idx":11,
    "id":"PHASE_VOLTAGE_VC",
    "value":"0x00000000",
    "addr":"0x00000482"
    },
    {
    "idx":12,
    "id":"SIN_COMMUTATION_ANGLE",
    "value":"0x00000000",
    "addr":"0x000004BA"
    },
    {
    "idx":13,
    "id":"COS_COMMUTATION_ANGLE",
    "value":"0x00000000",
    "addr":"0x000004BC"
    },
    {
    "idx":14,
    "id":"IALPHA",
    "value":"0x00000000",
    "addr":"0x000004D4"
    },
    {
    "idx":15,
    "id":"IBETA",
    "value":"0x00000000",
    "addr":"0x000004D6"
    },
    {
    "idx":16,
    "id":"VALPHA",
    "value":"0x00000000",
    "addr":"0x000004D8"
    },
    {
    "idx":17,
    "id":"VBETA",
    "value":"0x00000000",
    "addr":"0x000004DA"
    },
    {
    "idx":18,
    "id":"ID",
    "value":"0x00000000",
    "addr":"0x000004E4"
    },
    {
    "idx":19,
    "id":"IQ",
    "value":"0x00000000",
    "addr":"0x000004E6"
    },
    {
    "idx":20,
    "id":"VD",
    "value":"0x00000000",
    "addr":"0x000004E8"
    },
    {
    "idx":21,
    "id":"VQ",
    "value":"0x00000000",
    "addr":"0x000004EA"
    },
    {
    "idx":22,
    "id":"IQ_REF_ROTOR_ALIGN",
    "value":"0x00000000",
    "addr":"0x00000524"
    },
    {
    "idx":23,
    "id":"SPEED_REF_OPEN_LOOP",
    "value":"0x00000000",
    "addr":"0x0000053A"
    },
    {
    "idx":24,
    "id":"IQ_REF_OPEN_LOOP",
    "value":"0x00000000",
    "addr":"0x00000548"
    },
    {
    "idx":25,
    "id":"SPEED_REF_CLOSED_LOOP",
    "value":"0x00000000",
    "addr":"0x000005CC"
    },
    {
    "idx":26,
    "id":"ID_REF_CLOSED_LOOP",
    "value":"0x00000000",
    "addr":"0x000005FC"
    },
    {
    "idx":27,
    "id":"IQ_REF_CLOSED_LOOP",
    "value":"0x00000000",
    "addr":"0x000005FE"
    },
    {
    "idx":28,
    "id":"ISD_STATE",
    "value":"0x00000000",
    "addr":"0x0000067A"
    },
    {
    "idx":29,
    "id":"ISD_SPEED",
    "value":"0x00000000",
    "addr":"0x00000684"
    },
    {
    "idx":30,
    "id":"IPD_STATE",
    "value":"0x00000000",
    "addr":"0x000006B8"
    },
    {
    "idx":31,
    "id":"IPD_ANGLE",
    "value":"0x00000000",
    "addr":"0x000006FC"
    },
    {
    "idx":32,
    "id":"ED",
    "value":"0x00000000",
    "addr":"0x00000742"
    },
    {
    "idx":33,
    "id":"EQ",
    "value":"0x00000000",
    "addr":"0x00000744"
    },
    {
    "idx":34,
    "id":"SPEED_FDBK",
    "value":"0x00000000",
    "addr":"0x00000752"
    },
    {
    "idx":35,
    "id":"THETA_EST",
    "value":"0x00000000",
    "addr":"0x00000756"
    }
    ]
    ]
    }
    Hi Venkatadri

    Thanks for that.

    I am able to spin the small drone motor using the following parameters, but then the motor will not turn in Step 3 Spin Motor

  • Hi Venkatadri

    I bought a LaunchPad and was able to program the EVM with older firmware OK.

    I ran the old version of the GUI, but I'm still seeing the same problem, with 2 different motor ie

    The motor clicks a little when the bridges are energised, tries to spin for a few seconds, then stops.

    There are no faults or errors, and the buttons are greyed out, so the only I can do is restart the program to try again.

    Probably I'm not using correct parameter, but I am not a motor specialist, so I don't have a good idea where to start.

    The new GUI seemed more successful.  Do you have some default parameter files for drone motors?

    Many thanks

    Bob

  • Hi Venkatadri

    Do you have an update on this issue?

    Thanks

    Bob

  • Hi Bob,

    I shared the drone motor file before. I request wait till Friday  on this I will get back by Friday with procedure to tune .

    Thanks and Best Regards,

    Venkatadri S

  • Hi Bod,

    I am not sure if you have referred to the tuning guide which provides idea for good starting point for you.

    MCF8316A - Design Challenges and Solutions

    MCF8316A Tuning Guide (Rev. A) (ti.com)

    Thanks and Best Regards,

    Venkatadri S

  • Hi Venkatadri

    I wrote a script to try to convert the old configuration into the new format.

    My colleague will try to run them this afternoon.

    I notice that online examples feature constant speed applications for this chip such as driving cooling fans and pumps.  Is this part suitable for use with small motors which need a rapid response time to speed demand inputs?  If not, which controller should we select instead?  Is it just a matter of tuning the PID params?

    Thanks and regards

    Bob

  • Hi Bob,

    For better transient, dynamic load conditions FOC based devices are preferable.  The devices MCF8316C,15C, MCF8329A are range FOC devices where we can tuning Current Loop, Speed Loop PI gains to address dynamic conditions.

    In the new GUI motor studio we provide a tuning tab for Close loop (Current, Speed, Fast deceleration) . With this tuning we can verify system response before we test it on HW. Please explore this tab. This is very useful and quick .

    In general we should approach in the following listed method to tune your motor suitable for application need

    1. How do we want to startup? This is sensor less and hence we need to align to motor to a known position and then start driving the motor. There are options/configuration available for different startup methos (1.Align is for align the motor and start , 2. Double Align, 3. Initial Position detection (IPD),etc) The tuning guide provides detailed description of the mentioned methods.

    2. Once suitable startup is identified, next is Open Loop (Because motor can not got close loop until device able to measure proper BEMF). Here we have to chose open loop current adequate enough to drive the motor and the open loop acceleration should be suitable for the motor inertia (Example: For higher inertia motor higher acceleration is not good) 

    3. Once motor able to spin in open loop, identify at what speed where motor would have developed sufficient BEMF where device can switch to closed loop without loss of sync.

    4. Now close loop (example Speed mode or Current Mode) , tune the torque current limit sufficient for managing the load and transient demads, KP, KI for current and speed loop to meet the response/damping requirements.

    Please explore Motor studio for close loop tuning. Also, in motor studio there is a feature "Optimization Wizard" , Please explore all tabs in the optimization wizard for better understanding of the features.

    Thanks and Best Regards,

    Venkatadri S