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: "There is an issue with the device connectivity. Please restart the GUI"

Part Number: MCF8316AEVM
Other Parts Discussed in Thread: MCT8316AEVM, MCT8316A, MCF8316A

After discovering that I had actually ordered the MCT8316AEVM and not the MCF8316AEVM, I placed an order for the MCF8316AEVM, which I got a couple of days ago.

I went to work with it today, and since I already had the app downloaded locally, I connected the board as per the instructions and fired up the GUI.

That all went fine, and the GUI connected to the target.

However as soon as the GUI tries to touch the target - read registers, etc., I get the following message.

"There is an issue with the device connectivity. Please restart the GUI"

and the GUI disconnects from the target.

If I try to just reconnect, I get the same message immediately.

If I do as suggested and restart the GUI, it behaves as before and seems to stay connected until i actually try to talk to the board.

I look in the "console" output and it just says the target connected and then disconnected, no error, no diagnostic info no nothing to go on.

Nothing in the Windows logs either.

So far, I've tried:

  • Latest Chrome and MS Edge on Win 7 (yes, sorry about that)  on a Dell Precision Workstation T3600 (desktop)
  • Brand new installation on my Dell E7470 laptop running the latest Chrome on Win10.
  • Tried reverting to the MCT8316A on the Win 7 machine, using that board's GUI and that doesn't work either now.
  • I do not have tried the MCT8316A on the Win 10 machine.

I get the same behavior no matter what I try.

