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: Connectivity issue

Part Number: MCF8316AEVM
Other Parts Discussed in Thread: MCF8316A

Hi,

I got this evaluation board yesterday, first everything was working great. Then i got first "connectivity issue" error, then i had to refresh GUI page and i was able to continue working.

Now its got even worse, i get "Connectivity issue" error 99.9% times if i try to write/read anything via GUI.

I have tried different laptops / USB cables / batteries / browsers(Chrome / Firefox).  

Edit: I installed offline GUI, it gives same "Connectivity issue" error after i try to read or write anything.

  • Hello Veli-matti,

    Let me assign my expert Eric to look into this case.

    Thanks,

    Matt

  • Hi Veli-matti,

    Just to cover all the bases, could you please make sure that the MCF8316AEVM is powered up correctly with a voltage supply somewhere between 4.5V ~ 35V across VBAT and PGND? You should see the green VM LED D4 light up.

    Next, when plugging the MCF8316AEVM into your PC, could you please check to make sure that the red LED D6 lights up on the left side of the board?

    After plugging in the USB, the GUI should automatically connect, and the status bar on the bottom left of the GUI should indicate that the hardware is connected.

    Regards,
    Eric C.

  • Hi,

    D4 led lights up after i plug in power source.

    D6 Lights up after plugging usb cable.

    MCF8316A_GUI shows its connected and D6 led starts to blink.



    But after reading or writing D6 starts blink faster, like its communicating with pc, but after 1-2 seconds i get disconnect error and D6 stays constantly red.

    Regards,
    Veli-matti

  • Veli-matti,

    Eric is still working on this and will have a response for you tomorrow Dallas time.

    Regards,

    -Adam

  • Hi Veli-matti,

    Could you please try the following:

    1. While running the GUI in the browser, open up the browser DevTool (press Ctrl-Shift-I) or use the browser menu:
    2. Go to the Console tab
    3. PowerUp Vbat on the EVM and Connect to the GUI
    4. Click "Read All Registers"
    5. After seeing the connectivity error message, and post the screenshot of the Console output here.

    Another avenue to try is to install the offline version of the GUI and see if you run into the same device communication issue. You can download the offline GUI installer here using the download button:

    Regards,
    Eric C.

  • Hi,

    Thanks for help, this console is very useful for debugging.

    This time i was able to read all registers, but i got connectivity issue after restoring default values.



    This happened after pressing Read all registers

  • Hi Veli-matti,

    Since you were able to read all registers initially. This indicates that the device somehow entered into a bad state the default values were being loaded. The bad state will likely require a full power cycle to reset the device.

    Could you please  follow the steps below to help save the register settings and attach it in a reply, so that I can verify the device register settings on power up.

    1. Make sure MCF8316A is completely unpowered (USB unplugged)
    2. Ensure jumpers, switches, and potentiometer are configured as shown:
    3. Power up the MCF8316AEVM on VBAT & PGND
    4. Plug in USB to PC and connect to GUI
    5. Press "Read All Registers"
    6. Wait until popup message indicates 77 registers have been read successfully
    7. Click on File -> Save Registers
      1. Save the .json register file

    Thanks,
    Eric C.

  • Hi,

    Here is register.

    Now it worked for a while and i was able to spin motor, but then it stopped working again.

    {
      "signature": "oneui-register-data",
      "data": [
        [
          {
            "idx": 0,
            "id": "isd_config",
            "value": "0x44638C20"
          },
          {
            "idx": 1,
            "id": "rev_drive_config",
            "value": "0x283AF064"
          },
          {
            "idx": 2,
            "id": "motor_startup1",
            "value": "0x4B68C1F0"
          },
          {
            "idx": 3,
            "id": "motor_startup2",
            "value": "0x14808004"
          },
          {
            "idx": 4,
            "id": "closed_loop1",
            "value": "0x153201B0"
          },
          {
            "idx": 5,
            "id": "closed_loop2",
            "value": "0x1AADA046"
          },
          {
            "idx": 6,
            "id": "closed_loop3",
            "value": "0x14000000"
          },
          {
            "idx": 7,
            "id": "closed_loop4",
            "value": "0x0000012C"
          },
          {
            "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": "0x27E8820E"
          },
          {
            "idx": 1,
            "id": "fault_config2",
            "value": "0x74E88000"
          }
        ],
        [
          {
            "idx": 0,
            "id": "pin_config",
            "value": "0x2DD0E480"
          },
          {
            "idx": 1,
            "id": "device_config1",
            "value": "0x08000000"
          },
          {
            "idx": 2,
            "id": "device_config2",
            "value": "0x00003000"
          },
          {
            "idx": 3,
            "id": "peri_config1",
            "value": "0x40000000"
          },
          {
            "idx": 4,
            "id": "gd_config1",
            "value": "0x1C400100"
          },
          {
            "idx": 5,
            "id": "gd_config2",
            "value": "0x00200000"
          }
        ],
        [
          {
            "idx": 0,
            "id": "ana_trim3",
            "value": "0x48004800"
          },
          {
            "idx": 1,
            "id": "ana_trim4",
            "value": "0x00000000"
          },
          {
            "idx": 2,
            "id": "ana_trim5",
            "value": "0x000003FC"
          },
          {
            "idx": 3,
            "id": "ana_trim6",
            "value": "0x00000000"
          },
          {
            "idx": 4,
            "id": "ana_trim7",
            "value": "0x00000000"
          },
          {
            "idx": 5,
            "id": "ana_trim8",
            "value": "0x00005EA3"
          },
          {
            "idx": 6,
            "id": "ana_trim9",
            "value": "0x007CF3D3"
          },
          {
            "idx": 7,
            "id": "ana_trim10",
            "value": "0x537CFF3C"
          }
        ],
        [
          {
            "idx": 0,
            "id": "int_algo_1",
            "value": "0x04B3407D"
          },
          {
            "idx": 1,
            "id": "int_algo_2",
            "value": "0x000002A7"
          }
        ],
        [
          {
            "idx": 0,
            "id": "gate_driver_fault_status",
            "value": "0x00000000"
          },
          {
            "idx": 1,
            "id": "controller_fault_status",
            "value": "0x00000000"
          }
        ],
        [
          {
            "idx": 0,
            "id": "algo_status",
            "value": "0x00000000"
          },
          {
            "idx": 1,
            "id": "mtr_params",
            "value": "0x00000000"
          },
          {
            "idx": 2,
            "id": "algo_status_mpet",
            "value": "0x0A000000"
          }
        ],
        [
          {
            "idx": 0,
            "id": "algo_ctrl1",
            "value": "0x00000000"
          }
        ],
        [
          {
            "idx": 0,
            "id": "algo_debug1",
            "value": "0x00000000"
          },
          {
            "idx": 1,
            "id": "algo_debug2",
            "value": "0x00000000"
          },
          {
            "idx": 2,
            "id": "current_pi",
            "value": "0x0001CCD1"
          },
          {
            "idx": 3,
            "id": "speed_pi",
            "value": "0x00000000"
          }
        ],
        [
          {
            "idx": 0,
            "id": "speed_ref_closed_loop",
            "value": "0x00000000"
          },
          {
            "idx": 1,
            "id": "vm_voltage",
            "value": "0x01CC0000"
          },
          {
            "idx": 2,
            "id": "voltage_gain_feedback",
            "value": "0x00000001"
          },
          {
            "idx": 3,
            "id": "csa_gain_feedback",
            "value": "0x00000003"
          },
          {
            "idx": 4,
            "id": "phase_voltage_va",
            "value": "0x00000000"
          },
          {
            "idx": 5,
            "id": "phase_voltage_vb",
            "value": "0x00000000"
          },
          {
            "idx": 6,
            "id": "phase_voltage_vc",
            "value": "0x00000000"
          },
          {
            "idx": 7,
            "id": "id_ref_closed_loop",
            "value": "0x00000000"
          },
          {
            "idx": 8,
            "id": "iq_ref_closed_loop",
            "value": "0x00000000"
          },
          {
            "idx": 9,
            "id": "id",
            "value": "0x00000000"
          },
          {
            "idx": 10,
            "id": "iq",
            "value": "0x00000000"
          },
          {
            "idx": 11,
            "id": "vd",
            "value": "0x00000000"
          },
          {
            "idx": 12,
            "id": "vq",
            "value": "0x00000000"
          },
          {
            "idx": 13,
            "id": "ialpha",
            "value": "0x00000000"
          },
          {
            "idx": 14,
            "id": "ibeta",
            "value": "0x00000000"
          },
          {
            "idx": 15,
            "id": "valpha",
            "value": "0x00000000"
          },
          {
            "idx": 16,
            "id": "vbeta",
            "value": "0x00000000"
          },
          {
            "idx": 17,
            "id": "bus_current",
            "value": "0x00000000"
          },
          {
            "idx": 18,
            "id": "ipd_state",
            "value": "0x00000000"
          },
          {
            "idx": 19,
            "id": "isd_state",
            "value": "0x00000000"
          },
          {
            "idx": 20,
            "id": "algorithm_state",
            "value": "0x00000000"
          },
          {
            "idx": 21,
            "id": "phase_current_a",
            "value": "0x00000000"
          },
          {
            "idx": 22,
            "id": "phase_current_b",
            "value": "0x00000000"
          },
          {
            "idx": 23,
            "id": "phase_current_c",
            "value": "0x00000000"
          },
          {
            "idx": 24,
            "id": "ipd_angle",
            "value": "0x00000000"
          },
          {
            "idx": 25,
            "id": "isd_speed",
            "value": "0x00000000"
          },
          {
            "idx": 26,
            "id": "speed_ref_open_loop",
            "value": "0x00000000"
          },
          {
            "idx": 27,
            "id": "iq_ref_open_loop",
            "value": "0x00000000"
          },
          {
            "idx": 28,
            "id": "iq_ref_rotor_align",
            "value": "0x00000000"
          },
          {
            "idx": 29,
            "id": "ed",
            "value": "0x00000000"
          },
          {
            "idx": 30,
            "id": "eq",
            "value": "0x00000000"
          },
          {
            "idx": 31,
            "id": "theta_est",
            "value": "0x00000000"
          },
          {
            "idx": 32,
            "id": "speed_fdbk",
            "value": "0x00000000"
          },
          {
            "idx": 33,
            "id": "sin_commutation_angle",
            "value": "0x00000000"
          },
          {
            "idx": 34,
            "id": "cos_commutation_angle",
            "value": "0x00000000"
          }
        ]
      ]
    }

  • Hi Veli-matti,

    Thanks for sending your register settings. 

    I think it's possible that the MCF8316A is attempting to run MPET (automatic motor parameter measurement algorithm) and failing, which result in the device getting stuck and becoming unresponsive. You can verify this by enabling the "Auto Read Motor Status" and "Auto Read Fault Status" toggle buttons on the top right of the GUI and monitor the Algorithm State in the Motor Status panel

    The MPET measurement algorithm will run every time you provide a non-zero speed command, if any of the Motor Resistance, Inductance, BEMF Constant, or Speedloop Kp & Ki parameters are zero.

    I see that the motor R, L, Ke are configured in your settings, but the Speed Loop Kp and Ki are still zero. If the device attempts to run MPET automatically but fails to determine a suitable Kp and Ki, you can try entering Kp = 10 & Ki = 1 as a starting value to stop MPET from running.

    You can also save the register settings into the device EEPROM using the "Write to EEPROM" button so you don't lose the settings on power cycle.

    Regards,
    Eric C.