Is there any way to turn on advanced debugging to figure out what's going haywire?.

  • Hi Gregory, 

    I've looped in an MCx expert to assist with GUI connectivity on the MCT8316AEVM. 

    Thanks,
    Aaron

  • Gregory, 

    can you share a picture of device top level marking with us? i wanted to check if right GUI version is used for the device procured from TI store. 

    thanks, 

    PV 

  • Gregory,

    We would like to know if the top marking on the IC is PMCF8316A or MCF8316A. PMCF8316A is pre-production device and MCF8316A is production device. The GUI that is published on ti.com is for the pre production device (PMCF8316A). If you are using production device then this GUI will not work. We are targeting to release the MCF8316A GUI on ti.com by this week. 

    Regards,

    Vishnu

  •   

    Apparently, the production version.  Still trying to figure out why the GUI for that broke the GUI for MCT3816A_EVM too, as I tried to just hook that back up and go back to using that one and I got the same behavior.

    G

  • Ok so you are using a production device. We will update you once the production GUI is released on ti.com

    Regards,

    Vishnu. 

  • Hi Gregory,

    Below is the link to the latest GUI version v1.1.3

    https://dev.ti.com/gallery/view/BLDC/MCF8316A_GUI/

    Regards,

    Vishnu

  • So now I can talk the the board and it spins (open loop).  I'm only trying 25-30% Speed Command Percentage

    But now I'm getting one of three behaviors:

    • Motor starts, runs open loop, stops, tries to start again, fails, no fault, "Algorithm State" = "Close Loop Aligned"
    • Motor starts, runs open loop, stops, faults with "LOCK_LIMIT" fault. , "Algorithm State" = "Close Loop Aligned"
    • Motor starts, runs open loop, stops, starts again, but seems to stutter periodically, faults with "LOCK_LIMIT" fault. , "Algorithm State" = "Close Loop Aligned"
    • Motor starts, runs open loop, stops, starts again, but seems to stutter periodically, faults with "HW_LOCK_LIMIT" fault. , "Algorithm State" = "Close Loop Aligned"

    Once I get to the close loop aligned status, I have to do a POR to get the motor to spin again.  Clearing the fault does not allow the motor to spin up again.

    I have ILIMIT, LOCK_LIMIT, and HW_LOCK_LIMIT set to 2.5A (have tried 3.0A, but my PSU is only rated for 3A).  However on my PSU, most of the time it draws less than an amp (1-200mA), but at least once during the transition to closed loop did I see it spike to 2.5A (which is what I have my PSU current limited to). 

    This was with first set of registers in the attached file.

    {
      "signature": "oneui-register-data",
      "data": [
        [
          {
            "idx": 0,
            "id": "isd_config",
            "value": "0x64738C20"
          },
          {
            "idx": 1,
            "id": "rev_drive_config",
            "value": "0xA8200000"
          },
          {
            "idx": 2,
            "id": "motor_startup1",
            "value": "0x0B6807D0"
          },
          {
            "idx": 3,
            "id": "motor_startup2",
            "value": "0xA306600C"
          },
          {
            "idx": 4,
            "id": "closed_loop1",
            "value": "0x0D3201B5"
          },
          {
            "idx": 5,
            "id": "closed_loop2",
            "value": "0x9BAD4118"
          },
          {
            "idx": 6,
            "id": "closed_loop3",
            "value": "0x1D800004"
          },
          {
            "idx": 7,
            "id": "closed_loop4",
            "value": "0x34E7CBD0"
          },
          {
            "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": "0x800D0000"
          },
          {
            "idx": 12,
            "id": "speed_profiles5",
            "value": "0x00000000"
          },
          {
            "idx": 13,
            "id": "speed_profiles6",
            "value": "0x00000000"
          }
        ],
        [
          {
            "idx": 0,
            "id": "fault_config1",
            "value": "0x33300000"
          },
          {
            "idx": 1,
            "id": "fault_config2",
            "value": "0xF0D00888"
          }
        ],
        [
          {
            "idx": 0,
            "id": "pin_config",
            "value": "0x00000002"
          },
          {
            "idx": 1,
            "id": "device_config1",
            "value": "0x00101462"
          },
          {
            "idx": 2,
            "id": "device_config2",
            "value": "0xC000F00F"
          },
          {
            "idx": 3,
            "id": "peri_config1",
            "value": "0xC1C01F00"
          },
          {
            "idx": 4,
            "id": "gd_config1",
            "value": "0x9C450100"
          },
          {
            "idx": 5,
            "id": "gd_config2",
            "value": "0x80200000"
          }
        ],
        [
          {
            "idx": 0,
            "id": "ana_trim3",
            "value": "0x48004800"
          },
          {
            "idx": 1,
            "id": "ana_trim4",
            "value": "0x00000000"
          },
          {
            "idx": 2,
            "id": "ana_trim5",
            "value": "0x0000001B"
          },
          {
            "idx": 3,
            "id": "ana_trim6",
            "value": "0x00000000"
          },
          {
            "idx": 4,
            "id": "ana_trim7",
            "value": "0x00000000"
          },
          {
            "idx": 5,
            "id": "ana_trim8",
            "value": "0x00004662"
          },
          {
            "idx": 6,
            "id": "ana_trim9",
            "value": "0x808997DF"
          },
          {
            "idx": 7,
            "id": "ana_trim10",
            "value": "0x5371013D"
          }
        ],
        [
          {
            "idx": 0,
            "id": "int_algo_1",
            "value": "0xA433407D"
          },
          {
            "idx": 1,
            "id": "int_algo_2",
            "value": "0x000001A7"
          }
        ],
        [
          {
            "idx": 0,
            "id": "gate_driver_fault_status",
            "value": "0x00000000"
          },
          {
            "idx": 1,
            "id": "controller_fault_status",
            "value": "0x80080000"
          }
        ],
        [
          {
            "idx": 0,
            "id": "algo_status",
            "value": "0x2D95AF10"
          },
          {
            "idx": 1,
            "id": "mtr_params",
            "value": "0x413B1800"
          },
          {
            "idx": 2,
            "id": "algo_status_mpet",
            "value": "0xFA000000"
          }
        ],
        [
          {
            "idx": 0,
            "id": "dev_ctrl",
            "value": "0x00000000"
          }
        ],
        [
          {
            "idx": 0,
            "id": "algo_ctrl1",
            "value": "0x80000000"
          },
          {
            "idx": 1,
            "id": "algo_ctrl2",
            "value": "0x00000000"
          },
          {
            "idx": 2,
            "id": "current_pi",
            "value": "0x000A3223"
          },
          {
            "idx": 3,
            "id": "speed_pi",
            "value": "0x000E7E34"
          },
          {
            "idx": 4,
            "id": "dac_1",
            "value": "0x00000000"
          },
          {
            "idx": 5,
            "id": "dac_2",
            "value": "0x00000000"
          }
        ],
        [
          {
            "idx": 0,
            "id": "algorithm_state",
            "value": "0x00200009"
          },
          {
            "idx": 1,
            "id": "fg_speed_fdbk",
            "value": "0x02B09C58"
          },
          {
            "idx": 2,
            "id": "bus_current",
            "value": "0x004E3911"
          },
          {
            "idx": 3,
            "id": "phase_current_a",
            "value": "0xFFFD0000"
          },
          {
            "idx": 4,
            "id": "phase_current_b",
            "value": "0xFFFE0000"
          },
          {
            "idx": 5,
            "id": "phase_current_c",
            "value": "0x00000000"
          },
          {
            "idx": 6,
            "id": "csa_gain_feedback",
            "value": "0x00010000"
          },
          {
            "idx": 7,
            "id": "voltage_gain_feedback",
            "value": "0x00000002"
          },
          {
            "idx": 8,
            "id": "vm_voltage",
            "value": "0x01A4E000"
          },
          {
            "idx": 9,
            "id": "phase_voltage_va",
            "value": "0x008943D8"
          },
          {
            "idx": 10,
            "id": "phase_voltage_vb",
            "value": "0x000D34F6"
          },
          {
            "idx": 11,
            "id": "phase_voltage_vc",
            "value": "0x000183FA"
          },
          {
            "idx": 12,
            "id": "sin_commutation_angle",
            "value": "0x07D049A0"
          },
          {
            "idx": 13,
            "id": "cos_commutation_angle",
            "value": "0xFE4B284E"
          },
          {
            "idx": 14,
            "id": "ialpha",
            "value": "0xFF290000"
          },
          {
            "idx": 15,
            "id": "ibeta",
            "value": "0xFF0F3EB4"
          },
          {
            "idx": 16,
            "id": "valpha",
            "value": "0xFF5FB889"
          },
          {
            "idx": 17,
            "id": "vbeta",
            "value": "0xFFDBD145"
          },
          {
            "idx": 18,
            "id": "id",
            "value": "0xFF42B6B8"
          },
          {
            "idx": 19,
            "id": "iq",
            "value": "0x0105583C"
          },
          {
            "idx": 20,
            "id": "vd",
            "value": "0xFFFED900"
          },
          {
            "idx": 21,
            "id": "vq",
            "value": "0x00A45A9B"
          },
          {
            "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": "0x09997560"
          },
          {
            "idx": 25,
            "id": "speed_ref_closed_loop",
            "value": "0x02AEE664"
          },
          {
            "idx": 26,
            "id": "id_ref_closed_loop",
            "value": "0x00000000"
          },
          {
            "idx": 27,
            "id": "iq_ref_closed_loop",
            "value": "0x019B5DEF"
          },
          {
            "idx": 28,
            "id": "isd_state",
            "value": "0x00000005"
          },
          {
            "idx": 29,
            "id": "isd_speed",
            "value": "0x01A90F0D"
          },
          {
            "idx": 30,
            "id": "ipd_state",
            "value": "0x0000000B"
          },
          {
            "idx": 31,
            "id": "ipd_angle",
            "value": "0x05FC8D15"
          },
          {
            "idx": 32,
            "id": "ed",
            "value": "0xFFFF11F2"
          },
          {
            "idx": 33,
            "id": "eq",
            "value": "0x00A11523"
          },
          {
            "idx": 34,
            "id": "speed_fdbk",
            "value": "0x02B5958A"
          },
          {
            "idx": 35,
            "id": "theta_est",
            "value": "0xA25D6ACF"
          }
        ]
      ]
    }

    With the second set of registers, which has some additional setting suggested by the troubleshooting section, results in no motor movement and the Algorithm State in MPET KE_MEASURE,

    {
      "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": "0x00000000"
          },
          {
            "idx": 3,
            "id": "motor_startup2",
            "value": "0x00000000"
          },
          {
            "idx": 4,
            "id": "closed_loop1",
            "value": "0x00000008"
          },
          {
            "idx": 5,
            "id": "closed_loop2",
            "value": "0x00000000"
          },
          {
            "idx": 6,
            "id": "closed_loop3",
            "value": "0x00000000"
          },
          {
            "idx": 7,
            "id": "closed_loop4",
            "value": "0x00000BD0"
          },
          {
            "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": "0x2AA80000"
          },
          {
            "idx": 1,
            "id": "fault_config2",
            "value": "0x00000688"
          }
        ],
        [
          {
            "idx": 0,
            "id": "pin_config",
            "value": "0x00000002"
          },
          {
            "idx": 1,
            "id": "device_config1",
            "value": "0x00000000"
          },
          {
            "idx": 2,
            "id": "device_config2",
            "value": "0x00000000"
          },
          {
            "idx": 3,
            "id": "peri_config1",
            "value": "0x00000001"
          },
          {
            "idx": 4,
            "id": "gd_config1",
            "value": "0x00000000"
          },
          {
            "idx": 5,
            "id": "gd_config2",
            "value": "0x80200000"
          }
        ],
        [
          {
            "idx": 0,
            "id": "ana_trim3",
            "value": "0x00000000"
          },
          {
            "idx": 1,
            "id": "ana_trim4",
            "value": "0x00000000"
          },
          {
            "idx": 2,
            "id": "ana_trim5",
            "value": "0x00000000"
          },
          {
            "idx": 3,
            "id": "ana_trim6",
            "value": "0x00000000"
          },
          {
            "idx": 4,
            "id": "ana_trim7",
            "value": "0x00000000"
          },
          {
            "idx": 5,
            "id": "ana_trim8",
            "value": "0x00000000"
          },
          {
            "idx": 6,
            "id": "ana_trim9",
            "value": "0x00000000"
          },
          {
            "idx": 7,
            "id": "ana_trim10",
            "value": "0x00000000"
          }
        ],
        [
          {
            "idx": 0,
            "id": "int_algo_1",
            "value": "0x00000000"
          },
          {
            "idx": 1,
            "id": "int_algo_2",
            "value": "0x00000000"
          }
        ],
        [
          {
            "idx": 0,
            "id": "gate_driver_fault_status",
            "value": "0x00000000"
          },
          {
            "idx": 1,
            "id": "controller_fault_status",
            "value": "0x00000000"
          }
        ],
        [
          {
            "idx": 0,
            "id": "algo_status",
            "value": "0x215F1090"
          },
          {
            "idx": 1,
            "id": "mtr_params",
            "value": "0x41001800"
          },
          {
            "idx": 2,
            "id": "algo_status_mpet",
            "value": "0xCA000000"
          }
        ],
        [
          {
            "idx": 0,
            "id": "dev_ctrl",
            "value": "0x00000000"
          }
        ],
        [
          {
            "idx": 0,
            "id": "algo_ctrl1",
            "value": "0x80000000"
          },
          {
            "idx": 1,
            "id": "algo_ctrl2",
            "value": "0x00000000"
          },
          {
            "idx": 2,
            "id": "current_pi",
            "value": "0x00000000"
          },
          {
            "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": "0x00120014"
          },
          {
            "idx": 1,
            "id": "fg_speed_fdbk",
            "value": "0x00000000"
          },
          {
            "idx": 2,
            "id": "bus_current",
            "value": "0xA2F234B9"
          },
          {
            "idx": 3,
            "id": "phase_current_a",
            "value": "0x00000000"
          },
          {
            "idx": 4,
            "id": "phase_current_b",
            "value": "0x00000000"
          },
          {
            "idx": 5,
            "id": "phase_current_c",
            "value": "0x00000000"
          },
          {
            "idx": 6,
            "id": "csa_gain_feedback",
            "value": "0x00000000"
          },
          {
            "idx": 7,
            "id": "voltage_gain_feedback",
            "value": "0x00000000"
          },
          {
            "idx": 8,
            "id": "vm_voltage",
            "value": "0x01A4C000"
          },
          {
            "idx": 9,
            "id": "phase_voltage_va",
            "value": "0x00000000"
          },
          {
            "idx": 10,
            "id": "phase_voltage_vb",
            "value": "0x00000000"
          },
          {
            "idx": 11,
            "id": "phase_voltage_vc",
            "value": "0x00000000"
          },
          {
            "idx": 12,
            "id": "sin_commutation_angle",
            "value": "0x00000000"
          },
          {
            "idx": 13,
            "id": "cos_commutation_angle",
            "value": "0x00000000"
          },
          {
            "idx": 14,
            "id": "ialpha",
            "value": "0x00000000"
          },
          {
            "idx": 15,
            "id": "ibeta",
            "value": "0x00000000"
          },
          {
            "idx": 16,
            "id": "valpha",
            "value": "0x00000000"
          },
          {
            "idx": 17,
            "id": "vbeta",
            "value": "0x00000000"
          },
          {
            "idx": 18,
            "id": "id",
            "value": "0x00000000"
          },
          {
            "idx": 19,
            "id": "iq",
            "value": "0x00000000"
          },
          {
            "idx": 20,
            "id": "vd",
            "value": "0x00000000"
          },
          {
            "idx": 21,
            "id": "vq",
            "value": "0x00000000"
          },
          {
            "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": "0x00000000"
          },
          {
            "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": "0x00000000"
          },
          {
            "idx": 29,
            "id": "isd_speed",
            "value": "0x00000000"
          },
          {
            "idx": 30,
            "id": "ipd_state",
            "value": "0x00000000"
          },
          {
            "idx": 31,
            "id": "ipd_angle",
            "value": "0x00000000"
          },
          {
            "idx": 32,
            "id": "ed",
            "value": "0x00000000"
          },
          {
            "idx": 33,
            "id": "eq",
            "value": "0x00000000"
          },
          {
            "idx": 34,
            "id": "speed_fdbk",
            "value": "0x00000000"
          },
          {
            "idx": 35,
            "id": "theta_est",
            "value": "0x5E160C04"
          }
        ]
      ]
    }

    Again, with this motor hooked up to my ST motor controller, I have none of these problems and can spin the motor reliably.

  • Gregory,

    1. I see that you have programmed below motor parameters in the GUI. Are these from the datasheet or MPET measured values?

    2. Looks like device is failing to enter closed loop. Can you disable "auto handoff" and set the handoff frequency to 20% (see screenshot below)

    Regards,

    Vishnu

  • 1.  Must be from MPET as I did not manually enter them.

    2. This screenshot is before I changed OPEN_CL_HANDOFF_THR to 20%

    So, I made the changes you suggested, and I thought that fixed it - but in the end, it just delayed the problem.

    The motor seemed to do it's initial ramp up just fine, then it slowed to nearly a stop and started again, was running nice and quiet, but then choked again.  This time, the MSP430 freaked out and lost communications, and I had to do a POR on everything.  Tried to reload the registers and restart the motor, now it's stuck in MPET KE_MEASURE and won't start.  I'm sure after a few more POR cycles I can cajole it back into working again, but I still don't know what's going haywire.

     

    There was a section on debugging motor overcurrent issues which showed a graph where the current spikes for some odd reason.  I wonder if that's not what I'm fighting.

    Also, how do I force the algorithm state back to MOTOR_IDLE without PORing?

  • Gregory,

    What is the number of pole pairs in your motor? Is there any reason for choosing FOC over TRAP? Your motor's inductance is pretty low (38 uH) which is pretty low for FOC. Can you try MCT8316A?

    Regards,

    Vishnu

  • I have that board, it does work, but FOC is quieter.  I have another vendor's FOC board, and it works mostly fine, but the simplicity of the TI solution is appealing.  Why the TI solution cannot replicate the results I'm getting with the other FOC controller is puzzling.

    What I'm looking for is a way to diagnose what is not working.   I did use the recording function of the GUI, but I think it's too slow to be of much use.

  • Gregory,

    As the inductance of this motor is too low, I would recommend increasing the PWM output frequency all the way up to 75 kHz. I see that right now you are at 30 kHz. 

    Regards,

    Vishnu 

  • Gregory,

    I just wanted to follow up with you to see if you made any progress with MCF8316A. I realized that the HW lock detection current limit, LOCK_ILIMIT are set too low. Can you increase the values to 5A?

    Regards,

    Vishnu